Cheng Sun
2e1f94e831
Rename instance_name to vm_name
...
Fixed example
2014-12-19 12:50:22 +00:00
Cheng Sun
987a5ac55e
Rename root_disk_size to disk_size
...
CreateVdi now takes an integer size
Note that disk_size is now in MB; root_disk_size was in bytes
Fixed example
2014-12-19 12:50:22 +00:00
Cheng Sun
e308c0759f
VDI upload, floppy and tools support
...
This commit add new VDI steps named step_{attach,detach,find,upload}_vdi
- attach/detach are self-explanatory; can specify CD or Floppy
- find finds a VDI by name-label and stores the uuid
- upload uploads a VDI from a local disk image and stores the uuid
In order to demonstrate the new VDI code, this commit trivially adds:
- support for uploading ISOs again (dependent on unmerged XAPI patch)
- initial floppy upload/attach support (dependent on currently-broken
XAPI patch)
- initial XenServer Tools support
2014-12-19 12:46:36 +00:00
Cheng Sun
5cb0a0955b
Add Floppy ConnectVdi type
2014-12-18 16:08:52 +00:00
Cheng Sun
31acbe6508
Fix error message typo
2014-12-17 18:48:19 +00:00
Cheng Sun
f101aa8511
step_start_vm_paused: cleanup forces VM shutdown
...
This allows steps between create_instance and start_vm_paused to assume
that the VM is shut down when cleaning up
2014-12-17 18:48:19 +00:00
Cheng Sun
2a4ce52eaa
Abstract out GetSR
2014-12-15 15:02:42 +00:00
Cheng Sun
dfa9d63097
Always fetch a new VM instance from UUID for consistency
2014-12-15 12:17:12 +00:00
Cheng Sun
602255e9c1
Add keep_instance parameter
...
Determines when to keep the VM instance and when to clean it up
Can be one of "always", "never" (default), "on_success"
2014-12-10 12:32:41 +00:00
Cheng Sun
1450fd0568
Clean up VM instance and root VDI
2014-12-09 16:40:32 +00:00
Cheng Sun
8a41cc693a
Add more error handling
2014-12-09 14:02:48 +00:00
Cheng Sun
c88168f4ba
Replace all Fatal calls with Error calls
2014-12-09 11:48:07 +00:00
Cheng Sun
2dbe047d45
Cosmetic: go fmt
2014-12-08 15:36:38 +00:00
Rob Dobson
1daab4ef1a
Adding static memory config to the template.
...
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2014-11-21 13:48:57 +00:00
Rob Dobson
74cfea407d
Adding defaults for Clone template, Network and Storage to avoid having to configure it in the packer file.
...
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2014-11-21 13:39:25 +00:00
Rob Dobson
f40ab554c0
Use the Host Internal Management interface to retrieve an instances IP as opposed to relying on the tools being installed.
...
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2014-11-18 18:18:39 +00:00
Rob Dobson
4d634aaf70
Initial plugin for building XenServer images using Packer.IO
...
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2014-11-10 18:16:02 +00:00