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.6 Beta to external USB

Citrix XenServer 5.6 Beta 300x224 How To Install XenServer 5.6 Beta to external USB

The Citrix XenServer 5.6 Beta is out and I would like to update one of my most popular blog posts. Here is instructions and also a YouTube video on how to install Citrix XenServer 5.6 to an external USB drive.

Mistyping is very common and I would recommend using the <TAB> key to auto fill. I have also included the DIR command so you will see the filename. This will make it easier when type pluss you will know how to do this for further releases.

  1. Disconnect or disable all hard drives except the external USB drive
  2. Download the Citrix XenServer 5.6 ISO
  3. Boot and install XenServer 5.6 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”

[youtube ahVDK1E0UxQ]

Command lines :

  1. mkdir /tmp/sda
  2. mount -t ext3 /dev/sda1 /tmp/sda
  3. chmod -R 664 /sys/block
  4. cp -R /sys/block/ /tmp/sda/sys/block/
  5. chroot /tmp/sda
  6. cd /boot
  7. dir
  8. mv initrd-2.6.27.42-0.1.1.xs5.5.901.760.1073xen.img initrd-2.6.27.42-0.1.1.xs5.5.901.760.1073xen.img.old
  9. mkinitrd –with-usb initrd-2.6.27.42-0.1.1.xs5.5.901.760.1073xen.img 2.6.27.42-0.1.1.xs5.5.901.760.1073xen

ScreenShot of Commands :

XenServer 5.6 Beta Commands 300x106 How To Install XenServer 5.6 Beta to external USB

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.



{ 18 comments… read them below or add one }

Simon June 13, 2010 at 15:49

Hi I tried the above with the release CD for 5.6 and it works all the way up to the mkinitrd command
I then get several modinfo: messages as follows:-
could not find module dm-mem-cache
could not find module dm-region_hash
could not find module dm-message
could not find module dm-raid45
could not find module usb

any help really appreciated
Thanks

Reply

admin June 13, 2010 at 16:35

Hi Simon,

The version number has been changed to : initrd-2.6.27.42-0.1.1.xs5.6.0.44.11115

Eric

Reply

Avi June 19, 2010 at 04:16

Hi Simon,
I have the correct version number but I also get the message when running the mkinitrd:
could not find module dm-mem-cache
could not find module dm-region_hash
could not find module dm-message
could not find module dm-raid45
could not find module usb

If I type the wrong initrd version number then it errors with a different message.

Any ideas?

Thanks

Reply

chris June 29, 2010 at 22:34

i am getting the same error. anyone have any ideas?

Reply

Jeff Nichols July 2, 2010 at 02:24

Chris/Avi,

in the ‘mkinitrd’ portion of the script, make sure its –make-usb and not –make -usb. Thant space made the difference for me.

Reply

einbjoern August 29, 2010 at 18:47

This should do the trick:
mkinitrd –with-usb initrd-2.6.27.42-0.1.1.xs5.5.901.760.1073xen.img 2.6.27.42-0.1.1.xs5.5.901.760.1073xen

It’s double – in front of with-usb

BTW: It’s working for XenServer 5.6 (not BETA) as well.

Reply

Mike Murrin December 22, 2010 at 22:00

Should this work for Xenserver 5.6 FP1?

Reply

Trond Eirik Haavarstein December 22, 2010 at 22:14

Yes it will, but the initrd.xxx.img would have a new version number. Do a LS command to list the new one or type mv initrd- and press TAB

Reply

v1ncen7 February 12, 2011 at 08:26

what do you do after the mkinitrd command??

Reply

Trond Eirik Haavarstein February 12, 2011 at 10:34

Hi,

After the mkinitrd you are ready to boot from your USB to Citrix XenServer. Just make sure that the BIOS boot order in list your USB device first.

Reply

romuluz March 16, 2011 at 16:14

Hi Trond, I’m having problems running FP1 on USB sticks. Both servers installed fine and your method worked great. But few days later xenserver started throwing all sorts of write errors regarding /dev/sda1. I tried several different flash cards, other usb ports, mounted ext3 with ‘noatime’, but the issue remains. Another identical server still has xenserver 5.6 and I don’t have this problem. I also heard that HP and Dell don’t sell servers with Xenserver on build-in flash cards anymore. Do you think there is something else I could try or the changes in FP1 make such a setup unreliable? Thanks.

Reply

Trond Eirik Haavarstein March 16, 2011 at 18:31

Hi Romuluz, I don’t use this myself in production. If XS5.6 works, and FP1 not I would have sticked with that one. Another option is to by a small SSD disk or boot directly from your SAN. Try the Citrix Support Forum – XenServer section

Reply

Danny March 17, 2011 at 04:18

Have you tried running XenClient from USB?

Reply

Trond Eirik Haavarstein March 17, 2011 at 09:16

Hi Danny,

No actually, good idea, haven’t thought about that. Currently to busy with my new Citrix XenApp 6 Video Training Course, but I will look into in the future.

Reply

romuluz March 18, 2011 at 03:43

Thanks Trond, I’m thinking about SSD option now. Don’t want to get stuck with 5.6 missing on new exciting features of FP1 and future releases. I was just hoping there is something else I could do to minimize house-keeping (perhaps avoiding extra disk writes) :)

Reply

Tachyon May 17, 2011 at 18:13

Has anyone tried this with XCP 1.0?
If so, did it work?
Any changes or gotchyas?

Thanks,
Tachyon

Reply

alex July 19, 2011 at 18:08

solved the problem

could not find module dm-mem-cache
could not find module dm-region_hash
could not find module dm-message
could not find module dm-raid45
could not find module usb

the error is that

mkinitrd –with -usb initrd-….etcetc
its wrong, you have to write

mkinitrd –-with-usb initrd-…..etcetc

with two — before with and no space after with !!

now you will have
could not find module dm-mem-cache
could not find module dm-region_hash
could not find module dm-message
could not find module dm-raid45

without the line

could not find module usb

you will be able to boot

Reply

Trond Eirik Haavarstein July 19, 2011 at 18:22

Thanks Alex, I’ll correct it

Reply

Leave a Comment


Previous post:

Next post: