Posts Tagged Xenserver

Xenserver tapdisk experienced an error

Hi After upgrading a few of our Xenservers to 6.5 i moved a few hard drives from some troublesome servers. I found that after they were remounted i would get a error saying “tapdisk experienced an error” after a bit of digging around in the logs i found Server_helpers.exec exception_handler: Got exception SR_BACKEND_FAILURE_449: [ ; tapdisk experienced an error [opterr=No medium found]; ]

I checked the VDI’s and i could access them via a live CD i mount in the VM. After i rebooted and ejected the CD i found the VM would now boot. I try the same thing on the 2 other servers that would boot and now they are all happy. It seems that when you create a VM for the first time it needs to boot from the CD drive at least once to fix this error.


Hopefully this saves some one some time i spent a few hours on this and couldn’t find any real useful info on it.


Posted in: Blog, Technical

Leave a Comment (4) →

Xenserver Import XVA from Network Share

I was updating our servers to Xenserver 6.5 the other night and i was trying to work out the fastest way of importing some machines i exported. And it seems that xe vm-import is the way to do it.


1) do a xe sr-list and note the UUID of the SR you wish to import the VM in to.

2) Make a mount point your goint to mount to mkdir /tmp/cifsmount

3) mount –t cifs //<IP or FQDN of target machine>/share /tmp/cifsmount –o username=user,password=<password>

4) Check you did it right with a ls /tmp/cifsmount

You should see something with the file name you want to import.

[root@xenserver5 ~]# ls /tmp/cifmount
New Text Document.txt SL-MEL-RMM.xva

5) then start the import like so

xe vm-import filename=/tmp/cifmount/SL-MEL-RMM.xva sr-uuid=

This was using 450mbps of the NIC when i check it. 

This imported a 43.7 GB files in 14:20


Posted in: Blog, Technical

Leave a Comment (0) →

Install Minicom on XCP

Minicom is a serial communication program. It is a Unix clone of the well-known MS-DOS Telix program. It has ANSI color, a dialing directory, dial-a-list, and a scripting language.

Its handy to some times use the serial port on the Xenserver box.

To install minicom run

yum –enablerepo=base install minicom

and then run minicom -s (for setup and setup your serial port)
Here are my settings for getting in to a cisco router.

x A – Serial Device : /dev/ttyS0 x
x B – Lockfile Location : /var/lock x
x C – Callin Program : x
x D – Callout Program : x
x E – Bps/Par/Bits : 9600 8N1 x
x F – Hardware Flow Control : No x
x G – Software Flow Control : No x

Posted in: Blog

Leave a Comment (0) →

Mailcleaner on Citrix Xenserver

Mailcleaner on Citrix Xenserver

How to install mailcleaner on Citrix Xenserver

Make a new VM use the Debian Squeeze 6.0 (64Bit) Set the Ram to over 1024 and what ever size HDD you need.

Select the Mailcleaner install ISO
Untick “Start the new VM automatically”
Then click finish.

Next open a console to your Xenserver.
Run xe vm-list.
Look for your uuid
uuid ( RO) : 08db9437-3e5b-7d60-4229-149671ac1d9d
name-label ( RW): Mailcleaner
power-state ( RO): halted
Next run (sub in your own uuid)

xe vm-param-set uuid=08db9437-3e5b-7d60-4229-149671ac1d9d HVM-boot-params:order=dc HVM-boot-policy=”BIOS order” PV-bootloader=””

Next start the VM. If you get a black screen just hit enter twice. ( just wait a while and if nothing happens just press enter twice again)

The installer should run through.

When its finished eject the DVD and reboot the system.


Once the install is finished you can install the Xentool’s by

mount /dev/cdrom /mnt


Reboot and your done 😉






Posted in: Blog, Technical

Leave a Comment (3) →

Xenserver Missing Removable storage Drives

Some times when USB drives have been plugged in for a long time they seems to disappear. Normally that’s not a problem you just unplug them and plug them back in. When the USB drive is in a Data center that’s a long way to drive just to unplug a drive and plug it back in.

For Xenserver try

modprobe -r usb_storage

Unplugs all USB storage from the server

modprobe usb_storage

Plugs it back in. Normally a re scan on the Removable storage put everything back right.


Posted in: Blog, Technical

Leave a Comment (0) →

Xenserver guest wont shutdown

Got a Xenserver guest that wont shutdown? give this ago

1 – “xe vm-list” to get the uuid of the VM that is hung

2 – “list_domains” to list the domain uuid’s so you can determine
the domain # of the VM above by matching the uuids from this output with
the uuid for your VM from the previous command.

3 – “/opt/xensource/debug/destroy_domain -domid XX” where XX is the domain number from the previous command

4 – “xe vm-reboot uuid=XXXX –force” where XXXX is the uuid from the first vm-list command for your VM. (name-label may work but didn’t work this time for me so I used the uuid)

5 – (optional) If its still stuck try “xe-toolstack-restart”

Your VM will be back up running now in most cases. (I use this for my HVMs that hang so I don’t have to reboot the host server)
Source : Thanks

Posted in: Blog

Leave a Comment (0) →