Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
hypervisor:toolstack:domu [2014/06/04 18:34]
admin [Templated VM Specific Operations]
hypervisor:toolstack:domu [2014/06/05 10:47]
admin [Templated VM Specific Operations]
Line 254: Line 254:
 4 4
 > screen -S Wheezy > screen -S Wheezy
-> /​usr/​lib/​xen/​bin/​xenconsole 4+> /​usr/​lib/​xen-4.1/​bin/​xenconsole 4
 </​code>​ </​code>​
  
Line 261: Line 261:
 > xe vm-param-set uuid=... PV-bootloader=pygrub > xe vm-param-set uuid=... PV-bootloader=pygrub
 </​code>​ </​code>​
 +
 +=== Add Xen Tools ===
 +
 +At this point you might want to [[http://​wiki.strategicz.com/​vhyper/​doku.php?​id=hypervisor:​basestack:​domu&#​install_xen_tools|add the XenTools]] to your VM.
 +
 +----
 +===== Create Template and Appliance =====
 +----
 +Reference: [[http://​www.jansipke.nl/​creating-backups-of-running-vms-in-xenserver/​]]
 +
 +It seems that this operation can be performed even on a running VM.
 +
 +Pick target VM uuid:
 +<​code>​
 +> xe vm-list is-control-domain=false is-a-snapshot=false
 +</​code>​
 +
 +Create the snapshot:
 +<​code>​
 +> xe vm-snapshot uuid=<​vm-uuid>​ new-name-label=<​snapshotname>​
 +<​snapshot-uuid>​
 +</​code>​
 +
 +Transform the snapshot into a VM to be able to save it to a file:
 +<​code>​
 +> xe template-param-set is-a-template=false ha-always-run=false uuid=<​snapshot-uuid>​
 +> xe vm-export vm=<​snapshot-uuid>​ filename=<​filename>​.xva
 +Export succeeded
 +</​code>​
 +The export operation can take a while... Be patient until you see the "​Export succeeded"​ message.
 +
 +Finally let's get rid of the snapshot:
 +<​code>​
 +> xe vm-uninstall uuid=<​snapshot-uuid>​ force=true
 +</​code>​
 +
 ---- ----
 ===== Using Xen Orchestra ===== ===== Using Xen Orchestra =====