| | 55 | == 3. Massively Deployment of Cluster == |
| | 56 | * Refer to https://trac.nchc.org.tw/grid/wiki/jazz/DRBL_Xen |
| | 57 | |
| | 58 | == 4. Using OpenNEbula to submit VM == |
| | 59 | * Create Image (We using xen-tools) |
| | 60 | {{{ |
| | 61 | $ sudo vim /etc/xen-tools |
| | 62 | $ sudo xen-create-image --hostname test1 --ip 140.110.X.X --acounts |
| | 63 | }}} |
| | 64 | * Configuration |
| | 65 | {{{ |
| | 66 | $ vim /home/images/domains/test1/test1.cfg |
| | 67 | NAME = test1 |
| | 68 | CPU = 4 |
| | 69 | MEMORY = 128 |
| | 70 | OS = [ |
| | 71 | kernel = "/boot/vmlinuz-2.6.26-1-xen-amd64", |
| | 72 | initrd = "/boot/initrd.img-2.26-1-xen-amd64", |
| | 73 | root = "sda1" ] |
| | 74 | DISK = [ |
| | 75 | source = "/home/images/domains/test1/disk.img", |
| | 76 | target = "sda1", |
| | 77 | readonly = "no" ] |
| | 78 | DISK = [ |
| | 79 | type = "swap", |
| | 80 | size = 1024, |
| | 81 | target = "sdb"] |
| | 82 | NIC = [ MAC = "00:11:22:33:44:55",bridge = "eth0" ] |
| | 83 | }}} |
| | 84 | * Submit |
| | 85 | {{{ |
| | 86 | $ sudo onevm submit test1.cfg |
| | 87 | $ sudo onevm list |
| | 88 | }}} |
| | 89 | |