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

Commit 0692907

Browse files
committed
Workaround libvirt bug wrt to Xenner
1 parent 4332317 commit 0692907

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

virtinst/ParaVirtGuest.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def __init__(self, type=None, connection=None, hypervisorURI=None, installer=Non
3333
if self.type == "xen":
3434
self.disknode = "xvd"
3535
else:
36+
# XXX hack for libvirt + xenner limitation - it should
37+
# allow xvdNNN, but rejects it. Remove this when
38+
# libvirt is fixed
3639
self.disknode = "hd"
3740

3841
def _get_osblob(self, install):
@@ -47,7 +50,13 @@ def _connectSerialConsole(self):
4750
return child
4851

4952
def get_input_device(self):
50-
return ("mouse", "xen")
53+
if self.type == "xen":
54+
return ("mouse", "xen")
55+
else:
56+
# XXX hack for libvirt + xenner limitation - it should
57+
# allow mouse+xen, but rejects it. Remove this when
58+
# libvirt is fixed
59+
return ("mouse", "ps2")
5160

5261
def validate_parms(self):
5362
if not self.location and not self.boot:

0 commit comments

Comments
 (0)