Skip to content

Commit 59a59c8

Browse files
committed
kvm2 driver: Use scsi cdrom for arm64
On linux/aarch64 (e.g. Asahi Linux on MacBook M*) booting from SATA cdrom is broken and the VM drops into the UEFI shell. It seems that linux/aarch64 supports only virtio and scsi devices[1]. Replace with scsi cdrom (like the x86 version) and addd a virtio-scsi controller since the default scsi controller does not boot as well. [1] https://kubevirt.io/user-guide/virtual_machines/virtual_machines_on_Arm64/#disks-and-volumes
1 parent 0fb901c commit 59a59c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/drivers/kvm/domain_definition_arm64.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ const domainTmpl = `
4949
<devices>
5050
<disk type='file' device='cdrom'>
5151
<source file='{{.ISO}}'/>
52-
<target dev='sdc' bus='sata'/>
52+
<target dev='sdc' bus='scsi'/>
5353
<readonly/>
5454
</disk>
5555
<disk type='file' device='disk'>
5656
<driver name='qemu' type='raw' cache='default' io='threads' />
5757
<source file='{{.DiskPath}}'/>
5858
<target dev='hda' bus='virtio'/>
5959
</disk>
60+
<controller type='scsi' index='0' model='virtio-scsi'>
61+
</controller>
6062
<interface type='network'>
6163
<source network='{{.PrivateNetwork}}'/>
6264
<model type='virtio'/>

0 commit comments

Comments
 (0)