Installing a virtual machine with virt-manager

(from Tutorials and videos)

Installing a virtual machine in virt-manager is a three step process. First download the operating system ISO that you want to install. Secondly start virt-manager and create a new virtual machine for your guest. Lastly run the guest installer from the ISO.

You may also be interested in our tutorial which explains how to do all of this from the command line.

If you run into any problems you might want to make sure whether your hardware supports virtualization.

Download the ISO #

Download an ISO of the operating system you want to install. Here are some common starting points:

Remember the operating system you install as a guest does not need to be the same as your host!

Start virt-manager #

Start virt-manager (Applications → System Tools → Virtual Machine Manager)

You may be asked to select the hypervisor and/or type your root password:

Start new VM wizard #

Click the button in the top left corner to begin installing your virtual machine:

Since you have downloaded an ISO, you need to select Local install media. Also choose a name for the new guest.

At the next step you need to tell virt-manager where you downloaded the ISO to. When you click Browse you will see the default libvirt storage volume (which will probably be empty the first time):

Click Browse Local to browse to the ISO on your local disk.

The third step allows you to choose the amount of RAM and number of virtual CPUs allocated to the guest. For KVM guests, RAM can be overcommitted carefully (you can allocate more RAM to all your guests than you really have available). For Xen guests this is not possible. A modern Linux guest requires at least 512 MB of RAM, and more is better.

If all goes well you should be able to skip through the next steps and start your install:

Run the installer #

From now on you should install the guest from the ISO as if you were installing it on real hardware:

Back to Tutorials and videos.

Copyright © 2011 Red Hat, Inc. — License: GPL or CC — Last updated on 13:42:47 14-Jun-2011