close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_delta.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Oct 21, 2009, 6:15:28 PM (16 years ago)
- Author:
-
rock
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v42
|
v43
|
|
7 | 7 | * 操作說明: |
8 | 8 | * 桌面的 '''Web Broswer''' 為瀏覽器,'''終端機''' 用來輸入課程中的指令 |
9 | | * 黑底白字部份為'''指令''' ($ 為命令提示字元, $ 之後才是指令) |
| 9 | * 黑底白字部份為'''指令''' ($ 為命令提示字元, $ 之後才是指令) (# 為root 的命令提示字元) |
10 | 10 | {{{ |
11 | 11 | $ vim /etc/hosts |
12 | 12 | $ sudo vim /etc/hosts |
13 | 13 | $ sudo gedit /etc/hosts |
| 14 | |
| 15 | $ su root |
| 16 | # aptitude update |
14 | 17 | }}} |
15 | 18 | * 第1個指令為 使用 '''vim''' 指令來編輯 hosts 這個文件 |
16 | 19 | * 第2個指令的 '''sudo''' 為轉換成 root 管理者身份來編輯此文件 (因 hosts 文件的權限只有 root 能修改) |
17 | 20 | * 第3個指令的 '''gedit''' 給不習慣用 vim 的學員使用 (類似 windows 的 notepad) |
| 21 | * 第4個指令的 '''su root''' 切換 root 身份 |
| 22 | * 第5個指令的 為在 root 身份下執行 aptitude update |
18 | 23 | * 白底黑字為'''文件內容''' |
19 | 24 | {{{ |
… |
… |
|
50 | 55 | ---- |
51 | 56 | = 【Step 1: 安裝 Xen 和 Xen-patched Kernel】 = |
52 | | * Ubuntu 提供一個簡單的整合套件,只需用 '''aptitude install''' 指令安裝 __ ubuntu-xen-desktop 套件__,即可自動安裝好 Xen-3.3 Hypervisior |
| 57 | * Ubuntu 提供一個簡單的整合套件,只需用 '''aptitude install''' 指令安裝 __ubuntu-xen-desktop 套件__,即可自動安裝好 Xen-3.3 Hypervisior |
53 | 58 | {{{ |
54 | 59 | $ sudo aptitude update |
55 | 60 | $ sudo aptitude -y install ubuntu-xen-desktop gcc-4.1 python-xml |
56 | 61 | }}} |
57 | | * 安裝 Xen-patched Kernel,再這邊我們使用 Debian 已打包好的 Kernel 2.6.26 |
| 62 | * 安裝 Xen-patched Kernel,再這邊我們使用 Debian 已打包好的 Kernel 2.6.26-xen-amd64 |
58 | 63 | {{{ |
59 | 64 | $ cd |
… |
… |
|
84 | 89 | * 檢查 Grub 開機選單 |
85 | 90 | {{{ |
86 | | ( $ vim /boot/grub/menu.lst ) |
87 | 91 | $ gedit /boot/grub/menu.lst |
88 | 92 | }}} |
… |
… |
|
94 | 98 | ---- |
95 | 99 | = 【Step 3: 檢查 Xen 是否正常運作】 = |
96 | | * Debian 預設開機變會自動啟動 xend,我們使用 '''ps -aux | grep xend''' 來檢查 xend 是否正常運作 |
| 100 | * Ubuntu 預設開機變會自動啟動 xend,我們使用 '''ps -aux | grep xend''' 來檢查 xend 是否正常運作 |
97 | 101 | {{{ |
98 | 102 | $ ps -aux | grep xend |
… |
… |
|
157 | 161 | {{{ |
158 | 162 | $ cd /etc/xen-tools |
159 | | ( $ sudo vim /etc/xen-tools/xen-tools.conf ) |
160 | 163 | $ sudo gedit /etc/xen-tools/xen-tools.conf |
161 | 164 | }}} |
… |
… |
|
185 | 188 | * 查看 vm01 的設定檔 |
186 | 189 | {{{ |
187 | | ( $ sudo vim /etc/xen/vm01.cfg ) |
188 | 190 | $ sudo gedit /etc/xen/vm01.cfg |
189 | 191 | }}} |