quickly make xva file from a live running image.

#take a snapshot xe vm-snapshot new-name-label= vm= #convert back to a vm xe template-param-set is-a-template=false uuid= #export xe vm-export vm=(newname) filename= #cleanup-snapshot xe vm-uninstall uuid= from: http://serverfault.com/questions/489184/export-xenserver-snapshot-as-file-via-console

xenserver 7.0 based on centos 7.2

https://docs.citrix.com/content/dam/docs/en-us/xenserver/xenserver-7-0/downloads/xenserver-7-0-installation-guide.pdf states: The Control Domain: Also known as ‘Domain0’, or ‘dom0’, the Control Domain is a secure, privileged Linux VM (based on a CentOS 7.2 distribution) that runs the XenServer management toolstack. Besides providing XenServer management functions, the Control Domain also runs the driver stack that provides user created Virtual Read more

apply xen server patches in bulk

download a bunch of the buggers for file in XS*.zip;do foo=`basename -s .zip $file`; unzip $file; bar=`xe patch-upload file-name=${foo}.xsupdate`;xe patch-apply uuid=$bar host-uuid=YOUR_HOST_UUID;done you’ll probably want to add an rm of the zip file and an rm of the xsupdate file (exercise for the reader) This won’t work for XS70E002 and Read more

para – virtualize to install from iso

http://www.xenlens.com/boot-a-guest-vm-from-cd-or-dvd-in-xenserver/ copied for posterity In order to boot from cd or dvd you need to change the guest virtualization type from HVM (fully virtualized) to PV (paravirtualized). xe vm-param-set HVM-boot-policy=”BIOS order” uuid=[uuid of your vm] After you have booted from dvd, change back to fully virtualized mode: xe vm-param-set HVM-boot-policy=”” Read more

xcp add disk

xe sr-list #gives you a list of sr’s from which to pick a sr-uuid xe vdi-create sr-uuid= name-label= type=user virtual-size= #the above vdi-create outputs a vdi-uuid xe vm-list # gives you a list of vm’s from which to pick a vm-uuid xe vbd-create vm-uuid= vdi-uuid= bootable=false mode=RW type=Disk device= #pick Read more