close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Feb 25, 2009, 2:17:58 PM (17 years ago)
- Author:
-
wade
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v12
|
v13
|
|
| 23 | 23 | |
| 24 | 24 | == 【2.check 設定並檢查安裝結果】 == |
| 25 | | |
| 26 | | 2.1 使用 unmae 指令來查詢 xen system。 |
| | 25 | 2.1 使用 unmae 指令來查詢 xen system。 |
| 27 | 26 | {{{ |
| 28 | 27 | $ uname -a |
| 29 | 28 | }}} |
| 30 | 29 | [[Image(check-01.png)]] |
| 31 | | 2.2 設定 Xen 環境。 |
| | 30 | 2.2 設定 Xen 環境。 |
| 32 | 31 | 設定 Xen configFile。 |
| 33 | 32 | {{{ |
| … |
… |
|
| 37 | 36 | }}} |
| 38 | 37 | 更多的有關於 xen 的設定可參考 xmdomain.cfg(5) manpage。 |
| 39 | | 2.3 重新啟動 xend。 |
| | 38 | 2.3 設定 Xen-tools 環境。 |
| | 39 | {{{ |
| | 40 | $ sudo vim /etc/xen-tools/xen-tools.conf |
| | 41 | .... |
| | 42 | # 設定 domU image file 存放位置 |
| | 43 | dir = /home/xen |
| | 44 | .... |
| | 45 | # 設定網路 |
| | 46 | gateway = 192.168.1.1 |
| | 47 | netmask = 255.255.255.0 |
| | 48 | broadcast = 192.168.1.255 |
| | 49 | .... |
| | 50 | # 設定 mirror 位址 |
| | 51 | mirror = http://free.nchc.org.tw/debian |
| | 52 | |
| | 53 | }}} |
| | 54 | 更多的有關於 xen-tools.conf 的設定可參考 http://xen-tools.org/software/xen-tools/ |
| | 55 | 2.4 重新啟動 xend。 |
| 40 | 56 | {{{ |
| 41 | 57 | $ sudo /etc/init.d/xend restart |
| 42 | 58 | }}} |
| 43 | 59 | [[Image(check-02.png)]] |
| 44 | | 2.4 使用 Xen management user interface 簡稱 xm ,來觀察正在運作的 dormains 。 |
| | 60 | 2.5 使用 Xen management user interface 簡稱 xm ,來觀察正在運作的 dormains 。 |
| 45 | 61 | {{{ |
| 46 | 62 | $ sudo xm list |
| … |
… |
|
| 48 | 64 | [[Image(check-03.png)]] |
| 49 | 65 | 其中 dom0 就是 host OS。 |
| | 66 | |
| | 67 | |
| 50 | 68 | == 【3.create 創造 domU image】 == |
| 51 | | 3.1 設定 xen-create-image 的參數 |
| 52 | | {{{ |
| 53 | | $ sudo vim /etc/xen-tools/xen-tools.conf |
| 54 | | kernel = /boot/vmlinuz-`uname -r` |
| 55 | | initrd = /boot/initrd.img-`uname -r` |
| 56 | | 在這邊我們使用本機的 kernel 跟 module 做為 domU 開機的 kernel 跟 module。 |
| 57 | | }}} |
| 58 | | 3.1 建立 domU image。 |
| | 69 | |
| | 70 | 3.2 建立 domU image。 |
| 59 | 71 | {{{ |
| 60 | 72 | sudo xen-create-image xen-create-image --hostname debian-01 --dir=/home/xen --ip=192.168.0.10 --gateway=192.168.0.254 --netmask=255.255.255.0 |
| … |
… |
|
| 62 | 74 | [[Image(create-01.png)]] |
| 63 | 75 | xen-tools 的 log 檔位置:/var/log/xen-tools/debian-01.log |
| | 76 | |
| | 77 | |
| 64 | 78 | == 【Reference 參考】 == |
| | 79 | * http://xen-tools.org/software/xen-tools/ |
| 65 | 80 | * [wiki:Xen] |