[virt-tools-list] [PATCH v2] virtinst: Use virtio bus type for disks on pSeries machines

Shivaprasad G Bhat sbhat at linux.vnet.ibm.com
Thu Apr 21 08:00:34 UTC 2016


pSeries doesn't support ide and so was changed to use the scsi. virtio works
better on pSeries with better performance outcomes. Change the default to
virtio for disks

Signed-off-by: Shivaprasad G Bhat <sbhat at linux.vnet.ibm.com>
---
 .../compare/virt-install-ppc64-machdefault-f20.xml |    2 +-
 .../compare/virt-install-ppc64-pseries-f20.xml     |    2 +-
 .../compare/virt-install-ppc64le-kvm-import.xml    |    2 +-
 virtinst/guest.py                                  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/cli-test-xml/compare/virt-install-ppc64-machdefault-f20.xml b/tests/cli-test-xml/compare/virt-install-ppc64-machdefault-f20.xml
index 43a119a..4c5e858 100644
--- a/tests/cli-test-xml/compare/virt-install-ppc64-machdefault-f20.xml
+++ b/tests/cli-test-xml/compare/virt-install-ppc64-machdefault-f20.xml
@@ -17,7 +17,7 @@
     <disk type="file" device="disk">
       <driver name="qemu" type="qcow2"/>
       <source file="/dev/default-pool/testvol1.img"/>
-      <target dev="sda" bus="scsi"/>
+      <target dev="vda" bus="virtio"/>
     </disk>
     <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
       <image compression="off"/>
diff --git a/tests/cli-test-xml/compare/virt-install-ppc64-pseries-f20.xml b/tests/cli-test-xml/compare/virt-install-ppc64-pseries-f20.xml
index 43a119a..4c5e858 100644
--- a/tests/cli-test-xml/compare/virt-install-ppc64-pseries-f20.xml
+++ b/tests/cli-test-xml/compare/virt-install-ppc64-pseries-f20.xml
@@ -17,7 +17,7 @@
     <disk type="file" device="disk">
       <driver name="qemu" type="qcow2"/>
       <source file="/dev/default-pool/testvol1.img"/>
-      <target dev="sda" bus="scsi"/>
+      <target dev="vda" bus="virtio"/>
     </disk>
     <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
       <image compression="off"/>
diff --git a/tests/cli-test-xml/compare/virt-install-ppc64le-kvm-import.xml b/tests/cli-test-xml/compare/virt-install-ppc64le-kvm-import.xml
index 64799d2..f7e3b67 100644
--- a/tests/cli-test-xml/compare/virt-install-ppc64le-kvm-import.xml
+++ b/tests/cli-test-xml/compare/virt-install-ppc64le-kvm-import.xml
@@ -17,7 +17,7 @@
     <disk type="file" device="disk">
       <driver name="qemu" type="qcow2"/>
       <source file="/dev/default-pool/testvol1.img"/>
-      <target dev="sda" bus="scsi"/>
+      <target dev="vda" bus="virtio"/>
     </disk>
     <interface type="bridge">
       <source bridge="eth0"/>
diff --git a/virtinst/guest.py b/virtinst/guest.py
index da07410..ab6dcba 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -1036,7 +1036,7 @@ class Guest(XMLBuilder):
                     self._os_object.supports_virtiodisk()))):
                 d.bus = "virtio"
             elif self.os.is_pseries():
-                d.bus = "scsi"
+                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