pve_source
1 | wget -q -O /root/pve_source.tar.gz 'https://bbs.x86pi.cn/file/topic/2024-01-06/file/24f723efc6ab4913b1f99c97a1d1a472b2.gz' && tar zxvf /root/pve_source.tar.gz && /root/./pve_source |
创建 ipv4 虚拟机
1 | curl -L https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/buildvm_extra_ip.sh -o buildvm_extra_ip.sh && chmod +x buildvm_extra_ip.sh |
创建 nat 虚拟机
1 | curl -L https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/buildvm.sh -o buildvm.sh && chmod +x buildvm.sh |
创建 windows 虚拟机
1 | chmod +x buildvm_windows_server_2022.sh |
删除虚拟机
1 | curl -L https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/pve_delete.sh -o pve_delete.sh && chmod +x pve_delete.sh |
硬盘直通
1 | ls /dev/disk/by-id/ |
qemu-guest-agent
1 | apt install qemu-guest-agent -y |