Comments on Virtualization With KVM On Ubuntu 11.04

Virtualization With KVM On Ubuntu 11.04 This guide explains how you can install and use KVM for creating and running virtual machines on an Ubuntu 11.04 server. I will show how to create image-based virtual machines and also virtual machines that use a logical volume (LVM). KVM is short for Kernel-based Virtual Machine and makes use of hardware virtualization, i.e., you need a CPU that supports hardware virtualization, e.g. Intel VT or AMD-V.

10 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

*sigh*....

By: Anonymous

Instead of confusing the users with all this code, why can't you design a simple step-by-step "install wizard" with all the commands embedded?

All I would have to do is just download the "Install Wizard"!!!

I truly can't understand why do I have to bother will all that code...

Even though I am a Linux Fan, sorry, but Windows world is just so simpler...

I truly will not bother playing around with Virtualization in Linux if I have to bother with so much code, and so many articles.

Thanks.

By: Anonymous

You must have a very simple job. One that robots will be doing sometimes soon.

By: Anonymous

you have got to be kidding me! Windows is so much easier??? Really!! LMAO!

By: Tim

The beauty of Linux is that it is not cookie cutter like Windows.  Even though it is tougher to configure (code), it gives a you a better feeling of accomplishment when you do find success. This leads to more trials and victories, you gain proficiency along the way. 

By: David N

To avoid this problem:

Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 24, in <module>
    cli.main()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 222, in main
    self.set_disk_layout(hypervisor)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 399, in set_disk_layout
    int(pair[1])))
IndexError: list index out of range

make sure that your vmbuilder.partition file has the columns separated by spaces, not tabs.  I learned the hard way!

By: David W

Thank You so much!  

Spent a whole day trying to figure this one out!! 

By: tim999

If you get an error indicating there are not enough Loops and you are running Ubuntu with Grub2, then you can increase Loops with the following.

 
First see how many loops you have with this command
ls /dev/loop*

Then edit grub module 10_linux
gedit /etc/grub.d/10_linux

Inside 10_linux, find the line that looks simular to the line below
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}

Make the lline look like this -
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} max_loop=64

Save it, 10_linux

Remember to run the command below (to incorporate the change)
grub-update

ReBoot your system and rerun this command you should see 64 loops
ls /dev/loop*

By:

Can't figure this text editor out:

No text is entered until I hit the o key.

Can't remove carriage returns.

Arrow keys behave erratically, sometimes entering A, C, etc characters when pressed.  This is on a normal 110 key keyboard.

Can't save.

Found Ctrl-C <Enter> :quit <Enter>, but that doesn't save.

No commands help available within the vi text editing screen.

It would be nice if this guide explicitly stated how to edit (and SAVE) files using the vi command from terminal.

 I know I've gotten lazy using Windows, but even in DOS I never had these kinds of troubles.  Makes me wish for a GUI based Virtual Machine installer, since this is all just so the kid can run some PC based games.  QEMU Launcher won't even get past Launch, no error, just nothing happens...  (Don't even ask about Play On Linux / Wine)

By: Anonymous

Have you never used vi before?  Google the commands for vi.  Quick reference:

 To edit (insert new characters or delete, etc.) hit "i" then start editing.

 To save and quite, press "esc" once done editing.  Then press ":" and type "wq".  That will write and quit.