After we have installed XenServer there is a time to spin up an VM to test. Below are is a litle script that create a VM (code is based on: http://wiki.xen.org/wiki/Installing_Linux_on_Kronos ).
This create and starts the VM. You need to connect over the console port and follow the installer questions. We don't need anything media or ISO files. The installer will automatically download all necessary files.
Once your VM is created you can shutdown it, export it to XVA image. Later on we can restore the VM by simply importing it back. We can use the XVA file as well to create further more VMs for testing.
Docs on Citrix site:
XenServer 6.2.0 Technical FAQ
XenServer 6.2.0 Release Notes
XenServer Product Documentation