12 | | 2. VM 需要 Free CPU,讓 one01 跑 make kernel (one 則不執行動作),測試是否會 deploy 在 one 上 |
| 12 | {{{ |
| 13 | $ onevm create vm01.one |
| 14 | NAME = vm01 |
| 15 | CPU = 1 |
| 16 | MEMORY = 156 |
| 17 | OS = [ kernel = /boot/vmlinuz-2.6.22.9, |
| 18 | initrd = /boot/initrd.img-2.6.22.9, |
| 19 | root = sda2, |
| 20 | kernel_cmd = "ro xencons=tty console=tty1" ] |
| 21 | DISK = [ source = /home/domains/vm01/disk.img, |
| 22 | clone = no, |
| 23 | target = sda2, |
| 24 | readonly = no] |
| 25 | DISK = [ type = swap, |
| 26 | size = 512, |
| 27 | target = "sda1", |
| 28 | readonly = "no" ] |
| 29 | NIC = [NETWORK="Public",IP="140.110.138.160",MAC="00:03:8c:6e:8a:a0"] |
| 30 | REQUIREMENTS= "FREECPU > 200" |
| 31 | RANK = FREECPU |
| 32 | |
| 33 | $ onevm -v create vm01.one |
| 34 | ID: 25 |
| 35 | |
| 36 | $ tail /home/one/var/sched.log |
| 37 | Fri May 1 12:03:09 2009 [SCHED][I]: Dispatching virtual machine 24 to HID: 0 |
| 38 | Fri May 1 12:03:39 2009 [HOST][D]: Discovered Hosts (enabled): 0 1 |
| 39 | Fri May 1 12:03:39 2009 [VM][D]: Pending virtual machines : 25 |
| 40 | Fri May 1 12:03:39 2009 [SCHED][I]: Select hosts |
| 41 | PRI HID HSID |
| 42 | ------------------- |
| 43 | Virtual Machine: 25 |
| 44 | 1 0 |
| 45 | }}} |