Here are the steps how I setup kvm on my fedora12 workstation. Normally you would install kvm and the virtual machines on a real server and access it from
your desktop via virt-manager. If you are going to go this way perform steps 1) – 5) on the server and step 6) on your client.
1) check if your CPU supports hardware virtualization
egrep '(vmx|svm)' --color=always /proc/cpuinfo
..the output should contain some highlighted string like “..vmx..”, if not you can stop here since your processor doesn’t support hardware virt.
2) install required packages on kvm server
yum install kvm qemu libvirt python-virtinst
3) start libvirt daemon
/etc/init.d/libvirtd start
4) check if installation was successfull
virsh -c qemu:///system list
..output should look like
Id Name State
———————————-
5) to access the virtual machines like a “real” physical machine we need a network bridge
yum install bridge-utils
/usr/sbin/brctl addbr br0
/sbin/ifconfig eth0 0.0.0.0 promisc up
/usr/sbin/brctl addif br0 eth0
/sbin/dhclient br0
/sbin/iptables -F FORWARD
check via: ifconfig
6) install the virt-manager on a “client” to access the virtual machines
yum install virt-manager
I’ll describe how to create a vm in a different blog entry immediately
Advertisement
Like this:
Be the first to like this post.