Ubuntu 10.04
Sponsored Link

KVM インストール2010/07/19

  KVM ( Kernel-based Virtual Machine ) +QEMU での仮想化です。 搭載しているCPUが仮想化機構( Intel VT 等 )を備えている必要があります。

[1] まずは必要なもののインストールです。
root@ubuntu:~#
aptitude -y install kvm qemu-kvm libvirt-bin python-virtinst bridge-utils
[2] ブリッジネットワークを構成しておきます。
root@ubuntu:~#
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
# 以下のように変更

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

# ブリッジインターフェース設定追記

iface br0 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
bridge_ports eth0
bridge_stp off
auto br0


root@ubuntu:~#
/etc/init.d/networking restart

root@ubuntu:~#
br0
Link encap:Ethernet HWaddr 00:22:68:3d:82:88

inet addr:10.0.0.50 Bcast:10.0.0.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:35 errors:0 dropped:0 overruns:0 frame:0

TX packets:30 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:2462 (2.4 KB) TX bytes:2992 (2.9 KB)


eth0
Link encap:Ethernet HWaddr 00:22:68:3d:82:88

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:937 errors:0 dropped:0 overruns:0 frame:0

TX packets:786 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:91362 (91.3 KB) TX bytes:119912 (119.9 KB)

Interrupt:27 Base address:0x8000


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:934 errors:0 dropped:0 overruns:0 frame:0

TX packets:934 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:85109 (85.1 KB) TX bytes:85109 (85.1 KB)


virbr0
Link encap:Ethernet HWaddr 72:81:5f:fb:4c:e6

inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

関連コンテンツ