#编辑主机
nano /etc/hosts
192.168.100.100 fnos.me fnos
#添加proxmox源
#echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
#wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
#更新并安装pve
apt update
apt install proxmox-ve
#固定pve内核版本(可选)
proxmox-boot-tool kernel list
proxmox-boot-tool kernel pin 6.6.38-trim
#直通(可选)
nano /etc/default/grub
intel_iommu=on iommu=pt
echo -e "vfio\nvfio_iommu_type1\nvfio_pci\nvfio_virqfd" >> /etc/modules
update-grub
update-initramfs -u -k all
reboot
#关闭防火墙
cat /proc/sys/net/bridge/bridge-nf-call-iptables
echo 0 > /proc/sys/net/bridge/bridge-nf-call-iptables
crontab -e
@reboot /bin/sh -c 'echo 0 > /proc/sys/net/bridge/bridge-nf-call-iptables'
#
chmod 777 /var/tmp
qm importdisk 101 /vol1/1000/PVE/template/iso/immortalwrt-x86-64-generic-squashfs-combined-efi-by.xiaochen-note-20241108.img PVE
lsof -i:8006
#设置开机30秒后关闭Pve页面管理面板(不影响虚拟机状态)
crontab -e
@reboot sleep 30 && /usr/bin/pkill pveproxy
systemctl restart pveproxy
#启动PVE网页管理
pkill pveproxy
#关闭PVE网页管理