drserver:installproxmoxondebian9usingsingleip
no way to compare when less than two revisions
差别
这里会显示出您选择的修订版和当前版本之间的差别。
— | drserver:installproxmoxondebian9usingsingleip [2018/09/27 12:13] (当前版本) – 创建 liujia | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 在单IP的 proxmox 机子上创建 NAT 共享上网的 Windows 10 客户机 ====== | ||
+ | 用较高配置的机子,安装 proxmox 来提供 kvm 虚拟化环境,创建包括Windows在内的客户虚拟机,是挺方便的。 | ||
+ | 本例是在已有的Debian9环境里,安装proxmox5,创建Windows10客户机。 | ||
+ | |||
+ | 过程: | ||
+ | |||
+ | 1.vi /etc/hosts # 检查本机主机名是否与本机IP绑定好,如本例 144.172.126.32 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 2.echo "deb http:// | ||
+ | |||
+ | 3.wget http:// | ||
+ | |||
+ | 4.echo 1 > / | ||
+ | |||
+ | 5.apt update && apt dist-upgrade # 更新软件安装源和升级系统 | ||
+ | |||
+ | 6.apt install proxmox-ve postfix open-iscsi # 安装 proxmox,这步耗时久些 | ||
+ | |||
+ | 7.reboot # 重启系统 | ||
+ | |||
+ | 8.浏览器访问https:// | ||
+ | |||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 9.先创建Linux Bridge的网络,等会创建虚拟机要用到 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 10.Linux Bridge vmbr0 的IP设置为10.10.10.1,掩码是255.255.255.0 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 11.开始创建虚拟机 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 12.Guest OS,客户机选择微软的Windows 10/Windows 2016 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 13.硬盘,本例是选择了 VirtIO Block,100 GB,RAW硬盘映像 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 14.CPU,本例是选择了四核心 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 15.内存,本例分配了8 GB | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 16.网络,本例选择了桥接的vmbr0,模型为 VirtIO | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 17.确认创建 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 18.启动机子后,可以打开 noVNC 控制台 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 19.echo 1 > / | ||
+ | |||
+ | 20.iptables -t nat -A POSTROUTING -s ' | ||
+ | |||
+ | 21.iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 43389 -j DNAT --to 10.10.10.2: | ||
+ | |||
+ | 22.在客户机上安装好Windows10,开启远程桌面功能。从外网,用tcp 43389的端口进行远程桌面连接,成功 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 参考: | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// |
drserver/installproxmoxondebian9usingsingleip.txt · 最后更改: 2018/09/27 12:13 由 liujia