Set up KVM on Scientific Linux 6 Server (alpha 3)

Include virtualization group during initial install. Attempt to start virt-manager pops up an error message

Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager.py", line 413, in
main()
File "/usr/share/virt-manager/virt-manager.py", line 344, in main
appname + "-icon.svg")
GError: Couldn't recognize the image file format for file '/usr/share/virt-manager/pixmaps/virt-manager-icon.svg'

To be able to start virt-manager run as root to re-create the ‘gdk-pixbuf.loaders’ file :-

/usr/bin/gdk-pixbuf-query-loaders-64 > /etc/gtk-2.0/x86_64-redhat-linux-gnu/gdk-pixbuf.loaders

or just comment out lines 343,344 in /usr/share/virt-manager/virt-manager.py to allow virt-manager to start . Set up bridged networking as follows :-
To create network initscripts in the /etc/sysconfig/network-scripts directory it is necessary to create 2 config files. The first one (ifcfg-eth0) defines your physical network interface, and says that it will be part of a bridge:

# cat ifcfg-eth0
DEVICE=eth0
HWADDR=00:16:76:D6:C9:45
ONBOOT=yes
BRIDGE=br0
NM_CONTROLLED=no

Obviously change the HWADDR to match your actual NIC’s address.
The second config file (ifcfg-br0) defines the bridge device:

# cat ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no

# chkconfig NetworkManager off
# chkconfig network on
# service network start

Install domains via commands like

*****************************************************************************************************
[root@ServerASL6 ~]# virt-install --connect qemu:///system -n VMF14 -r 1024 --vcpus=2 -f /vm/vm14.qcow2 -s 12 -c /mnt/usr/tmp/f14.iso --vnc --accelerate --network=bridge:br0 --hvm
Starting install...
Creating storage file vm14.qcow2 | 12 GB 00:00
Creating domain... | 0 B 00:00
Guest installation complete... restarting guest.
*****************************************************************************************************
[root@ServerASL6 vm]# virt-install --connect qemu:///system -n UDESK1010 -r 1024 --vcpus=2 \
> -f /vm/u1010.qcow2 -s 12 -c \
> /vm/u1010desk.iso --vnc \
> --accelerate --network=bridge:br0 --hvm
Starting install...
Creating storage file u1010.qcow2 | 12 GB 00:00
Creating domain... | 0 B 00:00
Guest installation complete... restarting guest.
*****************************************************************************************************
[root@ServerASL6 root]# virt-install --connect qemu:///system -n VM14F -r 1024 --vcpus=2 \
> -f /dev/vg_kvms/vm03 -c /mnt1/usr/tmp/f14.iso --vnc \
> --accelerate --network=bridge:br0 --hvm
Starting install...
Creating domain... | 0 B 00:00
Guest installation complete... restarting guest.
*******************************************************************************************************












Restart domain via virt-mamager



Virt-install Ubuntu 10.10 desktop











References
1. http://forums.fedoraforum.org/showthread.php?t=179996

Leave a comment