Hetzner AX41 安装 Proxmox VE 7

85次阅读

共计 6300 个字符,预计需要花费 16 分钟才能阅读完成。

1、通过面板启动救援模式,记住登录密码,用于救援模式和安装后的 PVE7。
Hetzner AX41 安装 Proxmox VE 7
2、重新启动服务器
Hetzner AX41 安装 Proxmox VE 7
3、通过 ssh [email protected] 连接服务器的救援系统,密码为启动救援模式生成的密码。
Linux rescue 5.19.11 #1 SMP Mon Sep 26 04:42:52 UTC 2022 x86_64
————————————————————————————————————————-
Welcome to the Hetzner Rescue System.
This Rescue System is based on Debian GNU/Linux 11 (bullseye) with a custom kernel.
You can install software like you would in a normal system.
To install a new operating system from one of our prebuilt images, run ‘installimage’ and follow the instructions.
Important note: Any data that was not written to the disks will be lost during a reboot.
For additional information, check the following resources:
Rescue System: https://docs.hetzner.com/robot/dedicated-server/troubleshooting/hetzner-rescue-system
Installimage: https://docs.hetzner.com/robot/dedicated-server/operating-systems/installimage
Install custom software: https://docs.hetzner.com/robot/dedicated-server/operating-systems/installing-custom-images
other articles: https://docs.hetzner.com/robot
————————————————————————————————————————-
Rescue System up since 2022-12-10 22:13 +01:00
Hardware data:
CPU1: AMD Ryzen 5 3600 6-Core Processor (Cores 12)
Memory:64250 MB
Disk /dev/nvme0n1: 512 GB (=> 476 GiB)
Disk /dev/sda: 6001 GB (=> 5589 GiB)
Disk /dev/sdb: 6001 GB (=> 5589 GiB)
Total capacity 11 TiB with 3 Disks
Network data:
eth0LINK: yes
MAC:de:ad:be:ef:de:ad
IP: 10.11.12.13
IPv6: 2a01:4f9:1a:dead::2/64
Intel(R) Gigabit Ethernet Network Driver
root@rescue ~ # 复制代码
4、开始安装 PVE7
root@rescue ~ # installimage 复制代码
Hetzner AX41 安装 Proxmox VE 7
编辑主机名和磁盘分区等信息,F10 保存退出编辑器。
参考:https://docs.hetzner.com/robot/dedicated-server/operating-systems/installimage/
Hetzner Online GmbH – installimage
Your server will be installed now, this will take some minutes
You can abort at any time with CTRL+C …
:Reading configuration done
:Loading image file variables done
:Loading debian specific functions done
1/15:Deleting partitions done
2/15:Test partition size done
3/15:Creating partitions and /etc/fstab done
4/15:Formatting partitions
: formatting /dev/nvme0n1p1 with ext3 done
: formatting /dev/nvme0n1p2 with swap done
: formatting /dev/nvme0n1p3 with ext4 done
5/15:Mounting partitions done
6/15:Sync time via ntp done
:Importing public key for image validation done
7/15:Validating image before starting extraction done
8/15:Extracting image (local) done
9/15:Setting up network config done
10/15:Executing additional commands
: Setting hostname done
: Generating new SSH keys done
: Generating ramdisk done
: Generating ntp config done
11/15:Setting up miscellaneous files done
12/15:Configuring authentication
: Setting root password done
: Enabling SSH root login with password done
13/15:Installing bootloader grub done
14/15:Running some debian specific functions done
15/15:Clearing log files done
:Executing post installation script
—– Update and upgrade system, please wait … —–
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
… … … … … … … … … … … … … …
—– Done installing Proxmox VE —–
INSTALLATION COMPLETE
You can now reboot and log in to your new system with the
same credentials that you used to log into the rescue system.
复制代码
5、重启系统
root@rescue ~ # shutdown -r now 复制代码
如果无效,通过面板重启。
Hetzner AX41 安装 Proxmox VE 7
Hetzner AX41 安装 Proxmox VE 7
6、通过 ssh [email protected] 连接服务器,密码和救援模式密码相同。
7、通过 https://10.11.12.13:8006 连接 Proxmox Web GUI,使用 root 和 救援模式密码登录。

感谢分享技术贴!这样不就能整 win 了?
/**
* 人死后会成为什么? 夜空中的一座孤岛。——《一封孤岛的信》
*/Hetzner AX41 安装 Proxmox VE 7

你艾希我奶妈 发表于 2022-12-11 00:44
这样不就能整 win 了?

原来就 DD 的 Win,装个 PVE 学习一下感谢分享Hetzner AX41 安装 Proxmox VE 7感谢楼主的使用分享。@zxxx 这货用 PVE 开小鸡,如何避免 MAC ABUSE,貌似需要设置啥

ccf 发表于 2022-12-11 11:21
@zxxx 这货用 PVE 开小鸡,如何避免 MAC ABUSE,貌似需要设置啥

