Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: API

Re: [Xen-users] Installing XCP from USB thumb

 

 

Xen api RSS feed   Index | Next | Previous | View Threaded


ray at aarden

Jun 25, 2012, 6:44 PM

Post #1 of 2 (331 views)
Permalink
Re: [Xen-users] Installing XCP from USB thumb

I am sorry for being so dense, but I can't tell what is happening.

This is building a thumbdrive installation by using a Linux system to
construct the contents for the thumb drive?

The ISO is openned with 7-zip and three files are copied o the root of
the thumb drive. What was it that YUMI put on the thumbdrive?

Can something similar be done from a Windows 7 system?

ray

Message: 16
Date: Mon, 25 Jun 2012 15:24:08 -0500
From: Shawn Henderson <shenderson [at] remitdata>
To: Ian Campbell <Ian.Campbell [at] citrix>, Mike McClurg
<mike.mcclurg [at] citrix>
Cc: "xen-users [at] lists" <xen-users [at] lists>, Eric
<epretorious [at] yahoo>, "xen-api [at] lists"
<xen-api [at] lists>
Subject: Re: [Xen-users] [Xen-API] Installing XCP from USB thumb
drive
Message-ID:
<409A1A6A0786784DA5D763885CE8B62E69547920 [at] MBX17>
Content-Type: text/plain; charset="Windows-1252"

Here's how we did it (from my engineer):

What we did to get XCP install from a USB stick.
Step #1) Download all the things
YUMI. (I used 0.0.5.8 but any version should work) -
http://www.pendrivelinux.com/yumi-multiboot-usb-creator/
XCP install ISO - http://www.xen.org/download/xcp/index.html
Step #2) Plug in your USB stick (the rest assumes the drive is assigned
a letter of D:)
Step #3a) Run YUMI
Step #3b) Agree to the license Agreement
Step #3c) Select D: for YUMI Step 1
Step #3d) Select the option ?Try an Unlisted ISO? for YUMI Step 2
Step #3e) Browse to the downloaded XCP ISO from step 1 and select it for
YUMI Step 3
Step #3f) Mash create and wait.

At this point it is going to bloat things a little by having the full
iso on the USB stuck but who cares right?

Step #4) Open the ISO downloaded in Step 1 using your favorite archive
program. (I use 7-zip) Copy the folders packages.main and
packages.transfer-vm to the root of d:\ and finally copy the file
XS-REPOSITORY-LIST to the root of D:\

Step #5) PROFIT?

________________________________________
From: xen-api-bounces [at] lists [xen-api-bounces [at] lists] On
Behalf Of Ian Campbell [Ian.Campbell [at] citrix]
Sent: Friday, June 22, 2012 7:04 AM
To: Mike McClurg
Cc: xen-api [at] lists; xen-users [at] lists; Eric
Subject: Re: [Xen-API] [Xen-users] Installing XCP from USB thumb drive

On Fri, 2012-06-22 at 12:51 +0100, Mike McClurg wrote:
> On 22/06/12 12:18, Anil Madhavapeddy wrote:
> > On 22 Jun 2012, at 12:12, Mike McClurg wrote:
> >
> >> On 22/06/12 11:59, Ian Campbell wrote:
> >>> On Fri, 2012-06-22 at 11:27 +0100, Mike McClurg wrote:
> >>>> On 21/06/12 00:05, Eric wrote:
> >>>>> Is CD-ROM/DVD-ROM the only way to install XCP?
> >>>>
> >>>> I'm sure you could dd the iso to a thumb drive in the same way you would
> >>>> any other OS.
> >>>
> >>> This depends on the iso having being created with special options though
> >>> -- is that done for XCP isos?
> >>
> >> I have no idea, what options does an ISO need to be created with? Can
> >> you repackage an ISO with those options?
> >
> > If it still exists, packaging.hg creates the XenServer ISO with the correct
> > options for PXE boot. XCP probably uses the same build scripts...are they
> > open-source?
>
> Those scripts don't contain any license information that I can see, and
> we haven't published them publicly. I'm all for making XCP easier to
> build outside of Citrix, but I don't think that thrusting our build
> system on the world is the right way to do it ;)
>
> Anyway, here is the blurb that generates the iso:
>
> mkisofs -joliet -joliet-long -r \
> -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
> -no-emul-boot -boot-load-size 4 -boot-info-table \
> -sort $(MY_OBJ_DIR)/sort.main.list \
> -V "$(PLATFORM_NAME)-$(PLATFORM_VERSION) $(LABEL_main)" \
> -o $@ $(STAGING_main);
>
> Does that look like it'll generate a thumb-drive-bootable ISO?

The scripts which create the Debian CD sets use
case "$MKISOFS" in
*xorriso*)
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-isohybrid-mbr
syslinux/usr/lib/syslinux/isohdpfx.bin"
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-partition_offset 16"
which I think is related to this.

I think it is basically doing isohybrid at creation time instead of post
processing. It seems (and this corresponds with my vague memory of
seeing the discussion on debian-cd) like it needs xorriso rather than
mkisofs (which IIRC is deprecated).

Ian.



_______________________________________________
Xen-api mailing list
Xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


cyberhawk001 at gmail

Jun 25, 2012, 9:06 PM

Post #2 of 2 (306 views)
Permalink
Re: [Xen-users] Installing XCP from USB thumb [In reply to]

On 6/25/2012 9:44 PM, ray [at] aarden wrote:
> I am sorry for being so dense, but I can't tell what is happening.
>
> This is building a thumbdrive installation by using a Linux system to
> construct the contents for the thumb drive?
>
> The ISO is openned with 7-zip and three files are copied o the root of
> the thumb drive. What was it that YUMI put on the thumbdrive?
>
> Can something similar be done from a Windows 7 system?


As for putting Windows 7 on a USB stick is very easy and simple. I have
already done that a while ago and have used it several times. For that,
all you have to do is download a program called WinToFlash, which you
can just download the latest from here http://wintoflash.com/home/en/
and extract the program. Granted, that program only works on Windows BUT
it is also in a portable state, meaning it doesn't need to be installed
on a windows, just extracted and run.



> ray
>
> Message: 16
> Date: Mon, 25 Jun 2012 15:24:08 -0500
> From: Shawn Henderson<shenderson [at] remitdata>
> To: Ian Campbell<Ian.Campbell [at] citrix>, Mike McClurg
> <mike.mcclurg [at] citrix>
> Cc: "xen-users [at] lists"<xen-users [at] lists>, Eric
> <epretorious [at] yahoo>, "xen-api [at] lists"
> <xen-api [at] lists>
> Subject: Re: [Xen-users] [Xen-API] Installing XCP from USB thumb
> drive
> Message-ID:
> <409A1A6A0786784DA5D763885CE8B62E69547920 [at] MBX17>
> Content-Type: text/plain; charset="Windows-1252"
>
> Here's how we did it (from my engineer):
>
> What we did to get XCP install from a USB stick.
> Step #1) Download all the things
> YUMI. (I used 0.0.5.8 but any version should work) -
> http://www.pendrivelinux.com/yumi-multiboot-usb-creator/
> XCP install ISO - http://www.xen.org/download/xcp/index.html
> Step #2) Plug in your USB stick (the rest assumes the drive is assigned
> a letter of D:)
> Step #3a) Run YUMI
> Step #3b) Agree to the license Agreement
> Step #3c) Select D: for YUMI Step 1
> Step #3d) Select the option ?Try an Unlisted ISO? for YUMI Step 2
> Step #3e) Browse to the downloaded XCP ISO from step 1 and select it for
> YUMI Step 3
> Step #3f) Mash create and wait.
>
> At this point it is going to bloat things a little by having the full
> iso on the USB stuck but who cares right?
>
> Step #4) Open the ISO downloaded in Step 1 using your favorite archive
> program. (I use 7-zip) Copy the folders packages.main and
> packages.transfer-vm to the root of d:\ and finally copy the file
> XS-REPOSITORY-LIST to the root of D:\
>
> Step #5) PROFIT?
>
> ________________________________________
> From: xen-api-bounces [at] lists [xen-api-bounces [at] lists] On
> Behalf Of Ian Campbell [Ian.Campbell [at] citrix]
> Sent: Friday, June 22, 2012 7:04 AM
> To: Mike McClurg
> Cc: xen-api [at] lists; xen-users [at] lists; Eric
> Subject: Re: [Xen-API] [Xen-users] Installing XCP from USB thumb drive
>
> On Fri, 2012-06-22 at 12:51 +0100, Mike McClurg wrote:
>> On 22/06/12 12:18, Anil Madhavapeddy wrote:
>>> On 22 Jun 2012, at 12:12, Mike McClurg wrote:
>>>
>>>> On 22/06/12 11:59, Ian Campbell wrote:
>>>>> On Fri, 2012-06-22 at 11:27 +0100, Mike McClurg wrote:
>>>>>> On 21/06/12 00:05, Eric wrote:
>>>>>>> Is CD-ROM/DVD-ROM the only way to install XCP?
>>>>>> I'm sure you could dd the iso to a thumb drive in the same way you would
>>>>>> any other OS.
>>>>> This depends on the iso having being created with special options though
>>>>> -- is that done for XCP isos?
>>>> I have no idea, what options does an ISO need to be created with? Can
>>>> you repackage an ISO with those options?
>>> If it still exists, packaging.hg creates the XenServer ISO with the correct
>>> options for PXE boot. XCP probably uses the same build scripts...are they
>>> open-source?
>> Those scripts don't contain any license information that I can see, and
>> we haven't published them publicly. I'm all for making XCP easier to
>> build outside of Citrix, but I don't think that thrusting our build
>> system on the world is the right way to do it ;)
>>
>> Anyway, here is the blurb that generates the iso:
>>
>> mkisofs -joliet -joliet-long -r \
>> -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
>> -no-emul-boot -boot-load-size 4 -boot-info-table \
>> -sort $(MY_OBJ_DIR)/sort.main.list \
>> -V "$(PLATFORM_NAME)-$(PLATFORM_VERSION) $(LABEL_main)" \
>> -o $@ $(STAGING_main);
>>
>> Does that look like it'll generate a thumb-drive-bootable ISO?
> The scripts which create the Debian CD sets use
> case "$MKISOFS" in
> *xorriso*)
> add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-isohybrid-mbr
> syslinux/usr/lib/syslinux/isohdpfx.bin"
> add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-partition_offset 16"
> which I think is related to this.
>
> I think it is basically doing isohybrid at creation time instead of post
> processing. It seems (and this corresponds with my vague memory of
> seeing the discussion on debian-cd) like it needs xorriso rather than
> mkisofs (which IIRC is deprecated).
>
> Ian.
>
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api [at] lists
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>


_______________________________________________
Xen-api mailing list
Xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Xen api RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.