#GUIなど不要!という硬派な方は、『DomU自動インストール編』へ。
CentOS 5.1では通常、virt-installコマンドからDomUをインストールする。これは通常、virt-manager(Gnomeの画面から、[アプリケーション]→[システムツール]→[Virtual Machine Manager])から起動されるが、コマンドラインからも実行可能。
また、今回は、DomUのイメージにLVMボリュームを指定する。
# lvcreate --name LogVolNode01 --size=4G /dev/VolGroupXX# クラスタを実行していないので、LVMが文句を言っているが、気にしない。
connect() failed on local socket: Connection refused
WARNING: Falling back to local file-based locking.
Volume Groups with the clustered attribute will be inaccessible.
Logical volume "LogVolNode01" created
# virt-install --name=node01 --ram=512 --file=/dev/VolGroupXX/LogVolNode01 --location=http://Repository.LocalDomain/centos/5/os/i386 --bridge=xenbr0 --vnc
Starting install...
Retrieving CentOS... 557 kB 00:00
Retrieving vmlinuz... 100% |=========================| 2.0 MB 00:00
Retrieving initrd.img... 100% |=========================| 5.0 MB 00:00
Creating domain... 0 B 00:01
VNC Viewer Free Edition 4.1.2 for X - built Mar 14 2007 22:51:02
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
この後、VNC画面が起動され、インストールが始まる。



















0 件のコメント:
コメントを投稿