Skip to contentSkip to conversation

xen 2.0.1, 2.4.27, 2.6.9, non-bridge

DISCUSSION James Harper 2 participants 2 messages Jan 1, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

Configuring a bridge is a multi-step process. At one point during the process, normal communication is severed over eth0, while the bridge itself is
not yet fully functional.
At this point, the root filesystem is no longer available, and the

machine

Quoted 1 line

falls over.

I wonder if you could do this:

1. mount a tmpfs somewhere
2. copy in enough libs etc to make #4 work
3. chroot to the new tmpfs
4. set up the bridge and transfer the address across
5. leave the chroot environment

You wouldn't want anything much else to be running at this point though so it would have to be done pretty early in the boot process.

Quoted 1 line

I'd prefer to not do it with an initrd, as that's an added step, and

extra

Quoted 1 line

complexity.

I've set up an initrd that boots dom0 over iSCSI, which suffers from the same problem as nfs only more so as iSCSI is connection based and downing eth0 cuts the connections. My initrd sets up the first bridge (my setup has 3 bridges) from the outset so the network disappearing never becomes an issue.

Under iSCSI an initrd is the only option but for nfs it would be nifty to be able to do without.

If anyone's interested in the script to create the initrd (debian - not sure how it would translate to another dist) I can post it here, shouldn't be too hard to modify it to boot from nfs... in fact my home pc's boot off nfs using almost the same setup.

James

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#1 lore raw
Quoted 8 lines · James Harper
Quoted 5 lines

Configuring a bridge is a multi-step process. At one point during the process, normal communication is severed over eth0, while the bridge itself is
not yet fully functional.
At this point, the root filesystem is no longer available, and the

machine

Quoted 1 line

falls over.

Quoted 7 lines

I wonder if you could do this:

1. mount a tmpfs somewhere
2. copy in enough libs etc to make #4 work
3. chroot to the new tmpfs
4. set up the bridge and transfer the address across
5. leave the chroot environment

I had a version that did that.

nfsroot a small bootstrap system.
copy root to tmpfs.
pivot_root
setup bridge
start portmap
mount real nfsroot
kill portmap
pivot_root
continue boot

All steps worked, except that after continuing the boot, I kept getting odd issues out no free locks. I got fustrated, and trying the ip routing approach.

Note that the above does not use an initrd. Using a real nfsroot system makes it easier to update.

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt