差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

linux:xen [2008/09/19 07:46]
miyako
linux:xen [2009/04/07 06:38] (現在)
miyako
ライン 3: ライン 3:
  
 ===== コマンド ===== ===== コマンド =====
-  * ホストOS上からゲストOSに切替える+==== ホストOS上からゲストOSに切替える ====
  xm console Domain-U名  xm console Domain-U名
  
  ゲストOSからホストOSに戻るにはCtrlキー+]キーを押します。  ゲストOSからホストOSに戻るにはCtrlキー+]キーを押します。
  
-  * インストールされているゲストOSを確認する+==== インストールされているゲストOSを確認する ====
  xm list  xm list
  
- CentOS5                                         255     1 -b----    830.1+===== ゲストOSインストール ===== 
 +  * ホストOS:CentOS5.2 / ゲストOS:CentOS5.2 
 +<code> 
 + # 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/ 
 +</code> 
 +仮想マシンの名前:xenで管理する為の名前 \\ 
 +割り当てRAM:利用メモリー数。CentOS5.2では最低256Mは必要となる \\ 
 +file path:イメージファイルの保存先。/var/lib/xen/images/以外だとエラーになるかも \\ 
 +インストール場所:インストールイメージを指定。\\ 
 +\\ 
 +\\ 
 +■2009年4月7日追加\\ 
 +xenも徐々にバージョンアップしてるので、久しぶりに作業すると思わぬ動きをしてびっくりする。 
 +<code> 
 +ドメインを作成中..                                       0 B 00:00  
 +ドメインに使用できるコンソールがありません
  
