[arch-releng] Make archiso PXE & NBD friendly (server and client mode)

Aaron Griffin aaronmgriffin at gmail.com
Tue Mar 23 18:53:18 CET 2010


On Sun, Mar 21, 2010 at 5:50 PM, Gerardo Exequiel Pozzi
<vmlinuz386 at yahoo.com.ar> wrote:
> On 03/18/2010 08:35 PM, Gerardo Exequiel Pozzi wrote:
>>
>> All work is done, anyone interested in review the code, here is the big
>> diff against master [#1].
>>
>> Anyone interested in making your own iso, can be done easily since nbd pkg
>> is now in [community] (Thanks to Ionut)
>>
>> Steps to make your own iso (do it as root, mkarchroot is optional but I
>> recommend it):
>>
>> --------------------------------------------------------
>> pacman -S devtools --needed
>> mkarchroot /tmp/somedir base
>> mkarchroot -r bash /tmp/somedir
>> nano /etc/pacman.d/mirrorlist # uncomment your prefered mirror
>> pacman -Sy git squashfs-tools syslinux devtools cdrkit make nbd
>> mkinitcpio-nfs-utils --noconfirm
>> cd /tmp
>> git clone git://github.com/djgera/archiso.git -b pxe_nbd
>> cd archiso/archiso
>> make install
>> cd ../configs/syslinux-iso/
>> make # or "make net-iso" or "make core-iso"
>> --------------------------------------------------------
>>
>> Setup a machine that acts as PXE server for Arch Linux Live media: (easy
>> way):
>> 0) Boot the image in one that machine via USB or CD.
>> 1) login as root
>> 2) ifconfig eth0 192.168.0.7
>> 3) /arch/archiso-pxe-server (by default will get ip from eth0)
>>
>> In another machine on the same network, set the machine to boot as PXE.
>>
>> Thats all, enjoy!
>>
>> [#1] http://github.com/djgera/archiso/compare/master...pxe_nbd
>>
> archiso-pxe-server is not part anymore of pxe_nbd branch, so to setup the
> pxeserver
>
> (inside the live enviroment:)
> 0) Boot the image in one that machine via USB or CD.
> 1) login as root
> 2) ifconfig eth0 192.168.0.7
> 3) route add default gw 192.168.0.1
> 4) pacman -Sy dnsmasq nbd
> 5) wget
> https://gist.github.com/raw/bdf14842039be27a022c/7598a4bab828584260f4f7d6fe86c417e696a155/archiso-pxe-server
> 6) chmod +x archiso-pxe-server
> 7) ./archiso-pxe-server (by default will get ip from eth0)
>
> (from your machine, outside live enviroment)
> 0) mount .iso image in some place
> 1) pacman -Sy dnsmasq nbd
> 2) wget
> https://gist.github.com/raw/bdf14842039be27a022c/7598a4bab828584260f4f7d6fe86c417e696a155/archiso-pxe-server
> 3) chmod +x archiso-pxe-server
> 4) change BOOT= path in archiso-pxe-server where you have mounted the .iso
> plus "boot/" something like /mnt/iso/boot
> 5) ./archiso-pxe-server (by default will get ip from eth0)

I've merged the pxe_nbd branch to master and pushed it.

The remaining question now is - what do we do with the
archiso-pxe-server script? Should it be part of archiso?


More information about the arch-releng mailing list