Debian 7.0
Sponsored Link

Install KVM2013/05/06

 
It's Virtualization with KVM ( Kernel-based Virtual Machine ) + QEMU. This requires that the CPU on your computer has a function Intel VT or AMD-V.
[1] Install KVM
root@dlp:~#
aptitude -y install qemu-kvm libvirt-bin virtinst bridge-utils
[2] Enable vhost-net.
root@dlp:~#
modprobe vhost_net

root@dlp:~#
lsmod | grep vhost

vhost_net     27606 0
root@dlp:~#
echo vhost_net >> /etc/modules

[3] Configure Bridge networking
root@dlp:~#
vi /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
# change like follows

auto eth0
iface eth0 inet manual

#
iface eth0 inet static
#
address 10.0.0.50
#
network 10.0.0.0
#
netmask 255.255.255.0
#
broadcast 10.0.0.255
#
gateway 10.0.0.1
#
dns-nameservers 10.0.0.30
# add bridge interface

iface br0 inet static
address 10.0.0.30
network 10.0.0.0
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 10.0.0.1
dns-nameservers 10.0.0.30
bridge_ports eth0
bridge_stp off
auto br0
root@dlp:~#
/etc/init.d/networking stop && /etc/init.d/networking start

[ ok ] Deconfiguring network interfaces...done.
[....] Configuring network interfaces...
Waiting for br0 to get ready (MAXWAIT is 32 seconds).
done.
root@dlp:~#
br0       Link encap:Ethernet  HWaddr 00:0c:29:48:32:ff
          inet addr:10.0.0.30  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2126 (2.0 KiB)  TX bytes:3318 (3.2 KiB)

eth0      Link encap:Ethernet  HWaddr 00:0c:29:48:32:ff
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44739 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24159 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:51760065 (49.3 MiB)  TX bytes:2182850 (2.0 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:321 errors:0 dropped:0 overruns:0 frame:0
          TX packets:321 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:36633 (35.7 KiB)  TX bytes:36633 (35.7 KiB)
Matched Content