Virtualization With KVM On A CentOS 6.0 Server - Page 3

6 Creating A Debian Squeeze Guest (Image-Based) From The Desktop With virt-manager

Instead of creating a virtual machine from the command line (as shown in chapter 4), you can as well create it from the Fedora desktop using virt-manager (of course, the virtual machine will be created on the CentOS 6.0 KVM host - in case you ask yourself if virt-manager is able to create virtual machines on remote systems).

To do this, click on the following button:

The New VM dialogue comes up. Fill in a name for the VM (e.g. vm11), select Local install media (ISO image or CDROM), and click on Forward:

Next select Linux in the OS type drop-down menu and Debian Squeeze in the Version drop-down menu, then check Use ISO image and click on the Browse... button:

Select the debian-6.0.2.1-amd64-netinst.iso image that you created in chapter 4 and click on Choose Volume:

Now click on Forward:

Assign memory and the number of CPUs to the virtual machine and click on Forward:

Now we come to the storage. Check Enable storage for this virtual machine, select Create a disk image on the computer's hard drive, specify the size of the hard drive (e.g. 12GB), and check Allocate entire disk now. Then click on Forward:

Now we come to the last step of the New VM dialogue. Go to the Advanced options section. Select Host device vnet0 (Bridge 'br0'); that is the name of the bridge which we created in chapter 2. Click on Finish afterwards:

The disk image for the VM is now being created.

Afterwards, the VM will start. Type in the root password of the CentOS 6.0 KVM host:

You should now be connected to the graphical console of the guest and see the Debian installer:

Now install Debian as you would normally do on a physical system.

Share this page:

3 Comment(s)

Add comment

Comments

From: Matt at: 2012-03-06 21:57:05

Hi,

First off, thanks for this tutorial, was very helpful!

I just have one problem.  I did everything written here in the same exact details and starting from a fresh install.  The guests have access to the internet but not the host...  Do you know what small tweak may be missing or what step did I miss (if any) to make the internet access work on the host?

Thanks again!

From: at: 2012-03-24 00:59:02

Same problem here. Additionally I found some incompatible issues between MegaRaid and kernel 2.6.32-220. It just randomly locks up, nothing in the logs, nothing on the console. I installed KVM on CentOS 5.8 for downgrading the kernel but no luck as it locks up again. I moved to Xen and all went successful. Both windows and linux work fine on Xen. Just my experience, I would recommend to use Xen instead of KVM.
 
 

 

 

From: Dmitriy at: 2012-03-23 08:39:14

Thanks! This article was very helpfull!