Changes between Version 4 and Version 5 of KVM-OpenNebula
- Timestamp:
- Oct 15, 2010, 4:02:56 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
KVM-OpenNebula
v4 v5 199 199 = 【Step 9: 使用 ONE 來開啟 VM】 = 200 200 * 在 pcX 上執行 201 * 編輯 vm01的設定檔 (__X 和 Y 請自行修改成自己的電腦名稱__)201 * 編輯 xp 的設定檔 (__X 和 Y 請自行修改成自己的電腦名稱__) 202 202 {{{ 203 203 # cd /home/domains 204 # gedit vm01.one204 # gedit xp.one 205 205 }}} 206 206 {{{ 207 207 #!sh 208 NAME = vm01 209 210 MEMORY = 128 211 OS = [ kernel = /boot/vmlinuz-2.6.26-2-xen-amd64, 212 initrd = /boot/initrd.img-2.6.26-2-xen-amd64, 213 root = sda2] 214 DISK = [ source = /home/domains/vm01/disk.img,208 NAME = xp 209 CPU = 1 210 MEMORY = 1024 211 212 OS = [ boot = hd ] 213 214 DISK = [ source = /var/lib/libvirt/images/xp.img, 215 215 clone = no, 216 target = sda2, 217 readonly = no] 218 DISK = [ type = swap, 219 size = 128, 220 target = "sda1", 221 readonly = "no" ] 222 NIC=[IP="192.168.1.X", MAC="00:16:00:00:00:XX"] 223 }}} 224 * 使用 ONE 來開啟 vm01 225 {{{ 226 # onevm create vm01.one ; onevm deploy vm01 pcXXX 216 target = hda, 217 readonly = no ] 218 219 GRAPHICS = [ type ="sdl", 220 listen ="127.0.0.1", 221 port = "5901" ] 222 }}} 223 * 使用 ONE 來開啟虛擬機器 xp 224 {{{ 225 # onevm create xp.one ; onevm deploy xp pcX 227 226 228 227 # onevm list 229 228 ID NAME STAT CPU MEM HOSTNAME TIME 230 1 vm01 runn 0 131072 pcXXX 00 00:04:21231 232 # onevm show vm01229 1 xp runn 0 131072 pcX 00 00:04:21 230 231 # onevm show xp 233 232 }}} 234 233 * onevm list 的資訊