O'Reilly logo

Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04, Eighth Edition by Matthew Helmke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an Image

Create a raw image on Client 1. This represents the main hard drive of the VM, so be sure to give it adequate space:

localadmin@watson~$: kvm-img create -f raw server.img 5G

Download the ISO for the OS you want to install. This example uses Ubuntu:

localadmin@watson~$: wget http://releases.ubuntu.com/oneric/ubuntu-11.10-server-amd64.iso

Boot a KVM instance using the OS installer ISO to begin installation. The last option here sets up a Virtual Network Computing (VNC) display at port 0 that you use to connect to the VM via VNC:

localadmin@watson~$: sudo kvm -m 256 -cdrom ubuntu-11.04-server-amd64.iso -drive file=server.img,if=scsi,index=0 -boot d -net nic -net user -nographic ~-vnc :0

Connect to the VM using VNC. In this case, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required