Sunday, September 25, 2011

ubuntu libvirt yeah it really is that good (tm)...

Watching this twitter thread:

https://twitter.com/#!/fak3r/status/118162368776777729

and remembering that the pfsense hackathon is soon, and pfsense 2.0 is alive!

Reminded me how simple it is now to spin up a VM, even one on a busted mac!

Check it:
root@isrv:~/Downloads# uname -a
Linux isrv 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:18:14 UTC 2011

root@isrv:~/Downloads# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"

From there it is cake:
root@isrv:~/Downloads# apt-get install kvm
root@isrv:~/Downloads# apt-get install libvirt-bin
root@isrv:~/Downloads# apt-get install virt-manager
root@isrv:~/Downloads# virt-manager
(follow some GUI prompts, point the GUI at the uncompressed .img file)

Done!


And it will load the kernel module with no effort!

root@isrv:~/Downloads# lsmod | grep kvm
kvm_intel              47162  3 
kvm                   317577  1 kvm_intel

In the style of A1 steak sauce - yeah it's that good!

Thanks Scott!



[any opinions here are all mine, and have absolutely nothing to do with my employer]
(c) 2011 James Cuff