mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Script to switch virtualization hypervisors.
This commit is contained in:
13
bin/switch_virt.sh
Executable file
13
bin/switch_virt.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$1" -eq "kvm" ] ; then
|
||||
/etc/init.d/virtualbox stop
|
||||
modprobe kvm
|
||||
modprobe kvm_intel
|
||||
elif [ "$1" -eq "vbox" ] ; then
|
||||
rmmod kvm_intel
|
||||
rmmod kvm
|
||||
/etc/init.d/virtualbox start
|
||||
else
|
||||
echo 'WTF?' >&2
|
||||
fi
|
||||
Reference in New Issue
Block a user