[virt-tools-list] [virt-manager PATCH] Add bhyve support
Roman Bogorodskiy
bogorodskiy at gmail.com
Fri Apr 4 18:43:11 UTC 2014
Allow connection to bhyve using bhyve:///system URI.
---
virtManager/connect.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/virtManager/connect.py b/virtManager/connect.py
index b779c75..bc6d56d 100644
--- a/virtManager/connect.py
+++ b/virtManager/connect.py
@@ -32,7 +32,8 @@ from virtManager.baseclass import vmmGObjectUI
(HV_QEMU,
HV_XEN,
HV_LXC,
-HV_QEMU_SESSION) = range(4)
+HV_QEMU_SESSION,
+HV_BHYVE) = range(5)
(CONN_SSH,
CONN_TCP,
@@ -153,6 +154,7 @@ class vmmConnect(vmmGObjectUI):
model.append(["Xen"])
model.append(["LXC (Linux Containers)"])
model.append(["QEMU/KVM user session"])
+ model.append(["Bhyve"])
combo.set_model(model)
uiutil.set_combo_text_column(combo, 0)
@@ -364,6 +366,8 @@ class vmmConnect(vmmGObjectUI):
hvstr = "xen"
elif hv == HV_QEMU or hv == HV_QEMU_SESSION:
hvstr = "qemu"
+ elif hv == HV_BHYVE:
+ hvstr = "bhyve"
else:
hvstr = "lxc"
@@ -385,7 +389,7 @@ class vmmConnect(vmmGObjectUI):
hoststr += addrstr + "/"
uri = hvstr + hoststr
- if hv == HV_QEMU:
+ if hv in (HV_QEMU, HV_BHYVE):
uri += "system"
elif hv == HV_QEMU_SESSION:
uri += "session"
--
1.9.0
More information about the virt-tools-list
mailing list