
The host is now ready to start creating kvm guests. Sed -i -e'/HWADDR/d' -e'/UUID/d' -e's/eth0/br0/' -e's/Ethernet/Bridge/' \Įcho DELAY=0 > /etc/sysconfig/network-scripts/ifcfg-br0Įcho 'BOOTPROTO="none"' > /etc/sysconfig/network-scripts/ifcfg-eth0Įcho BRIDGE=br0 > /etc/sysconfig/network-scripts/ifcfg-eth0 chkconfig network onĬp -p /etc/sysconfig/network-scripts/ifcfg. In this example eth0 is the device to support the bridge and br0 will be the new device. Optionally you can set up bridging which will allow guests to have a network adaptor on the same physical lan as the host. sed -i 's/^\(_forward =\).*/\1 1/' /etc/nf sysctl -pĬonfigure libvirtd service to start automatically and reboot. semanage fcontext -a -t virt_image_t "/vm(/.*)?" restorecon -R /vmĪllow packet forwarding between interfaces. In this example I use /vm to store my disk image files. If you have use any directories other than /var/lib/libvirt for kvm files, set the selinux context. Libguestfs-tools policycoreutils-python bridge-utils yum -y install dejavu-lgc-* xorg-x11-xauth tigervnc \ Dell provides two whitepapers about how to use KVM in CentOS 6, part 1 and part 2. Please consider reading the upstream documentation located at ĬentOS 6 has native availability of KVM virtualization support and tools in the base distribution.