- Domain-0                                   0      128     1 r-----    672.2+ドメインのインストールは続いています。インストール処理を完結 
 +させるためにコンソールに再接続することができます。 
 +</code> 
 +なんてメッセージが表示されて終了したように見えても慌てない!(本人はちょっと慌ててvncでつなごうとしたけど(汗 
 +<code> 
 +# xenconsoled  
 +# xm console 仮想マシン名を入力 
 +</code> 
 +ほら!見慣れた画面のテキスト表示になったしょ\\ 
 +後はいつもの通りインストールしていけばオッケーかな(^^)
  
 +<code>
 +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 |                 |
 +                   |                +----+                 |
 +                   |                                       |
 +                   |                                       |
 +                   +---------------------------------------+
 +
 +  <Tab>/<Alt-Tab> between elements  | <Space> selects | <F12> next screen
 +</code>
 +何を選んでも英語になるのでこのままで『OK』を選んで次に\\
 +
 +<code>
 +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 |          |
 +             |          +----+                  +------+          |
 +             |                                                    |
 +             |                                                    |
 +             +----------------------------------------------------+
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements  | <Space> selects | <F12> next screen
 +</code>
 +IPv4を固定IP設定にしてIPv6は利用しない設定としています。\\
 +
 +<code>
 +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 |            |
 +         |            +----+                      +------+            |
 +         |                                                            |
 +         |                                                            |
 +         +------------------------------------------------------------+
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements  | <Space> selects | <F12> next screen
 +</code>
 +IPの設定をおこないます。\\
 +
 +<code>
 +Welcome to CentOS
 +
 +
 +
 +
 +
 +               +------------------+ CentOS +-------------------+
 +               |                                               |
 +               | Welcome to CentOS!                            |
 +               |                                               |
 +               |                                               |
 +               |                    +----+                     |
 +               |                    | OK |                     |
 +               |                    +----+                     |
 +               |                                               |
 +               |                                               |
 +               +-----------------------------------------------+
 +
 +
 +
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +
 +<code>
 +Welcome to CentOS
 +
 +
 +
 +
 +
 +
 +
 +          +----------------------+ Searching +----------------------+
 +          |                                                         |
 +          | Searching for CentOS installations...                   |
 +          |                                                         |
 +          |                           20%                           |
 +          |                                                         |
 +          +---------------------------------------------------------+
 +
 +
 +
 +
 +
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +
 +<code>
 +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 |                            |
 + |                          +----+   +------+                            |
 + |                                                                       |
 + |                                                                       |
 + +-----------------------------------------------------------------------+
 +
 +<Space>,<+>,<-> selection   |   <F2> Add drive   |   <F12> next screen
 +</code>
 +『Remove all partitions on selected drives and create default layout.』を選択してOKで次に\\
 +
 +<code>
 +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 |         |
 +                 |        +----+              +-----+         |
 +                 |                                            |
 +                 |                                            |
 +                 +--------------------------------------------+
 +
 +
 +
 +
 +   <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +/dev/xvdaを消して良いかの確認なのでYesを選択\\
 +
 +<code>
 +Welcome to CentOS
 +
 +
 +
 +
 +
 +
 +                  +-------+ Review Partition Layout +-------+
 +                  |                                         |
 +                  | Review and modify partitioning layout?  |
 +                  |                                         |
 +                  |       +-----+             +----+        |
 +                  |       | Yes |             | No |        |
 +                  |       +-----+             +----+        |
 +                  |                                         |
 +                  |                                         |
 +                  +-----------------------------------------+
 +
 +
 +
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +レイアウト確認をするかって事なのでNoを選択\\
 +
 +<code>
 +Welcome to CentOS
 +
 +
 +
 +
 +
 +                   +----+ Configure Network Interface +-----+
 +                   |                                        |
 +                   | Would you like to configure the eth0   |
 +                   | network interface in your system?      |
 +                   |                                        |
 +                   |       +-----+            +----+        |
 +                   |       | Yes |            | No |        |
 +                   |       +-----+            +----+        |
 +                   |                                        |
 +                   |                                        |
 +                   +----------------------------------------+
 +
 +
 +
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +eth0の設定をするか?って確認の為Yesを選択してください。\\
 +
 +<code>
 +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 |         |
 +                      |       +----+    +------+         |
 +                      |                                  |
 +                      |                                  |
 +                      +----------------------------------+
 +
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +とりあえず、そのままOKで次に\\
 +
 +<code>
 +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 |        |
 +                  |       +----+            +------+        |
 +                  |                                         |
 +                  |                                         |
 +                  +-----------------------------------------+
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +IPアドレスを設定。先に設定してあるので確認だけしてOKで次に\\
 +
 +<code>
 +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 |            |
 +          |           +----+                     +------+            |
 +          |                                                          |
 +          |                                                          |
 +          +----------------------------------------------------------+
 +
 +
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +セカンダリーDNSがあれば設定してOKで次に\\
 +
 +<code>
 +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 |              |
 +      |             +----+                         +------+              |
 +      |                                                                  |
 +      |                                                                  |
 +      +------------------------------------------------------------------+
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +ホスト名が逆引きが設定されているので変更があれば直してOKで次に\\
 +
 +<code>
 +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 |       |
 +                    |      +----+          +------+       |
 +                    |                                     |
 +                    |                                     |
 +                    +-------------------------------------+
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +System clock uses UTCのチェックは外してAsia/Tokyoを選択しOKで次に\\
 +
 +<code>
 +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 |         |
 +                |        +----+               +------+         |
 +                |                                              |
 +                |                                              |
 +                +----------------------------------------------+
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +rootのパスワードを設定します\\
 +
 +<code>
 +Welcome to CentOS
 +
 +
 +
 +
 +
 +
 +
 +          +----------------+ Installation Progress +----------------+
 +          |                                                         |
 +          | Retrieving installation information...                  |
 +          |                                                         |
 +          |                           50%                           |
 +          |                                                         |
 +          +---------------------------------------------------------+
 +
 +
 +
 +
 +
 +
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +
 +<code>
 +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 |              |
 +      |             +----+                        +------+              |
 +      |                                                                 |
 +      |                                                                 |
 +      +-----------------------------------------------------------------+
 +
 +
 +  <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
 +</code>
 +インストールパッケージを選択します。\\
 +Desktop - Gnomeのチェックが入っているので外し、Customize software selectionにチェックを入れてOKで次に\\
 +
 +<code>
 +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 |         |
 +               |        +----+                +------+         |
 +               |                                               |
 +               |                                               |
 +               +-----------------------------------------------+
 +
 +
 +<Space>,<+>,<-> selection   |   <F2> Group Details   |   <F12> next screen
 +</code>
 +以下のパッケージのみ選択してOKで次に\\
 +  Base \\
 +  Development Libraries\\
 +  Development Tools\\
 +  Legacy Software Development\\
 +
 +<code>
 +Welcome to CentOS
 +
 +
 +
 +
 +
 +
 +
 +      +----------------------+ Dependency Check +-----------------------+
 +      |                                                                 |
 +      | Checking dependencies in packages selected for installation...  |
 +      |                                                                 |
 +      |                                0%                               |
 +      |                                                                 |
 +      +-----------------------------------------------------------------+
 +
 +
 +
 +
 +
 +
 +
 +
 +<Space>,<+>,<-> selection   |   <F2> Group Details   |   <F12> next screen
 +</code>
 +
 +<code>
 +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 |         |
 +                 |       +----+              +------+         |
 +                 |                                            |
 +                 |                                            |
 +                 +--------------------------------------------+
 +
 +
 +
 +
 +
 +<Space>,<+>,<-> selection   |   <F2> Group Details   |   <F12> next screen
 +</code>
 +
 +<code>
 +Welcome to CentOS
 +
 +
 +
 +
 +
 +
 +
 +          +---------------------+ Formatting +----------------------+
 +          |                                                         |
 +          | Formatting / file system...                             |
 +          |                                                         |
 +          |                            9%                           |
 +          |                                                         |
 +          +---------------------------------------------------------+
 +
 +
 +
 +
 +
 +
 +
 +
 +<Space>,<+>,<-> selection   |   <F2> Group Details   |   <F12> next screen
 +</code>
 +
 +<code>
 +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%                             |
 +         |                                                            |
 +         +------------------------------------------------------------+
 +
 +
 +<Space>,<+>,<-> selection   |   <F2> Group Details   |   <F12> next screen
 +</code>
 +インストール中\\
 +
 +<code>
 +Welcome to CentOS
 +
 +
 +
 +
 +          +----------------------+ Complete +-----------------------+
 +          |                                                         |
 +          | Congratulations, your CentOS installation is complete.  |
 +          |                                                         |
 +          | Remove any media used during the installation process   |
 +          | and press <Enter> to reboot your system.                |
 +          |                                                         |
 +          |                                                         |
 +          |                       +--------+                        |
 +          |                       | Reboot |                        |
 +          |                       +--------+                        |
 +          |                                                         |
 +          |                                                         |
 +          +---------------------------------------------------------+
 +
 +
 +
 +
 +                               <Enter> to reboot
 +</code>
 +インストール完了。EnterをクリックしてゲストOSをrebootします\\
  
-===== ゲストOSインストール ===== 
 ===== 管理ツール ===== ===== 管理ツール =====
  
  
linux/xen.1221810415.txt.gz · 最終更新: 2008/09/19 07:46 by miyako
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0