====== xen ====== ===== インストール ===== ===== コマンド ===== ==== ホストOS上からゲストOSに切替える ====  xm console Domain-U名  ゲストOSからホストOSに戻るにはCtrlキー+]キーを押します。 ==== インストールされているゲストOSを確認する ====  xm list ===== ゲストOSインストール ===== * ホストOS:CentOS5.2 / ゲストOS:CentOS5.2 # virt-install --nographics  仮想マシンの名前は何ですか? CentOS5 どれだけの RAM を割り当てますか (メガバイト単位で)? 256 What would you like to use as the disk (file path)? /var/lib/xen/images/CentOS5.img インストール場所は何ですか? http://ftp.riken.jp/Linux/centos/5/os/i386/ 仮想マシンの名前:xenで管理する為の名前 \\ 割り当てRAM:利用メモリー数。CentOS5.2では最低256Mは必要となる \\ file path:イメージファイルの保存先。/var/lib/xen/images/以外だとエラーになるかも \\ インストール場所:インストールイメージを指定。\\ \\ \\ ■2009年4月7日追加\\ xenも徐々にバージョンアップしてるので、久しぶりに作業すると思わぬ動きをしてびっくりする。 ドメインを作成中... 0 B 00:00 ドメインに使用できるコンソールがありません ドメインのインストールは続いています。インストール処理を完結 させるためにコンソールに再接続することができます。 なんてメッセージが表示されて終了したように見えても慌てない!(本人はちょっと慌ててvncでつなごうとしたけど(汗 # xenconsoled # xm console 仮想マシン名を入力 ほら!見慣れた画面のテキスト表示になったしょ\\ 後はいつもの通りインストールしていけばオッケーかな(^^) Welcome to CentOS +---------+ Choose a Language +---------+ | | | What language would you like to use | | during the installation process? | | | | Catalan ^ | | Chinese(Simplified) : | | Chinese(Traditional) # | | Croatian : | | Czech : | | Danish : | | Dutch : | | English v | | | | +----+ | | | OK | | | +----+ | | | | | +---------------------------------------+ / between elements | selects | next screen 何を選んでも英語になるのでこのままで『OK』を選んで次に\\ Welcome to CentOS +----------------+ Configure TCP/IP +----------------+ | | | [*] Enable IPv4 support | | ( ) Dynamic IP configuration (DHCP) | | (*) Manual configuration | | | | [ ] Enable IPv6 support | | (*) Automatic neighbor discovery (RFC 2461) | | ( ) Dynamic IP configuration (DHCP) | | ( ) Manual configuration | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +----------------------------------------------------+ / between elements | selects | next screen IPv4を固定IP設定にしてIPv6は利用しない設定としています。\\ Welcome to CentOS +--------------+ Manual TCP/IP Configuration +---------------+ | | | Enter the IPv4 and/or the IPv6 address and prefix | | (address / prefix). For IPv4, the dotted-quad netmask | | or the CIDR-style prefix are acceptable. The gateway and | | name server fields must be valid IPv4 or IPv6 addresses. | | | | IPv4 address: xxx.yyy.zzz.aaa_ / 255.255.255.0___ | | Gateway: xxx.yyy.zzz.b____________________________ | | Name Server: xxx.yyy.zzz.cc___________________________ | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +------------------------------------------------------------+ / between elements | selects | next screen IPの設定をおこないます。\\ Welcome to CentOS +------------------+ CentOS +-------------------+ | | | Welcome to CentOS! | | | | | | +----+ | | | OK | | | +----+ | | | | | +-----------------------------------------------+ / between elements | selects | next screen Welcome to CentOS +----------------------+ Searching +----------------------+ | | | Searching for CentOS installations... | | | | 20% | | | +---------------------------------------------------------+ / between elements | selects | next screen Welcome to CentOS +-------------------------+ Partitioning Type +-------------------------+ | | | Installation requires partitioning of your hard drive. The | | default layout is reasonable for most users. You can either | | choose to use this or create your own. | | | | Remove all partitions on selected drives and create default layout. | | Remove linux partitions on selected drives and create default layout. | | Use free space on selected drives and create default layout. | | Create custom layout. | | | | Which drive(s) do you want to use for this installation? | | [*] xvda 30718 MB (Xen Virtual Block Device) ^ | | # | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +-----------------------------------------------------------------------+ ,<+>,<-> selection | Add drive | next screen 『Remove all partitions on selected drives and create default layout.』を選択してOKで次に\\ Welcome to CentOS +----------------+ Warning +-----------------+ | | | You have chosen to remove all partitions | | (ALL DATA) on the following drives: | | | | /dev/xvda | | | | Are you sure you want to do this? | | | | +----+ +-----+ | | | No | | Yes | | | +----+ +-----+ | | | | | +--------------------------------------------+ / between elements | selects | next screen /dev/xvdaを消して良いかの確認なのでYesを選択\\ Welcome to CentOS +-------+ Review Partition Layout +-------+ | | | Review and modify partitioning layout? | | | | +-----+ +----+ | | | Yes | | No | | | +-----+ +----+ | | | | | +-----------------------------------------+ / between elements | selects | next screen レイアウト確認をするかって事なのでNoを選択\\ Welcome to CentOS +----+ Configure Network Interface +-----+ | | | Would you like to configure the eth0 | | network interface in your system? | | | | +-----+ +----+ | | | Yes | | No | | | +-----+ +----+ | | | | | +----------------------------------------+ / between elements | selects | next screen eth0の設定をするか?って確認の為Yesを選択してください。\\ Welcome to CentOS ++ Network Configuration for eth0 ++ | | | Xen Virtual Ethernet | | 00:16:3E:75:30:C2 | | | | [*] Activate on boot | | [*] Enable IPv4 support | | [ ] Enable IPv6 support | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +----------------------------------+ / between elements | selects | next screen とりあえず、そのままOKで次に\\ Welcome to CentOS +-----+ IPv4 Configuration for eth0 +-----+ | | | Xen Virtual Ethernet | | 00:16:3E:75:30:C2 | | | | ( ) Dynamic IP configuration (DHCP) | | (*) Manual address configuration | | | | IP Address Prefix (Netmask) | | xxx.yyy.zzz.aaa_ / 255.255.255.0___ | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +-----------------------------------------+ / between elements | selects | next screen IPアドレスを設定。先に設定してあるので確認だけしてOKで次に\\ Welcome to CentOS +------------+ Miscellaneous Network Settings +------------+ | | | Gateway: xxx.yyy.zzz.b____________________________ | | Primary DNS: xxx.yyy.zzz.cc___________________________ | | Secondary DNS: xxx.yyy.zzz.dd___________________________ | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +----------------------------------------------------------+ / between elements | selects | next screen セカンダリーDNSがあれば設定してOKで次に\\ Welcome to CentOS +--------------------+ Hostname Configuration +--------------------+ | | | If your system is part of a larger network where hostnames are | | assigned by DHCP, select automatically via DHCP. Otherwise, | | select manually and enter a hostname for your system. If you | | do not, your system will be known as 'localhost.' | | | | ( ) automatically via DHCP | | (*) manually hoge.mediakisslab.net___ | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +------------------------------------------------------------------+ / between elements | selects | next screen ホスト名が逆引きが設定されているので変更があれば直してOKで次に\\ Welcome to CentOS +-------+ Time Zone Selection +-------+ | | | What time zone are you located in? | | | | [ ] System clock uses UTC | | | | Asia/Tbilisi ^ | | Asia/Tehran : | | Asia/Thimphu # | | Asia/Tokyo : | | Asia/Ulaanbaatar v | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +-------------------------------------+ / between elements | selects | next screen System clock uses UTCのチェックは外してAsia/Tokyoを選択しOKで次に\\ Welcome to CentOS +--------------+ Root Password +---------------+ | | | Pick a root password. You must type it | | twice to ensure you know what it is and | | didn't make a mistake in typing. Remember | | that the root password is a critical part | | of system security! | | | | Password: ********________________ | | Password (confirm): ********________________ | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +----------------------------------------------+ / between elements | selects | next screen rootのパスワードを設定します\\ Welcome to CentOS +----------------+ Installation Progress +----------------+ | | | Retrieving installation information... | | | | 50% | | | +---------------------------------------------------------+ / between elements | selects | next screen Welcome to CentOS +----------------------+ Package selection +----------------------+ | | | The default installation of CentOS includes a set of software | | applicable for general internet usage. What additional tasks | | would you like your system to include support for? | | | | [ ] Desktop - Gnome ^ | | [ ] Desktop - KDE # | | [ ] Server : | | [ ] Server - GUI v | | | | [*] Customize software selection | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +-----------------------------------------------------------------+ / between elements | selects | next screen インストールパッケージを選択します。\\ Desktop - Gnomeのチェックが入っているので外し、Customize software selectionにチェックを入れてOKで次に\\ Welcome to CentOS +----------+ Package Group Selection +----------+ | | | Please select the package groups you would | | like to have installed. | | | | [ ] Administration Tools ^ | | [ ] Authoring and Publishing # | | [*] Base : | | [ ] Cluster Storage : | | [ ] Clustering : | | [ ] DNS Name Server v | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +-----------------------------------------------+ ,<+>,<-> selection | Group Details | next screen 以下のパッケージのみ選択してOKで次に\\ Base \\ Development Libraries\\ Development Tools\\ Legacy Software Development\\ Welcome to CentOS +----------------------+ Dependency Check +-----------------------+ | | | Checking dependencies in packages selected for installation... | | | | 0% | | | +-----------------------------------------------------------------+ ,<+>,<-> selection | Group Details | next screen Welcome to CentOS +---------+ Installation to begin +----------+ | | | A complete log of your installation will | | be in /root/install.log after rebooting | | your system. You may want to keep this | | file for later reference. | | | | +----+ +------+ | | | OK | | Back | | | +----+ +------+ | | | | | +--------------------------------------------+ ,<+>,<-> selection | Group Details | next screen Welcome to CentOS +---------------------+ Formatting +----------------------+ | | | Formatting / file system... | | | | 9% | | | +---------------------------------------------------------+ ,<+>,<-> selection | Group Details | next screen Welcome to CentOS +------------------+ Package Installation +------------------+ | | | Name : glibc-common-2.5-24-i386 | | Size : 65081k | | Summary: Common binaries and locale data for glibc | | | | | | Status: | | | | 61% | | | | Packages Bytes Time | | Total : 523 1192M 0:16:09 | | Completed: 14 20M 0:00:16 | | Remaining: 509 1172M 0:15:52 | | | | 1% | | | +------------------------------------------------------------+ ,<+>,<-> selection | Group Details | next screen インストール中\\ Welcome to CentOS +----------------------+ Complete +-----------------------+ | | | Congratulations, your CentOS installation is complete. | | | | Remove any media used during the installation process | | and press to reboot your system. | | | | | | +--------+ | | | Reboot | | | +--------+ | | | | | +---------------------------------------------------------+ to reboot インストール完了。EnterをクリックしてゲストOSをrebootします\\ ===== 管理ツール =====