Get FREE Citrix XenApp 6 Video Training Course

Are you setting up a new Proof of Concept
or a Production Environment?

We'll coach you through the configurations step-by-step with Real World Best Practices

  • Microsoft Active Directory and Group Policy...
  • Install and Configure Citrix XenApp 6...
  • Citrix Web Interface and Licensing...
  • And Much Much More...

We respect your privacy. We'll NEVER sell, rent or share your email address. That's more than a policy, it's our personal guarantee!

How To Install XenServer 5.5 on an external USB drive

xenserver 55 01 300x212 How To Install XenServer 5.5 on an external USB drive

This post is a modified version of Chris Wolfs “Installing and Running XenServer 41 on an External USB-Drive” which makes it possible to run Citrix XenServer 5.5 on an external USB drive.

  1. Disconnect or disable all hard drives except the external USB drive
  2. Download and burn a CD with XenServer 5.5
  3. Boot and install XenServer 5.5 on your external USB drive, see installation video here
  4. When the installation is finished, boot on the XenServer CD and press “F2″ when you see “Welcome to XenServer”
  5. Type Shell and press Enter
  6. When the system has booted type : mkdir /tmp/sda
  7. Map the USB drive to the temp folder : mount -t ext3 /dev/sda1 /tmp/sda
  8. Change file permissions : chmod -R 664 /sys/block
  9. Copy System files, ignore Input / Error messages : cp -R /sys/block/ /tmp/sda/sys/block/
  10. Change root location : chroot /tmp/sda
  11. Change to the /boot folder on the USB drive : cd /boot
  12. Rename old initrd image : mv initrd-2.6.18-128.1.6.el5.xs5.5.0.496.1012xen.img initrd-2.6.18-128.1.6.el5.xs5.5.0.496.1012xen.img.old
  13. Make a new initrd image : mkinitrd –-with-usb initrd-2.6.18-128.1.6.el5.xs5.5.0.496.1012xen.img 2.6.18-128.1.6.el5.xs5.5.0.496.1012xen
  14. Remove the XenServer 5.5 intallation CD and reboot

Have a comment to share?

One of the big reasons that I blog is because I like people and I want to help them. Part of the reward for my work is your comments. I read every comment and post my replies pretty fast, so if you have something to say or a question to ask, please use the form below. Thanks very much.





If you like this post enter your information below to receive our FREE "Citrix XenApp 5.0 on Windows 2008" eBook and a 7 day eCourse with Tips & Tricks never revealed before.



{ 15 comments… read them below or add one }

Dean S October 31, 2009 at 22:55

Should read – Make a new initrd image : mkinitrd –-with-usb initrd-2.6.18-128.1.6.el5.xs5.5.0.496.1012xen.img 2.6.18-128.1.6.el5.xs5.5.0.496.1012xen

Reply

admin November 1, 2009 at 00:24

Thanks Dean, I have updated the post

Eric

Reply

Leon Denard January 28, 2010 at 19:20

What do you do if step ten does not work? I have tried to work around it but I can not seem to find a way to get it to work. It just seems to always keep giving me this error:

“cannot run command ‘/bin/sh’: No such file or directory”

Any help would be appreciated. I would really love to have a portable xenserver going.

Thanks

Reply

admin January 28, 2010 at 23:50

Hi Leon,

Make sure you type exactly as show with space and everything, even when you think it’s wrong. Use the TAB key to auto fill.

Have you stopped at number 10 ? It’s possible that you get “no job control in this shell”, but this error message can be ignored.

Eric

Reply

Robert February 6, 2010 at 08:32

Great post. It works successfully but… when finally booting on the USB key, my SAS RAID controler (HP P410i) cannot be accessed, although I wanted to create SR on it !
I guess the mkinitrd command needs an additional option to create an image with the SAS driver. Can anyone help ?
No problem when installing Xen on the SAS disks instead. So, I’m sure XenServer can use this device.

Many thanks in advance

Reply

Michael February 24, 2010 at 06:30

I’m also getting the same error as Leon whilst trying to chroot. (trying to install Xenserver 5.5 update 2 onto my USB drive)

I’m sure the commands aren’t getting mistyped as I’ve tried this 4-5 times …

Also another step of mkdir /tmp/sda/sys/ is needed for it to copy files to the drive correctly …

Reply

admin February 24, 2010 at 13:06

Hi Michael,

The current ISO from Citrix (last time I checked) was the XenServer 5.5 version and this installs fine to USB. What I did see when I updated my XenServer 5.5 USB drive with Update 2 via XenCenter the XenServer goes into a boot loop. I havn’t had time to solve this issuse yet, will post a seperate post when this is fixed. Anyone else successfully updated XS5.5 USB with Update 2 ?

Eric

Reply

Donuts February 28, 2010 at 21:12

I think Leon and Michaels problem will be they either didn’t do step 3 or they are mounting the wrong usb device.

Reply

LATurner March 16, 2010 at 19:03

I got it working on a flash drive on a blade server, using these instructions and XenServer update 2, much thanks!

I had to try three times to install the same thing on an identical blade server for my second server. So easy to make a typo. I’d like to point out a typo in your directions above, Step 12, “Rename old initrd image : mv initrd 2.6.18-128.1.6.el5.xs5.5.0.496.1012xen.img initrd-2.6.18-128.1.6.el5.xs5.5.0.496.1012xen.img.old”, there should be a dash after the first initrd.

Thanks again!

Reply

admin March 16, 2010 at 20:10

Hi everybody,

As you see it’s very easy to type something wrong, a nice tip is to use the TAB key to autofill what’s missing.

Eric

Reply

Trent March 31, 2010 at 15:44

I’m having the same issue as Leon and Michael. I watched the youtube video but it is a video on how to install XenServer on a vmworkstation, not a usb drive. I watched him install and he does nothing different from a standard local disk install. If I try to install to the usb disk using the typical install (like in the video) it fails with an unrecoverable error.

I tried assuming that was supposed to happen and follow the rest of the instructions at that point but I still get sh error on step 10.

Perhaps we need a more detailed step 3?

Thanks!

Reply

admin March 31, 2010 at 17:21

Hi,

Please take a look at my newest post How To Install XenServer 5.6 Beta to external USB

The installation is straight forward, and the VMware instructions can be used if you are not familiar with it.

Please note that you will need a 16GB USB stick and not all of them are supported. If you’re having problems please try another stick / external harddrive.

Eric

Reply

robbie April 7, 2010 at 10:25

Thanks a lot! Our Xenserver crashed and did Kernel Panic on boot (from internal harddrive).
I installed it on a 16gb usb stick and can now salvage the virtual machines :)
Saves me a lot of headache

Reply

Josh Williams August 17, 2011 at 22:58

Thanks!!! It worked great with XenServer 5.6 SP2.

Everyone just make sure that at step 12 you do a dir in the boot folder and look at the file name of the initrd file. The initrd file changes with each release.

Again thanks for all the help.

Reply

Trond Eirik Haavarstein August 17, 2011 at 23:17

Thanks Josh. That’s correct, always check with the Dir command. The build number changes.

Reply

Leave a Comment


{ 6 trackbacks }

Previous post:

Next post: