Friday, April 11, 2014

Virtual Machine over Ubuntu 12.04

1) KVM

$sudo egrep '(vmx|svm)' --color=always /proc/cpuinfo
$sudo apt-get install ubuntu-virt-server python-vm-builder kvm-ipxe virtinst libcap2-bin
$sudo adduser `id -un` libvirtd
$sudo adduser `id -un` kvm
$sudo virsh -c qemu:///system list
$sudo apt-get install bridge-utils
$sudo /etc/init.d/networking restart
$sudo vi /etc/network/interfaces
#add this lines
auto kvmbr0
iface kvmbr0 inet dhcp
bridge_ports eth0

$ sudo /etc/init.d/networking restart


References:
[1] http://www.mrxuri.com/2013/11/22/install-kvm-on-ubuntu-server-12-04-lts-and-create-a-virtual-machine.html
[2] http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-12.04-lts

No comments:

Ubuntu Forware port 80

  #!/bin/bash iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069 iptables -t nat -A PREROUTING -i eth0 -p tc...