[virt-tools-list] [PATCH] CD-ROMs should be on scsi bus

Shivaprasad G Bhat shivaprasadbhat at gmail.com
Tue Jun 7 14:32:18 UTC 2016


From: Shivaprasad G Bhat <sbhat at linux.vnet.ibm.com>

Commit f6322c9e changed the default bus type for disks to virtio.
That changed it for both disks and cdroms. The CD-ROMs dont work
if on virtio on pSeries. So, change the cdrom bus type to scsi as
before.

Signed-off-by: Shivaprasad G Bhat <sbhat at linux.vnet.ibm.com>
---
 virtinst/guest.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/virtinst/guest.py b/virtinst/guest.py
index e38a2e3..490b90b 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -1039,7 +1039,10 @@ class Guest(XMLBuilder):
                     self._os_object.supports_virtiodisk()))):
                 d.bus = "virtio"
             elif self.os.is_pseries():
-                d.bus = "virtio"
+                if d.is_cdrom():
+                    d.bus = "scsi"
+                else:
+                    d.bus = 'virtio'
             elif self.os.is_arm():
                 d.bus = "sd"
             elif self.os.is_q35():




More information about the virt-tools-list mailing list