ZmGeek
Debian 9 无痛安装Proxmox VE

https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch

https://pve.proxmox.com/wiki/Package_Repositories

 

apt-get update报错处理:

Proxmox apt-get update 更新报错

 

OpenVZ文件夹(从官网下模板)

/var/lib/vz/template/cache

KVM文件夹(任意ISO镜像)

/var/lib/vz/template/iso

 

网络配置:

NAT

Proxmox创建虚拟机、NAT端口转发教程

https://www.cmsky.com/kimsufi-proxmox/

官方文档 https://pve.proxmox.com/wiki/Network_Model

vmbr2配置文件:

将原先的网卡eth0配置为manual模式,新建vmbr0将其bridge_ports设置为eth0,并且设置为eth0应有的外网地址。最后新建vmbr2将其配置为Nat,相关转发网卡为vmbr0。

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
#auto eth0
iface eth0 inet manual
# address 144.172.126.54/24
# gateway 144.172.126.1
# dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 8.8.8.8
# dns-search abc.com

iface eth0 inet6 static
address 2602:fe64:8::32
netmask 46
gateway 2602:fe64:8::1

auto vmbr0
iface vmbr0 inet static
address 144.172.126.54/24
gateway 144.172.126.1
dns-nameservers 8.8.8.8
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr2
iface vmbr2 inet static
address 192.168.0.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 '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 13389 -j DNAT --to 192.168.0.11:3389
post-down iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 13389 -j DNAT --to 192.168.0.11:3389

发表评论

textsms
account_circle
email

ZmGeek

Debian 9 无痛安装Proxmox VE
https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch https://pve.proxmox.com/wiki/Package_Repositories   apt-get update报错处理: http://www.hit…
扫描二维码继续阅读
2018-06-17