Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit a9230a1

Browse files
Qing Lincrobinso
authored andcommitted
virtinst:change default disk bus type into scsi on pseries machine
When install OS from cdrom ,the default cdrom disk bus type is "ide", which is not supported on pseries machine.But there is no interface to change it through the whole install process.So we should set "scsi" (pseries machine support) as default disk type on pseries machine. Signed-off-by: Qing Lin <qinglbj@linux.vnet.ibm.com> Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com> (crobinso: Add Lin to AUTHORS)
1 parent fc55ae5 commit a9230a1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Patches also received from
6363
Eiichi Tsukata <devel-at-etsukata-dot-com>
6464
Gaudenz Steinlin <gaudenz-at-debian-dot-org>
6565
Guannan Ren <gren-at-redhat-dot-com>
66+
Qing Lin <qinglbj-at-linux-dot-vnet-dot-ibm-dot-com>
6667

6768
...send patches and get your name here...
6869

virtinst/Guest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,11 @@ def _set_defaults(self, devlist_func, remove_func, features):
15031503
disk.bus = "fdc"
15041504
else:
15051505
if self.installer.is_hvm():
1506-
disk.bus = "ide"
1506+
if (self.installer.type == "kvm" and
1507+
self.installer.machine == "pseries"):
1508+
disk.bus = "scsi"
1509+
else:
1510+
disk.bus = "ide"
15071511
elif self.installer.is_xenpv():
15081512
disk.bus = "xen"
15091513
used_targets.append(disk.generate_target(used_targets))

0 commit comments

Comments
 (0)