This message was deleted.
# elemental
a
This message was deleted.
w
Hi @salmon-sugar-31247! Quite an interesting use-case! To clarify: does the VPS support IPXE or not? Because we use IPXE extensively to boot our test-environment so that would simplify things!
s
Edit: Solved in the next message It technically does I should have clarified that more, the VPS doesn't naively but booting netboot.xyz from grub makes it easy to so. But when I tried doing that it always seemingly got stuck after about 5s into booting. But I'm inexperienced with network booting so certainly got something wrong. I assume it's this that you are mentioning https://github.com/rancher/elemental/blob/37f60bf73c5e2a75c1599c453d1b9680943c34d6/tests/Makefile#L27-L36 I'm trying to follow that but i'm having some issues. I'm using the elemental.iso downloaded from the Elemental UI, but the Makefile seems to make empty files for the kernel & init.rd. I manually copied the files from /boot/x86_64/loader assuming those are correct. The squashfs seems to extract correctly though. I don't seem to be getting much further in the boot process though, but this is what i'm doing: 1. Changed the url to not include the elemental.iso suffix as when booting it tried to grab the nonexistent file from the webserver 2. Hosted those files on a local webserver with logging 3. booted to netboot.xyz to get an ipxe environment 4. Edit: Run
imgfree
5. manually run
chain 192.168.122.1:8000/install.ipxe
6. Seems to grab the install, initrd & kernel files 7. Boots and shortly gives
Kernel Panic ... Unable to mount root fs on unknown-block(0,0)
Here is my install.ipxe: > #!ipxe > set arch amd64 > set url http://192.168.122.1:8000 > set kernel elemental-kernel > set initrd elemental-initrd > set rootfs elemental.squashfs > set config http://192.168.122.1:8000/machine-config > set cmdline cos.setup=/run/initramfs/live/cloud-config extra.values=1 > initrd ${url}/${initrd} > chain --autofree --replace ${url}/${kernel} initrd=${initrd} ip=dhcp rd.cos.disable root=live:${url}/${rootfs} stages.initramfs[0].commands[0]="curl -k ${config} > /run/initramfs/live/livecd-cloud-config.yaml" console=tty1 console=ttyS0 ${cmdline}
Actually it looks like it is working well now and fully booted and installed, all I did was do was run
imgfree
before
chain 192.168.122.1:8000/install.ipxe
Now all I need to do is automate this process!
🎉 1
w
Awesome, that's some solid debugging! 👍