[virt-manager PATCH 1/2] virtinst: prefer SATA bus for bhyve
Roman Bogorodskiy
bogorodskiy at gmail.com
Sat Feb 6 13:18:52 UTC 2021
Choose SATA as a default bus for bhyve as it doesn't support IDE.
Signed-off-by: Roman Bogorodskiy <bogorodskiy at gmail.com>
---
virtinst/connection.py | 2 ++
virtinst/devices/disk.py | 3 +++
2 files changed, 5 insertions(+)
diff --git a/virtinst/connection.py b/virtinst/connection.py
index 06bc60ad..669cf715 100644
--- a/virtinst/connection.py
+++ b/virtinst/connection.py
@@ -408,6 +408,8 @@ class VirtinstConnection(object):
def is_vz(self):
return (self._uriobj.scheme.startswith("vz") or
self._uriobj.scheme.startswith("parallels"))
+ def is_bhyve(self):
+ return self._uriobj.scheme.startswith("bhyve")
#########################
diff --git a/virtinst/devices/disk.py b/virtinst/devices/disk.py
index 4d63b283..a8971581 100644
--- a/virtinst/devices/disk.py
+++ b/virtinst/devices/disk.py
@@ -972,6 +972,9 @@ class DeviceDisk(Device):
return "sd"
if guest.os.is_q35():
return "sata"
+ if self.conn.is_bhyve():
+ # IDE bus is not supported by bhyve
+ return "sata"
return "ide"
def set_defaults(self, guest):
--
2.30.0
More information about the virt-tools-list
mailing list