KVM Guest Management With Virt-Manager On Ubuntu 8.10 - Page 3

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Sun, 2009-02-08 19:04. ::

3.1 Creating Virtual Machines

Creating guests on remote KVM hosts is not yet supported - you will see the following message when you click on the New button while the remote KVM host is marked: Creating new gusts on remote connections is not yet supported.

If have therefore installed virt-manager on my KVM host as well to show you how to create a new virtual machine (if you want to do this, please make sure you have followed chapter 2.1!).

Right-click on localhost and select New:

The virtual machine creation wizard comes up - click on Forward:

Type in a name for your new virtual machine (e.g. vm7):

On the next screen, select Fully Virtualized (Paravirtualized should be greyed out anyway) as well as your CPU architecture. Pick kvm from the Hypervisor drop-down menu:

Select the installation method - normally you choose Local install media (ISO image or CDROM) here. Then select the operating system (e.g. Linux) and the variant (e.g. Ubuntu 8.10):

If you want to install from a CD or DVD, insert it, select CD-ROM or DVD and choose the CD from the drop-down menu. If you want to install from an ISO file, please specify the full path to the file:

Now we come to the storage space. You can either install the virtual machine in an image file (select Simple File)...

... or, if you have an unused partition or are using LVM and have some unallocated space in your volume group, you can specify a disk partition. Disk partitions are faster and not as IO-heavy as image files.

Let's assume you are using LVM and have some unallocated space in your volume group (e.g. vg0), then you can create a new logical volume (e.g. vm7) with a size of 4GB as follows:

lvcreate -L4G -n vm7 vg0

Afterwards, you fill in /dev/vg0/vm7 in the Partition field:

After you've configured your storage type, you must configure the network - select Shared physical device (this will create a bridge so that the virtual machine will have a working network connection from the start on):

Next allocate some RAM and CPU(s) to the virtual machine:

Finally, there's a summary screen which lists all selected options. If they look ok, click on Finish to start the installation of the virtual machine:

A graphical console comes up in which you can install your new virtual machine (click on it to work in the virtual machine, and press CTRL+ALT to release the mouse pointer from the console):

 

4 Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.