Re: booting FAI without PXE, tftp using kexec

2022-04-06 Diskussionsfäden Thomas Lange
> On Wed, 6 Apr 2022 09:37:08 +0100, Justin Cattle  said:

> Hi Thomas,
> That's very cool.  Thanks for sharing.
> I guess you are copying the kernel and initrd over manually and putting 
them in your current working
> dir ?
Yes, excatly.

-- 
viele Grüße Thomas


Re: booting FAI without PXE, tftp using kexec

2022-04-06 Diskussionsfäden Justin Cattle
Hi Thomas,

That's very cool.  Thanks for sharing.
I guess you are copying the kernel and initrd over manually and putting
them in your current working dir ?


Cheers,
Just


On Tue, 5 Apr 2022 at 14:44, Thomas Lange  wrote:

> Hi all,
>
> I just installed a machine in a different subnet where I could no use
> network booting using PXE.
>
> But on this machine linux was already running. This is how I managed
> to boot the FAI system and to start the installation.
>
> Load the FAI kernel and initrd from the nfsroot and add FAI specific boot
> parameters:
>
> # kexec -l vmlinuz-5.10.0-13-amd64 --initrd=initrd.img-5.10.0-13-amd64
> --append="FAI_FLAGS=sshd,verbose,createvt FAI_ACTION=install rootovl
> rd.neednet ip=dhcp root=1.2.3.4:/srv/fai/nfsroot,nfsvers=3
> FAI_CONFIG_SRC=nfs://faiserver/srv/fai/config"
>
> Then reboot the computer using kexec. This will shutdown the OS and
> boot the FAI kernel and initrd without going through the BIOS.
>
> # systemctl kexec
>
> --
> best regards Thomas
>

-- 


Notice: 
This email is confidential and may contain copyright material of 
members of the Ocado Group. Opinions and views expressed in this message 
may not necessarily reflect the opinions and views of the members of the 
Ocado Group.

If you are not the intended recipient, please notify us 
immediately and delete all copies of this message. Please note that it is 
your responsibility to scan this message for viruses.

References to the 
"Ocado Group" are to Ocado Group plc (registered in England and Wales with 
number 7098618) and its subsidiary undertakings (as that expression is 
defined in the Companies Act 2006) from time to time. The registered office 
of Ocado Group plc is Buildings One & Two, Trident Place, Mosquito Way, 
Hatfield, Hertfordshire, AL10 9UL.


booting FAI without PXE, tftp using kexec

2022-04-05 Diskussionsfäden Thomas Lange
Hi all,

I just installed a machine in a different subnet where I could no use
network booting using PXE.

But on this machine linux was already running. This is how I managed
to boot the FAI system and to start the installation.

Load the FAI kernel and initrd from the nfsroot and add FAI specific boot 
parameters:

# kexec -l vmlinuz-5.10.0-13-amd64 --initrd=initrd.img-5.10.0-13-amd64 
--append="FAI_FLAGS=sshd,verbose,createvt FAI_ACTION=install rootovl rd.neednet 
ip=dhcp root=1.2.3.4:/srv/fai/nfsroot,nfsvers=3 
FAI_CONFIG_SRC=nfs://faiserver/srv/fai/config"

Then reboot the computer using kexec. This will shutdown the OS and
boot the FAI kernel and initrd without going through the BIOS.

# systemctl kexec

-- 
best regards Thomas