Using KVM to boot a VM

Posted: December 8, 2014 in Uncategorized

To create an image:

root@zion:~# qemu-img create -f qcow2 ubuntu.img 10G

To Install from the .iso image:

root@zion:~# qemu-system-x86_64 -enable-kvm -m 10000 -cdrom ubuntu-14.04.1-server-amd64.iso -drive file=ubuntu.img,if=virtio,index=0 -boot d -net nic -net user -nographic -vnc 10.x.x.178:1

Use a VNC client to log into the VNC session. Enter 10.x.x.178:1 to log into the VNC Session and complete the installation.

Once the installation is complete, login to the VM using any vnc client.

kvm -m 10000 -drive file=ubuntu.img,if=virtio,index=0 -boot c -net nic -net user -nographic -vnc :1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s