Posted by: kezhong | January 10, 2011

Install Fedora 14 as KVM guest on Logical Volumes of Fedora 14

Before installing Fedora 14, we should enable virtualization through BIOS setting. When I installed Fedora 14 on host machine, I created 9 Logical Volumes, each of them had 200GB. One Logical Volume used for file system of host system, the others for vms.

Install KVM on host
# yum install kvm qemu libvirt python-virtinst

Configure bridge network
Use network service instead of NetworkManager.
Create /etc/sysconfig/network-scripts/ifcfg-br0

Modify /etc/sysconfig/network-script/ifcfg-eth0

Download Fedora 14 iso file in the /home/vms directory, rename it to f14.iso, and make sure the root user own it.

Create the configuration file vm1.xml for the first guest in the /etc/libvirt/qemu directory
<domain type=’kvm’>
    <type arch=’x86_64′ machine=’pc’>hvm</type>
    <boot dev=’cdrom’/>
  <clock offset=’utc’/>
    <disk type=’file’ device=’cdrom’>
      <source file=’/home/vms/f14.iso’/>
      <target dev=’hdc’ bus=’ide’/>
    <disk type=’block’ device=’disk’>
      <source dev=’/dev/VolGroup00/LogVol01’/>
      <target dev=’vda’ bus=’ide’/>
    <interface type=’bridge’>
      <mac address=’25:30:01:04:a3:62’/>
      <source bridge=’br0’/>
      <model type=’virtio’/>
    <input type=’mouse’ bus=’ps2’/>
    <graphics type=’vnc’ port=’-1′ autoport=’yes’ listen=’’/>

Execute the virsh program, then define vm1.xml, start vm1, vncdisplay vm1 to show IP address and port. Use TigerVNC Viewer to install Fedora 14 as guest. After installed, destroy vm1, modify the vm1.xml file to change “<boot dev=’cdrom’/>” to “<boot dev=’hd’/>”, then define, start again until finish installation.

Virtualization With KVM On A Fedora 11 Server


  1. As for CentOS, there is a good link,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: