Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Create XenServer USB Install

Installing XenServer 6.2.0 from a USB Stick

  • Download the XenServer 6.2.0 ISO image

  • Format a USB stick using FAT32.

  • Use unetbootin to install the ISO to the USB stick. Use the “DiskImage” option instead of the “Distribution” one, and point it right to the ISO file.

  • Now we need to fix up some boot stuff (All paths are relative to the root of the USB drive)

    • mv boot/isolinux/isolinux.cfg boot/isolinux/syslinux.cfg
    • mv boot/isolinux boot/syslinux
    • mv syslinux.cfg syslinux.cfg.bak
  • Unmount the USB drive and eject it.

  • Boot from the USB stick.

@numerick2010

This comment has been minimized.

Show comment Hide comment
@numerick2010

numerick2010 Aug 17, 2015

Hi

How I can use these commands ( mv) under windows. When I boot on, it ask me a root password...

Thanks

Hi

How I can use these commands ( mv) under windows. When I boot on, it ask me a root password...

Thanks

@ZioGuillo

This comment has been minimized.

Show comment Hide comment
@ZioGuillo

ZioGuillo Oct 16, 2015

to format on Mac

>sudo diskutil eraseDisk FAT32 DEMO MBRFormat /dev/diskN

where N is the number of the disk

to format on Mac

>sudo diskutil eraseDisk FAT32 DEMO MBRFormat /dev/diskN

where N is the number of the disk

@J2897

This comment has been minimized.

Show comment Hide comment
@J2897

J2897 Oct 27, 2015

On Windows, assuming your flash drive's letter is X...

ren "X:\boot\isolinux\isolinux.cfg" "syslinux.cfg"
ren "X:\boot\isolinux" "syslinux"
ren "X:\syslinux.cfg" "syslinux.cfg.bak"

Double-quotes are a good habit IMO. :)

J2897 commented Oct 27, 2015

On Windows, assuming your flash drive's letter is X...

ren "X:\boot\isolinux\isolinux.cfg" "syslinux.cfg"
ren "X:\boot\isolinux" "syslinux"
ren "X:\syslinux.cfg" "syslinux.cfg.bak"

Double-quotes are a good habit IMO. :)

@J2897

This comment has been minimized.

Show comment Hide comment
@J2897

J2897 Oct 27, 2015

It didn't work for me with the XenServer-6.5.0-xenserver.org-install-cd.iso image, unfortunately...

img_20151027_011338

J2897 commented Oct 27, 2015

It didn't work for me with the XenServer-6.5.0-xenserver.org-install-cd.iso image, unfortunately...

img_20151027_011338

@J2897

This comment has been minimized.

Show comment Hide comment
@J2897

J2897 Oct 27, 2015

I've just had the exact same problem using the Universal USB Installer (Pendrivelinux). So it could be unique to my hardware as the MD5 sum is fine...

b6a5ce472a0010f5847669e624f06326 XenServer-6.5.0-xenserver.org-install-cd.iso

J2897 commented Oct 27, 2015

I've just had the exact same problem using the Universal USB Installer (Pendrivelinux). So it could be unique to my hardware as the MD5 sum is fine...

b6a5ce472a0010f5847669e624f06326 XenServer-6.5.0-xenserver.org-install-cd.iso
@J2897

This comment has been minimized.

Show comment Hide comment
@J2897

J2897 Nov 4, 2015

My problem was that I used hard drives pulled from a FreeNAS box that were already formatted in an incompatible format as mentioned here. After I wiped the drives (just zeroing the MBR + partition table will do) everything went smoothly...

dd if=/dev/zero of=/dev/sdX bs=512 count=1

J2897 commented Nov 4, 2015

My problem was that I used hard drives pulled from a FreeNAS box that were already formatted in an incompatible format as mentioned here. After I wiped the drives (just zeroing the MBR + partition table will do) everything went smoothly...

dd if=/dev/zero of=/dev/sdX bs=512 count=1
@bogste

This comment has been minimized.

Show comment Hide comment
@bogste

bogste Nov 15, 2015

I confirm that this strategy also works with XenServer version 6.5.0. Drive boots and installer works as expected.

bogste commented Nov 15, 2015

I confirm that this strategy also works with XenServer version 6.5.0. Drive boots and installer works as expected.

@andrewmichaelsmith

This comment has been minimized.

Show comment Hide comment
@andrewmichaelsmith

andrewmichaelsmith Dec 9, 2015

On 6.5 I get an error about missing config

On 6.5 I get an error about missing config

@VinceVal

This comment has been minimized.

Show comment Hide comment
@VinceVal

VinceVal Dec 15, 2015

Just use Rufus:

image

No need to monkey with SYSLINUX.

Just use Rufus:

image

No need to monkey with SYSLINUX.

@smotti

This comment has been minimized.

Show comment Hide comment
@smotti

smotti Apr 14, 2016

Thanks VinceVal!

With Rufus it worked. But with the other approach it didn't even get to the bootloader.

smotti commented Apr 14, 2016

Thanks VinceVal!

With Rufus it worked. But with the other approach it didn't even get to the bootloader.

@djalmacastro

This comment has been minimized.

Show comment Hide comment
@djalmacastro

djalmacastro May 14, 2016

PERFECT!!! very very thanks.

PERFECT!!! very very thanks.

@maximino

This comment has been minimized.

Show comment Hide comment
@maximino

maximino Sep 17, 2016

And I also confirm that this strategy works with XenServer version 7.0.0.

And I also confirm that this strategy works with XenServer version 7.0.0.

@NeilHanlon

This comment has been minimized.

Show comment Hide comment
@NeilHanlon

NeilHanlon Nov 10, 2016

Etcher (https://etcher.io) Is great and did the trick for me with a troublesome server.

Etcher (https://etcher.io) Is great and did the trick for me with a troublesome server.

@mmiat

This comment has been minimized.

Show comment Hide comment
@mmiat

mmiat Dec 29, 2016

with YUMI I've tried to create a multiboot usb key, but xenserver 7 doesn't install, I've error:

Failed to load COM32 file mboot.c32

mmiat commented Dec 29, 2016

with YUMI I've tried to create a multiboot usb key, but xenserver 7 doesn't install, I've error:

Failed to load COM32 file mboot.c32

@facinup

This comment has been minimized.

Show comment Hide comment
@facinup

facinup Nov 3, 2017

With YUMI 2.0.4.6, unlisted ISO (GRUP Partition 4) works.
XenServer 7.0.0

facinup commented Nov 3, 2017

With YUMI 2.0.4.6, unlisted ISO (GRUP Partition 4) works.
XenServer 7.0.0

@jrab66

This comment has been minimized.

Show comment Hide comment
@jrab66

jrab66 Feb 13, 2018

already reinstalling server using rufus v2.18.1213 in my KVM windows 7 machine.

the others alternatives does not work in my case.

jrab66 commented Feb 13, 2018

already reinstalling server using rufus v2.18.1213 in my KVM windows 7 machine.

the others alternatives does not work in my case.

@wandersonnnn

This comment has been minimized.

Show comment Hide comment
@wandersonnnn

wandersonnnn Feb 20, 2018

@VinceVal, thanks for your help. The Rufus solution has been worked for me!!!

@VinceVal, thanks for your help. The Rufus solution has been worked for me!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment