Smoothwall Firewall project

Wednesday 12 May 2010

Using Linux kernel KVM and Virtualbox virtualization on one machine with Ubuntu

As I like to use many forms of virtualization to check out new features and tricks, as they are all different, then you can hit problems with the different kernel modules that get loaded at boot time. To solve this problem I have written this simple script to unload the Linux KVM modules when I wish to use Virtualbox, and then allow me to simply load them when I want to use KVM instead.

It also allows me to check if the modules are loaded, and uses a nice graphic password prompt as you have to execute this as a root user.

During testing I have found that loading the KVM modules while you have Virtualbox running is not the best of ideas, not surprisingly ;-)

Here is the script - I have had to split it up into two screen shots, otherwise I lose the formatting, which makes it harder to read.

No comments: