Skip to content

Instantly share code, notes, and snippets.

@thuandt
Created October 30, 2013 15:56
Show Gist options
  • Select an option

  • Save thuandt/7235099 to your computer and use it in GitHub Desktop.

Select an option

Save thuandt/7235099 to your computer and use it in GitHub Desktop.
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

Copy link
Copy Markdown

Hi

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

Thanks

@ZioGuillo

Copy link
Copy Markdown

to format on Mac

>sudo diskutil eraseDisk FAT32 DEMO MBRFormat /dev/diskN

where N is the number of the disk

@J2897

J2897 commented Oct 27, 2015

Copy link
Copy Markdown

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

J2897 commented Oct 27, 2015

Copy link
Copy Markdown

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

img_20151027_011338

@J2897

J2897 commented Oct 27, 2015

Copy link
Copy Markdown

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

J2897 commented Nov 4, 2015

Copy link
Copy Markdown

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

bogste commented Nov 15, 2015

Copy link
Copy Markdown

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

@andrewmichaelsmith

Copy link
Copy Markdown

On 6.5 I get an error about missing config

@VinceVal

Copy link
Copy Markdown

Just use Rufus:

image

No need to monkey with SYSLINUX.

@smotti

smotti commented Apr 14, 2016

Copy link
Copy Markdown

Thanks VinceVal!

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

@djalmacastro

Copy link
Copy Markdown

PERFECT!!! very very thanks.

@maximino

Copy link
Copy Markdown

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

@NeilHanlon

Copy link
Copy Markdown

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

@mauro-miatello

Copy link
Copy Markdown

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

facinup commented Nov 3, 2017

Copy link
Copy Markdown

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

@jrab66

jrab66 commented Feb 13, 2018

Copy link
Copy Markdown

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

the others alternatives does not work in my case.

@wandersonnnn

Copy link
Copy Markdown

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

@riaannell

Copy link
Copy Markdown

Thanks, this helped me create bootdisk for XenServer 7.2

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