Proxmox: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „Kategorie:ServerApplikation * [https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Jessie Installation auf Debian Jessie] * Web-Interface: promox:8006…“) |
|||
(6 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 7: | Zeile 7: | ||
* Konfiguration für Verzeichnisse: /etc/pve/storage.cfg | * Konfiguration für Verzeichnisse: /etc/pve/storage.cfg | ||
* Iso-Platz: /var/lib/vz/template/iso | * 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 | |||
<pre> | |||
args: -virtfs local,path=/media/db,mount_tag=dbshare,security_model=passthrough,id=dbshare | |||
</pre> | |||
* Aktivieren | |||
<syntaxhighlight lang="bash"> | |||
qm config <VMID> | |||
</syntaxhighlight> | |||
== Auf dem Gast == | |||
* /etc/fstab: Einbinden als /media/elbe/db | |||
<pre> | |||
dbshare /media/elbe/db 9p trans=virtio,version=9p2000.L 0 0 | |||
</pre> | |||
= DHCP-Server einrichten = | |||
<pre>apt-get install isc-dhcp-server | |||
perl -pi -e 's/INTERFACES=.*/INTERFACES="vmbr0"/' /etc/default/isc-dhcp-server | |||
vi /etc/dhcp/dhcpd.conf | |||
</pre> | |||
<pre>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; | |||
} | |||
</pre> | |||
= Netzwerk im pve (mit NAT) = | |||
/etc/network/interfaces: | |||
<pre>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 | |||
</pre> | |||
== Portweiterleitung == | |||
<pre>qm set <vmid> -args "--redir tcp:58022::22" | |||
</pre> | |||
== Shorewall als Firewall == | |||
[[PromoxFirewall]] |
Aktuelle Version vom 15. Juni 2025, 06:04 Uhr
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[Bearbeiten]
Auf dem Host[Bearbeiten]
- /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
- Aktivieren
qm config <VMID>
Auf dem Gast[Bearbeiten]
- /etc/fstab: Einbinden als /media/elbe/db
dbshare /media/elbe/db 9p trans=virtio,version=9p2000.L 0 0
DHCP-Server einrichten[Bearbeiten]
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)[Bearbeiten]
/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[Bearbeiten]
qm set <vmid> -args "--redir tcp:58022::22"