Commit 2efa8480 by Avi Junowicz

How to install KVM on a new server

parent f664dcbd
Showing with 45 additions and 0 deletions
egrep -c '(vmx|svm)' /proc/cpuinfo
egrep -c ' lm ' /proc/cpuinfo
apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
adduser `id -un` libvirtd
virsh -c qemu:///system list
apt-get install virt-manager
cat /etc/network/interfaces
# 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
auto br0
iface br0 inet static
address 172.16.1.xx
network 172.16.1.0
netmask 255.255.255.0
gateway 172.16.1.101
broadcast 172.16.1.255
dns-nameservers 8.8.8.8
bridge_ports eth0 (change to physical interface name)
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
remove the virt0 interface.
virsh net-destroy default
virsh net-undefine default
ifconfig -a
reboot
ifconfig -a
open virt-manager and bring up the guest.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment