| | 22 | === Instantiate VM ==== |
| | 23 | |
| | 24 | |
| | 25 | === Copy from Template ==== |
| | 26 | We normally copy an instance from a predefined template rather than starting with a fresh OS build. |
| | 27 | * consider changing this with scripts similar to ISO/VM builds? |
| | 28 | |
| | 29 | 1. Turn off template VM instance if on |
| | 30 | 2. SSH into the host machine |
| | 31 | If using Host1: |
| | 32 | 3. {{{cd /spare/images/images}}} |
| | 33 | 4. {{{cp 106/vm-106-disk-1.raw 1xx/vm-1xx-disk-1.raw}}} |
| | 34 | If using Host2: |
| | 35 | 3. |
| | 36 | {{{ |
| | 37 | zcat /spare/template/vm_release.gz | dd of=/dev/data/vm-1xx-disk-1 bs=8M |
| | 38 | dd if=/dev/data/vm-106-disk-1 of=/dev/data/vm-1xx-disk-1 bs=8M |
| | 39 | }}} |
| | 40 | 4. That'll take a while. You can get it to notify progress by doing a kill -USR1 {process id of the dd} |
| | 41 | |
| | 42 | 5. start your VM after the copy is complete |
| | 43 | 6. Open VNC Console |
| | 44 | 7. read /home/INSTALL in the vm |
| | 45 | 8. Set the IP (using the spreadsheet) |