Redhat just released RHEL 5.4 with KVM & Xen both supported in this release, so i have downloaded CentOS 5.4 and try to play around with KVM.
Dell M710 with 8 cores of Nehalem , 72G of RAMs
CentOS 5.4 with KVM & Xen installed
My test guest:
The sweet thing:
- virt-manager is able to support for KVM new machine creation.
- The future for Redhat virtualization , since Redhat acquired Qumranet(company behind KVM)
The bad thingssss:
- Xen & KVM cannot run in the same time, it is either KVM or Xen
- No paravirtualization in KVM, only FULL Virtialization, Xen jhas both!
- Need driver for network in paravirtualzied mode for XP,Vista,Win7
- No network bridge setup!! Xen do this automatically for us! Network bridge allow your guest os to have their own IP without sharing with the host! I will cover this later on.
By the end of this post, you should be able to setup your bridge!
Setting up network bridge
Here is what we need to create a bridge so the guest os is able to get IP from our LAN.
1. goto /etc/sysconfig/network-scripts
2. There is only 1 eth is enabled, so i simply backup my original config by
cp ifcfg-eth0 BAK-ifcfg-eth0
3. Then create a network bridge config called ifcfg-br0
paste the config, the IPaddr use the original from eth0(your host original IP), example in this case:
4. Then edit ifcfg-eth0 ,
Clear all content and replace with the line below:
5. restart network service or reboot.
service network restart
You should see the bridge appear in virt-manager, it was previously grey out and no selection!
Though my tutorial seems easy, but i spend 2 days to find out a solution. I am totally new in networking bridge 🙂 hope this help!
And now my windows 7 guest OS is online!
Update : 11th March 2010
I faced issue bringing up the network recently. There is few minor changes.
IP=xxx.xxx.xxx.xxx #if you are using static
Remove HWADDR if there is any!