Merge pull request #18239 from nirs/aarch64-cdrom

kvm2 driver: Use scsi cdrom for arm64 to fix Linux on Apple Silicone
pull/18342/head
Medya Ghazizadeh 2024-03-07 18:35:07 -08:00 committed by GitHub
commit 8000ca594b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,7 @@ const domainTmpl = `
<devices>
<disk type='file' device='cdrom'>
<source file='{{.ISO}}'/>
<target dev='sdc' bus='sata'/>
<target dev='sdc' bus='scsi'/>
<readonly/>
</disk>
<disk type='file' device='disk'>
@ -56,6 +56,8 @@ const domainTmpl = `
<source file='{{.DiskPath}}'/>
<target dev='hda' bus='virtio'/>
</disk>
<controller type='scsi' index='0' model='virtio-scsi'>
</controller>
<interface type='network'>
<source network='{{.PrivateNetwork}}'/>
<model type='virtio'/>