Skip to content

Instantly share code, notes, and snippets.

@pmclanahan
Created March 31, 2010 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmclanahan/350476 to your computer and use it in GitHub Desktop.
Save pmclanahan/350476 to your computer and use it in GitHub Desktop.
Allows you to use both VirtualBox and KVM virtualization on the same machine.
#!/bin/sh
# Allows you to use both VirtualBox and KVM virtualization on the same machine.
# I replaced the commands to start both VB and KVM with this script.
# you'll also need to disable both services from starting automatically.
# sudo update-rc.d qemu-kvm disable
# sudo update-rc.d vboxdrv disable
case "$1" in
vbox)
gksudo service qemu-kvm stop
gksudo service vboxdrv start
VirtualBox
;;
*)
gksudo service vboxdrv stop
gksudo service qemu-kvm start
virt-manager
;;
esac
@tunggnu
Copy link

tunggnu commented May 27, 2022

It works. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment