Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
aoebootprepdebianetch [2007/08/24 11:19]
bengen
aoebootprepdebianetch [2007/08/24 11:34]
bengen mention copying a working installation...
Line 2: Line 2:
  
 These instructions assume that the client machine can already access These instructions assume that the client machine can already access
-an AoE target upon boot using INT13 so that GRUB's stage2 can be+an AoE target upon boot using INT13 (i.e. using gPXE) so that GRUB's stage2 can be
 loaded from the AoE target. loaded from the AoE target.
  
 +   - Copy the contents of a physical hard drive on which Debian is installed ​ to the AoE target((Working in a ''​chroot''​ environment created with ''​debootstrap''​ might work, but I have not tested that)). Mount the copy of the root partition, and ''​chroot(8)''​ to that copy.
    - Install the ''​aoetools''​ package and a kernel image that includes the ''​aoe''​ driver, ​ ''​linux-image-2.6.18-5-*''​ from Debian/etch will do fine.    - Install the ''​aoetools''​ package and a kernel image that includes the ''​aoe''​ driver, ​ ''​linux-image-2.6.18-5-*''​ from Debian/etch will do fine.
    - Create ''/​etc/​initramfs-tools/​hooks/​aoetools''​ and ''/​etc/​initramfs-tools/​scripts/​local-top/​aoetools''​ scripts as shown below.\\ The ''​hooks/​aoetools''​ script makes sure that the ''​aoe''​ kernel module and ''/​sbin/​aoe-discover''​ get added to the initial ramdisk. The ''​scripts/​local-top/​aoetools''​ script will be copied to the ramdisk and be run at boot-time, just before the root filesystem is mounted. If the root device string looks like an AoE target, it brings up all Ethernet interfaces that have been recognized by the kernel and sends the `aoe' driver looking for targets.    - Create ''/​etc/​initramfs-tools/​hooks/​aoetools''​ and ''/​etc/​initramfs-tools/​scripts/​local-top/​aoetools''​ scripts as shown below.\\ The ''​hooks/​aoetools''​ script makes sure that the ''​aoe''​ kernel module and ''/​sbin/​aoe-discover''​ get added to the initial ramdisk. The ''​scripts/​local-top/​aoetools''​ script will be copied to the ramdisk and be run at boot-time, just before the root filesystem is mounted. If the root device string looks like an AoE target, it brings up all Ethernet interfaces that have been recognized by the kernel and sends the `aoe' driver looking for targets.
Line 10: Line 11:
    - Create or update ''/​etc/​fstab''​ and ''/​boot/​grub/​menu.lst'':​ Replace ''/​dev/​hd*''​ or ''/​dev/​sd*''​ entries in ''/​etc/​fstab''​ with entries of the form ''/​dev/​etherd/​eX.YpZ''​ where X is the AoE shelf number, Y is the disk number, and Z is the partition number. Grub should pass something like ''​root=/​dev/​etherd/​eX.YpZ''​ to the Linux kernel via its command line.    - Create or update ''/​etc/​fstab''​ and ''/​boot/​grub/​menu.lst'':​ Replace ''/​dev/​hd*''​ or ''/​dev/​sd*''​ entries in ''/​etc/​fstab''​ with entries of the form ''/​dev/​etherd/​eX.YpZ''​ where X is the AoE shelf number, Y is the disk number, and Z is the partition number. Grub should pass something like ''​root=/​dev/​etherd/​eX.YpZ''​ to the Linux kernel via its command line.
    - Update the initial ramdisks: ''#​ update-initramfs -u -k all''​    - Update the initial ramdisks: ''#​ update-initramfs -u -k all''​
-   - Disconnect the hard drive in the client machine and boot it.\\ If the system should hang before the root device has been mounted, passing ''​break=mount''​ on the command line will spawn a shell before `scripts/​local-top/​aoetools'​ is run. This should allow for further debugging.+   - Disconnect the physical ​hard drive in the client machine and boot.\\ If the system should hang before the root device has been mounted, passing ''​break=mount''​ on the command line will spawn a shell before `scripts/​local-top/​aoetools'​ is run. This should allow for further debugging.
  
  

Navigation

* [[:start|Home]] * [[:about|About our Project]] * [[:download|Download]] * [[:screenshots|Screenshots]] * Documentation * [[:howtos|HowTo Guides]] * [[:appnotes|Application Notes]] * [[:faq:|FAQs]] * [[:doc|General Doc]] * [[:talks|Videos, Talks, and Papers]] * [[:hardwareissues|Hardware Issues]] * [[:mailinglists|Mailing lists]] * [[http://support.etherboot.org/|Bugtracker]] * [[:contributing|Contributing]] * [[:editing_permission|Wiki Edit Permission]] * [[:wiki:syntax|Wiki Syntax]] * [[:contact|Contact]] * [[:relatedlinks|Related Links]] * [[:commerciallinks|Commercial Links]] * [[:acknowledgements|Acknowledgements]] * [[:logos|Logo Art]]

QR Code
QR Code aoebootprepdebianetch (generated for current page)