From 5db686e4aca9650e0ed20658baaec2adae3516fe Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Wed, 12 Apr 2023 09:15:18 +0800 Subject: [PATCH] Update buildvm.sh --- buildvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildvm.sh b/buildvm.sh index 3ec9766..b557c7b 100644 --- a/buildvm.sh +++ b/buildvm.sh @@ -56,7 +56,7 @@ else num=$((first_digit - 2))$second_digit$third_digit fi -qm create $vm_num --agent 1 --scsihw virtio-scsi-single --serial0 socket --cores $core --sockets 1 --net0 virtio,bridge=vmbr1,firewall=0 +qm create $vm_num --agent 1 --scsihw virtio-scsi-single --serial0 socket --cores $core --sockets 1 --cpu host --net0 virtio,bridge=vmbr1,firewall=0 qm importdisk $vm_num /root/qcow/${system}.qcow2 local qm set $vm_num --scsihw virtio-scsi-pci --scsi0 local:${vm_num}/vm-${vm_num}-disk-0.raw qm set $vm_num --bootdisk scsi0