在看官方的一个文档,是不是用路由模式不需要申请 MAC?
Install and Configure Proxmox VE
https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve
Routed
Advantages:
Multiple single IP addresses and subnets can be used in one VM.
Disadvantages:
Point-to-point setup is required for IP addresses from different networks.
Bridged
Advantages:
Host is transparent and not part of the route.
VMs can directly communicate with the gateway of the assigned IP.
Disadvantages:
VMs may only communicate via the MAC address assigned to the respective IP address.
The virtual MAC must be requested in the Hetzner Robot.
IP addresses from additional subnets can only be used on the host system or a single VM with a single IP (if the subnet is routed to it) (also applies to IPv6)很好,再来一个 whmcs 开心版对接教程版,我就可以卖 nat 小鸡了

zxxx 发表于 2022-12-11 11:29
在看官方的一个文档,是不是用路由模式不需要申请 MAC?
Install and Configure Proxmox VE

他这个说的多个 IP 貌似指的公网 IP?然后桥接模式需要申请各自的 MAC
一般母鸡都是单个公网 IP 吧,然后小鸡用私网 IP,这个情况下不可能申请单独的 MAC 吧
每个私网 IP 都是随机的 MAC,需要避免广播出去,否则肯定是 MAC ABUSE

ccf 发表于 2022-12-11 11:33
他这个说的多个 IP 貌似指的公网 IP?然后桥接模式需要申请各自的 MAC
一般母鸡都是单个公网 IP 吧,然后小鸡 …

机器使用私网 V4 应该没有这个问题吧?使用公网 V6 可能会导致 mac abuse。

zxxx 发表于 2022-12-11 11:43
机器使用私网 V4 应该没有这个问题吧?使用公网 V6 可能会导致 mac abuse。

我倒是担心私网 v4 也会有这个问题 hetzner 桥接使用 ipv6 导致的 mac abuse 警告
https://blog.i-so.org/tag/hetzner
张贴在 27/11/2021

最近在 hetzner 的独服上装了 pve 跑了几个虚拟机,并做好了 nat 网络端口转发,后面又想着 IPV6 要用起来,于是在各 vm 上又添加了网卡,桥接到原有的宿主机网卡上,配置好 ipv6 地址。
测试网络正常联通,可是不久后便收到 hetzner 发来的邮件,大致内容为:
We have detected that your server is using different MAC addresses from those allowed by your Robot account.
Please take all necessary measures to avoid this in the future and to solve the issue.
[email protected] wrote: > #1581844 (176.9.127.34) > Allowed MACs: > Unallowed MACs:
> 02:d5:9e:70:29:a8 > 30:85:a0:b5:5a:5f > 4e:5f:48:27:5e:de
原因大概是我在虚拟机中配置了 ipv6 地址然后通过宿主机桥接到网络出去,上层监控流出流量中 MAC 地址不是物理机原来的 MAC。原来的 ipv6 地址配置按宿主机配置的:

allow-hotplug eth1
     address 2a02:5f8:152:923c::3/64
     gateway fe80::1 复制代码

在虚拟机配置中先删除掉桥接 ipv6 的网卡,随后便收到 hetzner 发来的 ticket 解决的邮件。然后找到 ipv6 路由模式配置虚拟机 ip,也没有再收到 network abuse MAC-Errors 的邮件了

allow-hotplug eth1
iface eth1 inet6 static
     address 2a02:5f8:152:923c::3/64
     gateway 2a02:5f8:152:923c::2 复制代码

gateway 2a02:5f8:152:923c::2 为宿主机 ipv6 地址
最后一步,问题解决后要要给 hetzner 邮件中发送的 statement 链接中填写声明信息,大概就是做了什么东西导致的问题,怎么解决的。

主机有多个 IPv4
https://medium.com/techielife/how-to-proxmox-on-hetzner-with-a-subnet-34ef4115f138
/29 — 8 IP addresses.
The very first one is the network address
the last one is the broadcast address
take the second address and use that on our bridge.
Hetzner AX41 安装 Proxmox VE 7
/etc/network/interfaces
# /etc/network/interfaces
### Hetzner Online GmbH – installimage
# Loopback device:
auto lo
iface lo inet loopback
# device: enp1s0
auto enp1s0
iface enp1s0 inet static
address <main IP>
netmask 255.255.255.255
pointopoint <gateway IP>
gateway <gateway IP>
iface enp1s0 inet6 static
address <address from the IPv6 subnet> #e.g. 2001:db8::2
netmask 128
gateway fe80::1
up sysctl -p
auto vmbr0
iface vmbr0 inet static
address <2nd IP in the list>
netmask <netmask of the subnet eg 255.255.255.248>
bridge_ports none
bridge_stp off
bridge_fd 0 复制代码
虚拟机桥接 vmbr0
Hetzner AX41 安装 Proxmox VE 7
Address:176.9.y.y — the IP in the range you want to use for this VM
Subnet: 176.9.x.x/29 — the first IP of the subnet and the CIDR notation
Gateway: <2nd IP in the list> — the IP used on vmbr0
Name Servers: 8.8.8.8 and 1.1.1.1

正文完
 0