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

Want to support HowtoForge? Become a subscriber!
Submitted by eduardo.lago.aguiar (Contact Author) (Forums) on Wed, 2012-02-29 14:22. ::

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

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.



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.
Submitted by Chris (not registered) on Mon, 2012-06-11 15:09.
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.