Imaging with fog from ipxe command line
-
I am a college student staying in a dorm. I just want to play around with fog. So I installed fog in a fedora 25 virtual machine. I had a few kinks, but no major issues. I do not have access to get a entry made to automatically pxe boot to my server.
I have a laptop connected to the network as well. I was able to register it. I booted from the iPXE cd command line.
chain http://serverip/fog/service/ipxe/boot.php
This brings me to the fog menu where I registered it.
I then went into the management web interface and created an image, assigned it to the host, and scheduled the server to take an image immediately.I rebooted the laptop. Again with iPXE to
chain http://serverip/fog/service/ipxe/boot.php
Which brings me back to the fog boot menu.
From what I’ve seen online, it should start to image the laptop, but it doesn’t.
If I go to register host, it says the host is already registered and reboots.
In the management interface it shows the task as active.Any ideas on what to do?
I am running the latest git version btw. -
This is because of your parameters.
You aren’t passing the systems Mac address at all. Take a look at the /tftpboot/default.ipxe file
It will have the same type of chain command followed by ##params I think.
-
@Tom-Elliott of course you could simple tftp the file to the client too. Something like:
chain tftp://ipoffogserver/default.ipxe -
This post is deleted! -
@Tom-Elliott I am not super familiar with iPXE or tftp.
chain tftp://ipoffogserver/default.ipxe
resualts with
tftp://ipoffogserver/default.ipxe ... ok params: command not found Could not boot .... (error code)
and
chain tftp://ipoffogserver/default.ipxe ##paramd
returns
the same.
-
@Thewafflication are you changing out ipoffogserver?
-
@Tom-Elliott of course! (10.51.4.48)
-
@Tom-Elliott are you using a custom ipxe file? We create one for this purpose too.
It’s under the tftpboot folder with the name ipxe.iso
-
I’m suggesting this file because the ipxe.iso you are using appears to not allow the params ipxe cmd
-
@Tom-Elliott I am using the one found here:
http://boot.ipxe.org/ipxe.iso
I dont have any more cd’s, but I will try to burn yours to a usb stick with rufus.
Will take some time. -
I do not have a usb drive to spare.
I will buy an extra in next couple of days. -
@Thewafflication You’re at a university. Go find a computer technician and just ask them for a small spare flash drive. I promise they will have an entire box of them just laying around of ones they’ve found while doing their jobs. I would know, I worked at university about 5 years ago as a tech.
-
@Tom-Elliott @Wayne-Workman I solved my problem with a workaround.
Using my iPXE cd that doesn’t have param, I booted to the ipxe.pxe provided with fog.
From there I was able to boot default.ipxe.
TL;DR
Boot CD.chain tftp://myip/ipxe.pxe
shoots some error.
I press s to go to command line.param
returns nothing.
chain tftp://myipdefault.ipxe
Text flies by, and the computer begins to create an image!
Thanks for the help!
-
@Thewafflication Good work. You may think about taking your laptop off of the network so you can run DHCP on your virtualized fog server.