Templates: cpu host (AlmaLinux 9 does not boot on kvm64)
This commit is contained in:
1 parent
9da0327faa
commit
2a371019d8
1 file changed
+2
-1
@@ -42,7 +42,8 @@ build_template() {
|
||||
fi
|
||||
virt-customize -a "$disk" --truncate /etc/machine-id
|
||||
|
||||
qm create "$VM_ID" --name "$VM_NAME" --net0 "virtio,bridge=$BRIDGE"
|
||||
# cpu host: AlmaLinux 9 needs x86-64-v2 and won't boot on the old kvm64 default
|
||||
qm create "$VM_ID" --name "$VM_NAME" --cpu host --net0 "virtio,bridge=$BRIDGE"
|
||||
qm set "$VM_ID" --cores "$CPU_CORE" --sockets "$CPU_SOCKET" --memory "$RAM"
|
||||
qm set "$VM_ID" --scsihw virtio-scsi-pci --scsi0 "$STORAGE:0,import-from=$disk,discard=on"
|
||||
qm set "$VM_ID" --ide2 "$STORAGE:cloudinit"
|
||||
|
||||
Reference in new issue
Block a user