summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <palcantara@suse.de>2018-04-17 10:56:19 -0300
committerPaulo Alcantara <palcantara@suse.de>2018-04-17 10:56:19 -0300
commit951f9e06006a3f6b70dec8cc0ae4da741d6085f3 (patch)
treeee23d9c702354a54bf29fc8562b9a1d75300b40e
parente3a982d01953b0f26f6a18bfcb3a546a43251285 (diff)
downloadvmhtool-951f9e06006a3f6b70dec8cc0ae4da741d6085f3.tar.gz
vmhtool-951f9e06006a3f6b70dec8cc0ae4da741d6085f3.tar.xz
vmhtool-951f9e06006a3f6b70dec8cc0ae4da741d6085f3.zip
Replace USB tablet with default PS/2 mouse on linux guestes
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
-rwxr-xr-xvmhelper3
1 files changed, 3 insertions, 0 deletions
diff --git a/vmhelper b/vmhelper
index 1aa067e..50a9b4b 100755
--- a/vmhelper
+++ b/vmhelper
@@ -226,6 +226,7 @@ my %qemu_linux_opts = (
bus => "-device ich9-ahci,id=ahci -device qemu-xhci,id=xhci",
hdd => " -device ide-hd,drive=hd,bus=ahci.0 -drive if=none,id=hd,cache=writeback,format=raw,file=%s",
net => "-device e1000,netdev=net0,mac=%s -netdev type=tap,id=net0,ifname=%s,script=no,downscript=no",
+ usb => "-device usb-tablet",
cdrom => "-cdrom %s",
kernel => "-kernel %s",
cmdline => "-append \"root=/dev/sda2 rw console=ttyS0\"",
@@ -321,6 +322,7 @@ if ($install_iso_path) {
} else {
$qemu_cmd .= " $qemu_linux_opts{'mach'} $qemu_linux_opts{'cpu'}";
$qemu_cmd .= " $qemu_linux_opts{'mem'} $qemu_linux_opts{'bus'}";
+ $qemu_cmd .= " $qemu_linux_opts{'usb'}";
$qemu_cmd .= " " . sprintf $qemu_linux_opts{'hdd'}, $vm_img_path;
$qemu_cmd .= " " . sprintf $qemu_linux_opts{'cdrom'}, $install_iso_path;
$qemu_cmd .= " " . sprintf $qemu_linux_opts{'net'}, $macaddr, $tap_iface;
@@ -471,6 +473,7 @@ my $qemu_cmd = "/usr/bin/qemu-system-x86_64";
$qemu_cmd .= " $qemu_linux_opts{'mach'} $qemu_linux_opts{'cpu'}";
$qemu_cmd .= " $qemu_linux_opts{'mem'} $qemu_linux_opts{'bus'}";
+$qemu_cmd .= " $qemu_linux_opts{'usb'}";
$qemu_cmd .= " " . sprintf $qemu_linux_opts{'hdd'}, $vm_img_path;
setup_shared_dirs();