diff --git a/tests/cli-test-xml/compare/virt-install-aarch64-graphics.xml b/tests/cli-test-xml/compare/virt-install-aarch64-graphics.xml index 938e2e970..c234b3a43 100644 --- a/tests/cli-test-xml/compare/virt-install-aarch64-graphics.xml +++ b/tests/cli-test-xml/compare/virt-install-aarch64-graphics.xml @@ -14,6 +14,8 @@ /usr/bin/qemu-system-aarch64 + + diff --git a/virtinst/guest.py b/virtinst/guest.py index 7984cd7e1..6aefbfed1 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -621,18 +621,31 @@ class Guest(XMLBuilder): def add_default_input_device(self): if self.os.is_container(): return - if not self.os.is_x86(): - return if self.get_devices("input"): return if not self.get_devices("graphics"): return + if self._usb_disabled(): + return - if self._os_object.supports_usbtablet() and not self._usb_disabled(): + usb_tablet = False + usb_keyboard = False + if self.os.is_x86(): + usb_tablet = self._os_object.supports_usbtablet() + if self.os.is_arm_machvirt(): + usb_tablet = True + usb_keyboard = True + + if usb_tablet: dev = VirtualInputDevice(self.conn) dev.type = "tablet" dev.bus = "usb" self.add_device(dev) + if usb_keyboard: + dev = VirtualInputDevice(self.conn) + dev.type = "keyboard" + dev.bus = "usb" + self.add_device(dev) def add_default_sound_device(self): if not self.os.is_hvm():