How To Install KVM And libvirt On CentOS 6.2 With Bridged Networking - Page 2

Post-install Steps

Creating a virtual machine / guest by means of Virtual Machine Manager (virt-manager) from the Linux client machine. The guest OS will be an Ubuntu Server 11.10 Oneiric Ocelot:

For Ubuntu client (like in this guide):

$ sudo apt-get install virt-manager

For CentOS client:

$ sudo yum install virt-manager

Then download oneiric-server-amd64.iso from the Ubuntu site on the Linux client: 

$ wget http://releases.ubuntu.com/11.10/ubuntu-11.10-server-amd64.iso

Copy the downloaded ISO to SERVER:

$ scp ubuntu-11.10-server-amd64.iso bozz@SERVER:/var/lib/libvirt/images/

On the Linux client run virt-manager:

$ virt-manager &

Go to "File" / "Add Connection..." with these settings: 

  • Hypervisor: QEMU/KVM
  • Method: ssh
  • Username: bozz
  • Host: SERVER

Once connected click on the "Create a new virtual machine" button.

  1. Set the name to ubuntu-oneiric and choose "Local install media (ISO image or CDROM)":

  2. Browse and select the ISO located at /var/lib/libvirt/images/ubuntu-11.10-server-amd64.iso, OS type "Linux" and Version "Ubuntu 11.10 (Oneiric Ocelot)":

  3. Choose memory and CPU setting as you wish:

  4. Choose storage settings:

  5. Choose the previously created bridge network device "Host device eth0 (Bridge 'br0')", Virt type "kvm" and Architecture "x86_64":

    Press "Finish" button and install the guest OS.

 

References

Share this page:

1 Comment(s)

Add comment

Comments

From: Chris at: 2012-06-11 14:09:55

I was following this tutorial and got stuck at the point where I was to connect to the libvirtd using SSH. After a looking into this matter a little I found that the SSH service was not active on my machine as default. I just installed the OS right before starting this tutorial. After enabling and starting the SSH service in the services window, I was able to connect. Just thought that you may want to add this as a side note in your tutorial.