* RE: HVMAssist BIOS boot device problem
@ 2008-07-08 13:52 Stephen Quintero
2008-07-08 14:00 ` Keir Fraser
2008-07-08 14:05 ` Steve Ofsthun
0 siblings, 2 replies; 7+ messages in thread
From: Stephen Quintero @ 2008-07-08 13:52 UTC (permalink / raw)
To: Keir Fraser, xen-devel; +Cc: Apoorva Kulkarni, Minh Quach, Eric Tessler
Keir,
Thank you for your reply.
I agree it should be deterministic, according to the enumeration of the
devices (hda-hdd), but, alas, it is not.
See example B in my original post where hda|hdb|hdc all contain active
partitions but the guest boots from hdc.
See also example A in my post where hda is always a bootable image but
sometimes the guest boots from hdb (you may not easily recreate this
scenario yourself, but example B is simple to reproduce).
Stephen
-----Original Message-----
From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
Sent: Tuesday, July 08, 2008 2:12 AM
To: Stephen Quintero; xen-devel@lists.xensource.com
Cc: Apoorva Kulkarni; Minh Quach; Eric Tessler
Subject: Re: [Xen-devel] HVMAssist BIOS boot device problem
On 8/7/08 01:24, "Stephen Quintero" <stephen@3tera.com> wrote:
> Is there any method to cause an HVM guest to reliably boot from hda?
>
> Any insight would be appreciated.
Reading the BIOS code, my understanding is that 'boot from hard disk'
means
to boot from the first connected hard drive enumerated in the following
order: primary master, primary slave, secondary master, secondary slave
(i.e., hda-hdd). I confirmed this with a few simple tests -- attach a
bootable image to hdd boots fine, but if I connect a non-bootable image
on
any of hha-hdc then the system fails to boot. This is all entirely
deterministic. Selection of boot device should not be random, nor change
across reboots.
-- Keir
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: HVMAssist BIOS boot device problem
2008-07-08 13:52 HVMAssist BIOS boot device problem Stephen Quintero
@ 2008-07-08 14:00 ` Keir Fraser
2008-07-08 14:05 ` Steve Ofsthun
1 sibling, 0 replies; 7+ messages in thread
From: Keir Fraser @ 2008-07-08 14:00 UTC (permalink / raw)
To: Stephen Quintero, xen-devel; +Cc: Apoorva Kulkarni, Minh Quach, Eric Tessler
On 8/7/08 14:52, "Stephen Quintero" <stephen@3tera.com> wrote:
> See example B in my original post where hda|hdb|hdc all contain active
> partitions but the guest boots from hdc.
I checked an example where hda was not bootable yet hdd was. In that case
the BIOS wanted to boot from hda, and failed, and that was that. I'm afraid
that, plus reading the BIOS code, was as far as I went in trying to repro
this oddness.
-- Keir
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: HVMAssist BIOS boot device problem
2008-07-08 13:52 HVMAssist BIOS boot device problem Stephen Quintero
2008-07-08 14:00 ` Keir Fraser
@ 2008-07-08 14:05 ` Steve Ofsthun
1 sibling, 0 replies; 7+ messages in thread
From: Steve Ofsthun @ 2008-07-08 14:05 UTC (permalink / raw)
To: Stephen Quintero
Cc: Apoorva Kulkarni, Minh Quach, xen-devel, Keir Fraser,
Eric Tessler
Stephen Quintero wrote:
> Keir,
>
> Thank you for your reply.
>
> I agree it should be deterministic, according to the enumeration of the
> devices (hda-hdd), but, alas, it is not.
Realize that Xen (QEMU BIOS) is only determining which MBR is loaded and executed. After that you are at the mercy of the boot loader in question. Windows in particular doesn't "support" multiple visible system partitions, or rather, doesn't specify the selection of the appropriate system partition. In your example B below, if you destroy the boot block on hda, you will fail to boot anything. If you "hide" all windows partitions on hdb/hdc/hdd, you will indeed boot the system volume on hda. This is exactly what many multiboot boot loaders do. The partition tables are usually modified in memory only, not on the physical disk itself.
Steve
> See example B in my original post where hda|hdb|hdc all contain active
> partitions but the guest boots from hdc.
>
> See also example A in my post where hda is always a bootable image but
> sometimes the guest boots from hdb (you may not easily recreate this
> scenario yourself, but example B is simple to reproduce).
>
> Stephen
>
>
> -----Original Message-----
> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
> Sent: Tuesday, July 08, 2008 2:12 AM
> To: Stephen Quintero; xen-devel@lists.xensource.com
> Cc: Apoorva Kulkarni; Minh Quach; Eric Tessler
> Subject: Re: [Xen-devel] HVMAssist BIOS boot device problem
>
> On 8/7/08 01:24, "Stephen Quintero" <stephen@3tera.com> wrote:
>
>> Is there any method to cause an HVM guest to reliably boot from hda?
>>
>> Any insight would be appreciated.
>
> Reading the BIOS code, my understanding is that 'boot from hard disk'
> means
> to boot from the first connected hard drive enumerated in the following
> order: primary master, primary slave, secondary master, secondary slave
> (i.e., hda-hdd). I confirmed this with a few simple tests -- attach a
> bootable image to hdd boots fine, but if I connect a non-bootable image
> on
> any of hha-hdc then the system fails to boot. This is all entirely
> deterministic. Selection of boot device should not be random, nor change
> across reboots.
>
> -- Keir
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: HVMAssist BIOS boot device problem
@ 2008-07-08 14:25 Stephen Quintero
0 siblings, 0 replies; 7+ messages in thread
From: Stephen Quintero @ 2008-07-08 14:25 UTC (permalink / raw)
To: Steve Ofsthun
Cc: Apoorva Kulkarni, Minh Quach, xen-devel, Keir Fraser,
Eric Tessler
Steve,
Okay, I get it. The BIOS is picking the MBR of hda and the windows boot
loader is deciding to boot from the active partition of hdc.
A boot loader problem.
Thanks you,
Stephen
-----Original Message-----
From: Steve Ofsthun [mailto:sofsthun@virtualiron.com]
Sent: Tuesday, July 08, 2008 7:05 AM
To: Stephen Quintero
Cc: Keir Fraser; xen-devel@lists.xensource.com; Apoorva Kulkarni; Minh
Quach; Eric Tessler
Subject: Re: [Xen-devel] HVMAssist BIOS boot device problem
Stephen Quintero wrote:
> Keir,
>
> Thank you for your reply.
>
> I agree it should be deterministic, according to the enumeration of
the
> devices (hda-hdd), but, alas, it is not.
Realize that Xen (QEMU BIOS) is only determining which MBR is loaded and
executed. After that you are at the mercy of the boot loader in
question. Windows in particular doesn't "support" multiple visible
system partitions, or rather, doesn't specify the selection of the
appropriate system partition. In your example B below, if you destroy
the boot block on hda, you will fail to boot anything. If you "hide"
all windows partitions on hdb/hdc/hdd, you will indeed boot the system
volume on hda. This is exactly what many multiboot boot loaders do.
The partition tables are usually modified in memory only, not on the
physical disk itself.
Steve
> See example B in my original post where hda|hdb|hdc all contain active
> partitions but the guest boots from hdc.
>
> See also example A in my post where hda is always a bootable image but
> sometimes the guest boots from hdb (you may not easily recreate this
> scenario yourself, but example B is simple to reproduce).
>
> Stephen
>
>
> -----Original Message-----
> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
> Sent: Tuesday, July 08, 2008 2:12 AM
> To: Stephen Quintero; xen-devel@lists.xensource.com
> Cc: Apoorva Kulkarni; Minh Quach; Eric Tessler
> Subject: Re: [Xen-devel] HVMAssist BIOS boot device problem
>
> On 8/7/08 01:24, "Stephen Quintero" <stephen@3tera.com> wrote:
>
>> Is there any method to cause an HVM guest to reliably boot from hda?
>>
>> Any insight would be appreciated.
>
> Reading the BIOS code, my understanding is that 'boot from hard disk'
> means
> to boot from the first connected hard drive enumerated in the
following
> order: primary master, primary slave, secondary master, secondary
slave
> (i.e., hda-hdd). I confirmed this with a few simple tests -- attach a
> bootable image to hdd boots fine, but if I connect a non-bootable
image
> on
> any of hha-hdc then the system fails to boot. This is all entirely
> deterministic. Selection of boot device should not be random, nor
change
> across reboots.
>
> -- Keir
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* HVMAssist BIOS boot device problem
@ 2008-07-08 0:24 Stephen Quintero
2008-07-08 6:35 ` Keir Fraser
2008-07-08 9:12 ` Keir Fraser
0 siblings, 2 replies; 7+ messages in thread
From: Stephen Quintero @ 2008-07-08 0:24 UTC (permalink / raw)
To: xen-devel; +Cc: Apoorva Kulkarni, Minh Quach, Eric Tessler
[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]
Hello,
The xm config option boot="c" is intended to boot from the "first" harddrive; however, the enumeration of harddrives is independent of device enumeration (hda|hdb|hdc|hdd), leading to unreliable boot device selection.
Example A:
I am building a Windows HVM appliance which performs file-system level operations over mounted NTFS volumes - for example a file-system level copy.
hda is the boot disk of the appliance and contains a single active (bootable) primary partition. If hdb also contains a single active primary partition, sometimes the appliance boots from hda and properly mounts the hdb partition and sometimes it misfires and boots from the hdb partition, causing a disaster (the contents of hdb are unknown to the appliance prior to boot).
Example B:
Make three copies of a bootable Windows image and set them up as hda, hdb, and hdc. "xm create" boots from the active partition of hda. Shutdown and reorder the devices, switching the images for hda and hdc. "xm create" now boots from the active partition of hdc.
Is there any method to cause an HVM guest to reliably boot from hda?
Any insight would be appreciated.
Thank you,
Stephen Quintero
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: HVMAssist BIOS boot device problem
2008-07-08 0:24 Stephen Quintero
@ 2008-07-08 6:35 ` Keir Fraser
2008-07-08 9:12 ` Keir Fraser
1 sibling, 0 replies; 7+ messages in thread
From: Keir Fraser @ 2008-07-08 6:35 UTC (permalink / raw)
To: Stephen Quintero, xen-devel; +Cc: Apoorva Kulkarni, Minh Quach, Eric Tessler
On 8/7/08 01:24, "Stephen Quintero" <stephen@3tera.com> wrote:
> Example A:
>
> I am building a Windows HVM appliance which performs file-system level
> operations over mounted NTFS volumes - for example a file-system level copy.
>
> hda is the boot disk of the appliance and contains a single active (bootable)
> primary partition. If hdb also contains a single active primary partition,
> sometimes the appliance boots from hda and properly mounts the hdb partition
> and sometimes it misfires and boots from the hdb partition, causing a disaster
> (the contents of hdb are unknown to the appliance prior to boot).
>
> Example B:
>
> Make three copies of a bootable Windows image and set them up as hda, hdb, and
> hdc. "xm create" boots from the active partition of hda. Shutdown and
> reorder the devices, switching the images for hda and hdc. "xm create" now
> boots from the active partition of hdc.
>
> Is there any method to cause an HVM guest to reliably boot from hda?
Is the selected disc deterministic for any particular config file, or does
it change randomly across reboots, with no changes to the guest config file?
-- Keir
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: HVMAssist BIOS boot device problem
2008-07-08 0:24 Stephen Quintero
2008-07-08 6:35 ` Keir Fraser
@ 2008-07-08 9:12 ` Keir Fraser
1 sibling, 0 replies; 7+ messages in thread
From: Keir Fraser @ 2008-07-08 9:12 UTC (permalink / raw)
To: Stephen Quintero, xen-devel; +Cc: Apoorva Kulkarni, Minh Quach, Eric Tessler
On 8/7/08 01:24, "Stephen Quintero" <stephen@3tera.com> wrote:
> Is there any method to cause an HVM guest to reliably boot from hda?
>
> Any insight would be appreciated.
Reading the BIOS code, my understanding is that 'boot from hard disk' means
to boot from the first connected hard drive enumerated in the following
order: primary master, primary slave, secondary master, secondary slave
(i.e., hda-hdd). I confirmed this with a few simple tests -- attach a
bootable image to hdd boots fine, but if I connect a non-bootable image on
any of hha-hdc then the system fails to boot. This is all entirely
deterministic. Selection of boot device should not be random, nor change
across reboots.
-- Keir
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-07-08 14:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 13:52 HVMAssist BIOS boot device problem Stephen Quintero
2008-07-08 14:00 ` Keir Fraser
2008-07-08 14:05 ` Steve Ofsthun
-- strict thread matches above, loose matches on Subject: below --
2008-07-08 14:25 Stephen Quintero
2008-07-08 0:24 Stephen Quintero
2008-07-08 6:35 ` Keir Fraser
2008-07-08 9:12 ` Keir Fraser
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.