Install KVM2010/06/10 |
It's the Virtualization settings with KVM ( Kernel-based Virtual Machine ) + QEMU.
This requires that the CPU on your computer has a function Intel VT or AMD-V.
|
|
[1] | Install KVM. |
[root@dlp ~]# yum -y install qemu-kvm qemu bridge-utils [root@dlp ~]# modprobe kvm [root@dlp ~]# modprobe kvm_intel # if AMD, "kvm_amd" [root@dlp ~]# kvm_intel 47768 0 kvm 152904 1 kvm_intel
|
[2] | Configure Bridge networking. |
[root@dlp ~]# cd /etc/sysconfig/network-scripts [root@dlp network-scripts]# cp ifcfg-eth0 ifcfg-br0 [root@dlp network-scripts]# vi ifcfg-br0 DEVICE= br0 # change HWADDR=00:50:43:00:3B:AE ONBOOT=yes BOOTPROTO=static TYPE= Bridge # change USERCTL=no IPV6INIT=no DNS1=10.0.0.30 IPADDR=10.0.0.30 NETMASK=255.255.255.0 GATEWAY=10.0.0.1 [root@ns network-scripts]# vi ifcfg-eth0 DEVICE=eth0 HWADDR=00:50:43:00:3B:AE ONBOOT=yes BOOTPROTO=static TYPE=Ethernet USERCTL=no IPV6INIT=no DNS1=10.0.0.30 IPADDR=10.0.0.30 NETMASK=255.255.255.0 GATEWAY=10.0.0.1 BRIDGE=br0 # add [root@dlp network-scripts]# [root@dlp ~]# /etc/rc.d/init.d/network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] Bringing up interface br0: [ OK ]
|
Sponsored Link |