|
救援模式下执行
mount -t tmpfs -o size=8000m tmpfs /mnt && mkdir /mnt/var && mkdir /mnt/var/cache && mkdir /mnt/var/lib && mkdir /mnt/var/run && mkdir /mnt/usr && mkdir /mnt/lib && rsync -a /var/cache/ /mnt/var/cache/ && rsync -a /var/lib/ /mnt/var/lib/ && rsync -a /var/run/ /mnt/var/run/ && rsync -a /usr/ /mnt/usr/ && rsync -a /lib/ /mnt/lib/ && mount -B /mnt/var/cache /var/cache && mount -B /mnt/var/lib /var/lib && mount -B /mnt/var/run /var/run && mount -B /mnt/usr /usr && apt-get -y update
apt-get -y --force-yes upgrade
apt-get -y install qemu kvm
cd /mnt
wget "https://proxmox.com/en/downloads?task=callelement&format=raw&item_id=638&element=f85c494b-2b32-4109-b8c1-083cca2b7db6&method=download&args[0]=d24d68bd3feb8bad328ea50c7c4d9e39" -O pve.iso
dd if=/dev/zero of=/dev/sda bs=1M count=1
dd if=/dev/zero of=/dev/sdb bs=1M count=1
partprobe
qemu-system-x86_64 -net nic -net user,hostfwd=tcp::122-:22 -m 2047M -alt-grab -localtime -enable-kvm -cpu core2duo,+nx -smp 2 -usbdevice tablet -k en-us -boot c -cdrom /mnt/pve.iso -hda /dev/sda -hdb /dev/sdb -vnc :1965
以上apt-get出错不用管,只要qemu安装上就行
连接vnc ip:7865,安装系统,选stand版安装完成之后进系统
示例是 pve7的
vim /etc/network/interfaces
auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet dhcp
bridge-ports eno1
bridge-stp off
bridge-fd 0
参考于之前大佬们的 帖子
不是只能pve 任意iso |
|