Installing KVM in CentOS-7 Minimal.
1. Verify that Virtualization Technology (VT) is enabled in your server’s BIOS. Else enable the same in BIOS.
# grep -E '
2. Install Required packages for KVM.
# yum install kvm virt-manager libvirt virt-install qemu-kvm
3. Enable and start the
#
4. Verify the following kernel modules are loaded, and if not load manually.
# cat /proc/modules |
5. Configure a bridge port for VMs.
5.1 Add following entry in
BRIDGE=br0
5.2 Here I am using static IP address for server, and I am going to use the same for bridge interface too.
For this purpose I disabled following lines in network controller configuration file. (/
#IPADDR="192.168.0.46"
#PREFIX="16"
#GATEWAY="192.168.0.1"
#DNS1="192.168.0.31"
#DNS2="8.8.8.8"
5.3 Create /etc/sysconfig/network-scripts/ifcfg-br0 and add
DEVICE="br0"
TYPE="Bridge"
ONBOOT="yes"
BOOTPROTO="static"
DELAY="0"
IPADDR="192.168.0.46"
PREFIX="16"
GATEWAY="192.168.0.1"
DNS1="192.168.0.31"
DNS2="8.8.8.8"
5.4 Add following entry in /etc/
5.5 Read the file.
# sysctl -p /etc/
5.6 Restart the ‘NetworkManager’ service.
#
6. Finally connect to
#
7. Enable following line in /etc/libvirt/qemu
vnc_listen = "0.0.0.0"
8. Restart
9. Now you can connect to
10.
#
11. Check the same through
# netstat -tln|
12. In tight
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-remote-access-for-the-gnome-desktop-on-centos-7
192.168.0.1 is the address of an array of D-Link and Netgear model routers, similar to 192.168.1.1
ReplyDeleteThis blog provide nice tutorial on how installing kvm on centos 7. Thanks for sharing all steps of installation.
ReplyDelete