Proxmox
Version vom 15. Juni 2025, 05:14 Uhr von 91.62.191.239 (Diskussion)
Kategorie:ServerApplikation
- Installation auf Debian Jessie
- Web-Interface: promox:8006
- Zugriff auf Clients: spice-client-gtk
- Konfiguration für Verzeichnisse: /etc/pve/storage.cfg
- Iso-Platz: /var/lib/vz/template/iso
9p: Verzeichnis in Gast einbinden
Auf dem Host
- /etc/pve/local/qemu-server/<VM_ID>.conf
- Bsp: Pfad: /media/db, Id: dbshare
args: -virtfs local,path=/media/db,mount_tag=dbshare,security_model=passthrough,id=dbshare
Auf dem Gast
- /etc/fstab: Einbinden als /media/elbe/db
dbshare /media/elbe/db 9p trans=virtio,version=9p2000.L 0 0
DHCP-Server einrichten
apt-get install isc-dhcp-server perl -pi -e 's/INTERFACES=.*/INTERFACES="vmbr0"/' /etc/default/isc-dhcp-server vi /etc/dhcp/dhcpd.conf
option domain-name "proxmox.lx"; option domain-name-servers 8.8.8.8; subnet 10.10.10.0 netmask 255.255.255.0 { range 10.10.10.1 10.10.10.250; option routers vmhost.proxmox.lx; }
Netzwerk im pve (mit NAT)
/etc/network/interfaces:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.2.64 netmask 255.255.255.0 gateway 192.168.2.3 post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp auto vmbr0 iface vmbr0 inet static address 10.10.10.1 netmask 255.255.255.0 bridge_ports none bridge_stp off bridge_fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE
Portweiterleitung
qm set <vmid> -args "--redir tcp:58022::22"