Skip to content

Instantly share code, notes, and snippets.

@kingargyle
Created June 11, 2013 15:00
Show Gist options
  • Save kingargyle/5757589 to your computer and use it in GitHub Desktop.
Save kingargyle/5757589 to your computer and use it in GitHub Desktop.
A set of shell scripts that allow toggling between KVM and Virtualbox. Useful when you need to use the Android emulator but also need to use Virtual Box on Linux as well.
#!/bin/bash
sudo /sbin/rmmod kvm_intel
sudo /sbin/rmmod kvm
sudo /etc/init.d/vboxdrv start
#!/bin/bash
/etc/init.d/vboxdrv stop
/sbin/insmod /lib/modules/`uname -r`/kernel/arch/x86/kvm/kvm.ko
/sbin/insmod /lib/modules/`uname -r`/kernel/arch/x86/kvm/kvm-intel.ko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment