In this tutorial, How to install KVM ( Kernel-based Virtual Machine ) and QEMU on Ubuntu 14.04 LTS server. This requires a CPU on your system to enable Intel VT or AMD-V.
- KVM is an Open Source.
- QEMU is a open source machine emulator and virtualizer.
Table of Contents
Install KVM and QEMU on Ubuntu.
# apt-get -y install qemu-kvm libvirt-bin virtinst bridge-utils
Enable vhost-net on your system.
# modprobe vhost_net
# lsmod | grep vhost
# echo vhost_net >> /etc/modules
Configure networking bridge Interface.
For my example as below
# vi /etc/network/interfaces
The content as below
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# change like follows
auto eth0
iface eth0 inet manual
#iface eth0 inet static
#address 192.168.3.50
#network 192.168.3.0
#netmask 255.255.255.0
#broadcast 192.168.3.255
#gateway 192.168.3.1
#dns-nameservers 192.168.3.30
# add bridge interface
iface br0 inet static
address 192.168.3.30
network 192.168.3.0
netmask 255.255.255.0
broadcast 192.168.3.255
gateway 192.168.3.1
dns-nameservers 192.168.3.30
bridge_ports eth0
bridge_stp off
auto br0
Conclusion
Through the article, you can use install KVM and QEMU on Ubuntu as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!