Install KVM2011/03/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 kvm qemu-kvm libvirt-bin virtinst bridge-utils
|
[2] | 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# 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 bridge_ports eth0 bridge_stp off auto br0 root@dlp:~# ifdown eth0 root@dlp:~# ifup br0 root@dlp:~# ifup eth0 root@dlp:~# br0 Link encap:Ethernet HWaddr 00:1a:4d:45:9f:57 inet addr:10.0.0.30 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::21a:4dff:fe45:9f57/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:21 errors:0 dropped:0 overruns:0 frame:0 TX packets:21 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1512 (1.4 KiB) TX bytes:1938 (1.8 KiB) eth0 Link encap:Ethernet HWaddr 00:1a:4d:45:9f:57 inet6 addr: fe80::21a:4dff:fe45:9f57/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:55679 errors:0 dropped:0 overruns:0 frame:0 TX packets:29187 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:69454033 (66.2 MiB) TX bytes:2277364 (2.1 MiB) Interrupt:27 Base address:0x4000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:249 errors:0 dropped:0 overruns:0 frame:0 TX packets:249 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:27156 (26.5 KiB) TX bytes:27156 (26.5 KiB) |
Sponsored Link |
|