The Blog


Export VM command line XenServer 6

Posted on

This tutorial walks you through how to export a VM via command line in XenServer6, this is helpful if you need to make a backup of a VM, or move to another pool. Let’s get started!

login, and su to root

from here we need to make a location to mount a NFS Share

mount the NFS share where you will export the VM to

from here issue the vm-list command

in this example, we are exporting the VM named “DNS3”

from the XenServer console, you should notice that the status has changed to “busy” or yellow

This will take some time, and it’s relative to your Storage, and Network. Usually the smaller the VMs, the better in this case.

you should see the following once completed:


You have successfully Exported your VM to .xva format.

You can additionally use this Script:

# Created By Andrew Zwieg 2/23/2014
# Version 2.1

# Prompt for Server Name
echo Enter Server Name as it appears in XenServer, and hit Enter

# export the VM to file
echo Enter the Location to Export VM to “ex: /mnt/Xen”
read MOUNT

# Export the VM to File
xe vm-export vm=$SERVERNAME filename=$MOUNT/$SERVERNAME.xva


That’s it!

Hosted Linux Servers at

Posted in Linux, XenServer Leave a comment

Citrix XenServer backup without downtime.

Posted on

I am working with Citrix XenServer from many years and managing all XenServers using XenCenter installed on a standalone windows machine. We regularly takes backup of VMs manually till today, I was taking backup after shutting down the VMs. Most of VM owner getting disappointed due to server down for a long time. While searching with the google I found a better way to back up VMs without shutdown them. It means we can take running vm backups and not downtime occurred.

Read More

Posted in Linux, Virtualization, XenServer 2 Comments

XenServer Limit with socket vs vCPU in windows

Posted on

The problem is that XenServer virtualises each core as a separate physical processor in its own socket. Windows Server 2008 and 2003 are limited to 4 sockets, so you can only see 4 of your 8 cores in the task manager.

If you look in the Device Manger you’ll see all 8 cores because Windows sees them all, but won’t let you use them.

If you look in the XenServer Host console in the Hardware section, it will report 8 physical CPUs too.

In XenCenter set the VCPUs for your VM to 2.

Then enter the attached code snipped into the XenServer Host console. To find the UUID for your VM, type:

xe vm-list

xe vm-param-set platform:cores-per-socket=4 uuid=xxxxxx

xe vm-param-set VCPUs-max=8 uuid=xxxxxxx

xe vm-param-set VCPUs-at-startup=8 uuid=xxxxxx

Now boot the VM and the task manager should show all 8 cores.

Posted in XenServer Leave a comment
Next Page »