1. 首页
  2. 服务器

如何在Hetzner服务器上安装和配置Proxmox Ve

Proxmox VE是用于企业虚拟化的完整开源平台。借助内置的Web界面,您可以在一个解决方案上轻松管理VM和容器,软件定义的存储和网络,高可用性群集以及多个现成的工具。

步骤1-在Hetzner上删除RAID

启用救援模式

installimage
#1 for raid-on, 0 for raid-off
SWRAID:1
#Raid 0 1 10
SWRAIDLEVEL:0
PART sawp swap 8G
PART /boot ext3 512M
PART / ext4 100G
PART /home ext4 all

按F10,完全单击是,然后重新启动

第2步-安装Proxmox

以root身份登录并运行以下代码

apt-get update
apt-get -y upgrade
echo "deb http://download.proxmox.com/debian stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
apt-get -y install dirmngr
gpg --recv-key --keyserver pool.sks-keyservers.net 0D9A1950E2EF0603
gpg --export -a 0D9A1950E2EF0603 | apt-key add -
apt-get update
apt-get -y dist-upgrade

要进行更新,请选择“安装维护者版本”

apt-get -y install proxmox-ve ssh postfix ksm-control-daemon open-iscsi systemd-sysv

选择“ Internet网站”。安装后重新启动

Visite https://your IP:8006
Proxmox password is your SSH passwd

第3步-设置

设置网络

vim /etc/sysctl.d/99-hetzner.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1

网络接口卡

vim /etc/network/interfaces
### Hetzner Online GmbH installimage
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
#网卡eno1 可通过ifconfig查看
auto eno1
iface eno1 inet manual
up route add -net your-server-IP netmask 255.255.255.224 gw 148.251.132.1 dev eno1
#配置用于vm的bridge
auto vmbr0
iface vmbr0 inet static
address your-server-IP
netmask 255.255.255.224
gateway 148.251.132.1
broadcast 148.251.132.31
bridge_ports eno1
bridge_stp off
bridge_fd 0
#配置IPv6
iface eno1 inet6 static
address 2a01:4f8:210:3116::2
netmask 64
gateway fe80::1
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0

运行以下脚本,然后重新启动

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE

第4步-创建NAT KVM服务器

将KVM IOS文件下载到

cd /var/lib/vz/template/iso/

单击Proxmox右上角的“创建CT”

Sockets  1
Core 6
Bridge vmbr1
Mac auto

步骤5-NAT Windows Server安装(可选)

使用GUI安装Windows数据中心

Custom install
Add new or Shift+F8 formatting

启用远程访问

#Computer Properties - Remote Settings - Allow remote connections to this computer
#Firewall rules: deny 135-139, 445
Computer Configuration > Administrative Templates > System > Credential Assignment > Encrypt Oracle Fix
activated
Protection level: vulnerable

如果您没有Oracle选项

1) Win+R regedit
2) Find dir, Add new if you don't have
[HKEY_LOCAL_MACHINE]\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters
3) Add new file DWORD(32,  'AllowEncryptionOracle', value:2
4) Save and reboot

Windows网络设置

IP address: 10.10.10.2-254
Subnet mask: 255.255.255.0
Gateway: 10.10.10.1
DNS: 8.8.8.8
Backup DNS: 8.8.4.4

Win + R cmd

netsh firewall set icmpsetting 8

端口3389转发

欲转发端口 3389
iptables欲转发至的远程IP 前面填的在10.10.10.2-254中的一个IP
本地监听端口 3389
服务器IP 本机IP
转发类型 TCP+UDP

Windows更新和错误修正

Download your version file, client - update installer

原创文章,作者:cheshirex,如若转载,请注明出处:https://www.homedt.net/20436.html

联系我们

联系QQ:28575315