Xen本体はマシン環境に大きく依存しますが、Xenの管理/支援ツールは実機で使用する前に仮想マシン環境で事前に試しておきたいというニーズもあります。
ここではSLES 10 SP1(SUSE Linux Enterprise Server 10 SP1)に付属のXen 3.0.4対応仮想マシン管理機能をVMware環境上で実行する手順を紹介します。
今回使用したPCのハードウェア/ソフトウェア構成は以下の通りです。
・CPU:Core 2 Quad Q6600
・チップセット:Intel P35
・メモリ:8GB
・VGAカード:nVIDIA GeForce 8800GT(VRAM 512MB)
・HDD:S-ATA 250GB(但し、仮想ディスクファイルは1TBのS-ATA HDDに格納)
・LANカード:Intel PRO/100 S Desktop Adapter
・ホストOS:Windows Vista Ultimate(32ビット版)
・VMware:VMware Server 1.0.3
・VMware上のOS:SLES 10 SP1
・VMware上のSLES 10 SP1のDomainUで動作させるOS:SLED 10 SP1(SUSE Linux Enterprise Desktop 10 SP1)
1.ホストマシン(Windows Vista)へのVMware Serverの導入
ホストマシン(Windows Vista)へのVMware Serverの導入手順はここでは省略します。
2.VMware環境へのSLES 10 SP1のインストール
ostype="sled10" name="sled10" memory=512 vcpus=1 uuid="b7933961-46a9-1525-e722-6ae8ae0ee861" on_crash="destroy" on_poweroff="destroy" on_reboot="restart" localtime=0 builder="linux" bootloader="/usr/lib/xen/boot/domUloader.py" bootargs="--entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen" extra="TERM=xterm " disk=[ 'file:/var/lib/xen/images/sled10/disk0,xvda,w', 'phy:/dev/cdrom,xvdb,r', ] vif=[ 'mac=00:16:3e:50:60:ec', ] vfb=["type=vnc,vncunused=1"] |
# default: off
# description: This serves out a VNC connection which starts at a KDM login \
# prompt. This VNC connection has a resolution of 1024x768, 16bit depth.
service vnc1
{
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/Xvnc
server_args = :42 -inetd -once -query localhost -geometry 1024x768 -depth 16
type = UNLISTED
port = 5901
}
# default: off
# description: This serves out a VNC connection which starts at a KDM login \
# prompt. This VNC connection has a resolution of 1280x1024, 16bit depth.
service vnc2
{
type = UNLISTED
port = 5902
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/Xvnc
server_args = :42 -inetd -once -query localhost -geometry 1280x1024 -depth 16
disable = yes
}
# default: off
# description: This serves out a VNC connection which starts at a KDM login \
# prompt. This VNC connection has a resolution of 1600x1200, 16bit depth.
service vnc3
{
type = UNLISTED
port = 5903
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/Xvnc
server_args = :42 -inetd -once -query localhost -geometry 1600x1200 -depth 16
disable = yes
}
# default: off
# description: This serves out the vncviewer Java applet for the VNC \
# server running on port 5901, (vnc port 1).
service vnchttpd1
{
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/vnc_inetd_httpd
server_args = 1024 768 5901
type = UNLISTED
port = 5801
}
# default: off
# description: This serves out the vncviewer Java applet for the VNC \
# server running on port 5902, (vnc port 2).
service vnchttpd2
{
type = UNLISTED
port = 5802
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/vnc_inetd_httpd
server_args = 1280 1024 5902
disable = yes
}
# default: off
# description: This serves out the vncviewer Java applet for the VNC \
# server running on port 5902, (vnc port 3).
service vnchttpd3
{
type = UNLISTED
port = 5803
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/vnc_inetd_httpd
server_args = 1600 1200 5903
disable = yes
}
Name ID Mem VCPUs State Time(s) Domain-0 0 1894 1 r----- 139.6 sled10 512 1 0.0 |
Name ID Mem VCPUs State Time(s) Domain-0 0 1507 1 r----- 172.2 sled10 1 512 1 ------ 8.7 |