On Sat, Mar 29, 2014 at 10:23 AM, Marek Marczykowski-Górecki
<marm...@invisiblethingslab.com> wrote:
On 29.03.2014 00:38, Rob Townley wrote:
> HVM with netboot.me.ISO and do CTRL-B to get the gPXE menu and run config
> to set a static network configuration, but still immediately fails.
>
> iPXE.iso gave much better errors and provides URLs to errors. Their
> websites says the best error information is from *ifstat* after doing
> *ifconf* like so:
>
> CTRL-B to get into iPXE menu:
>
> * iPXE> ifconf -c dhcp net0*
> * iPXE> ifstat *
>
> *[RXE: 8 x "Operation not supported (http://ipxe.org/3c086003
> <http://ipxe.org/3c086003>)"]*
>
> Which means 8 rerror packets/frames were received.
> i did not find anybridges in the netvm nor firewallvm so i imagine i have
> to add a bridge from the netvm to the HVM or something so that PXE can talk
> ethernet directly to the PXE/tFTP/NFS servers. Incidentaly, iPXE says to
> set set the delay to zero with *brctl setfd br0 0* like
> http://ipxe.org/err/4c1060 indicates. Alternatives?
I'm afraid it isn't such simple... DHCP server for HVM is provided by device
model stubdomain and it is very simple, featureless and not configurable.
Especially it doesn't have any way to provide TFTP server address and boot path.
But if you can set those parameters manually from iPXE cmdline it should work.
IP address and gateway still can be obtained via DHCP.
> Is there a howto anywhere on PXE booting a HVM from within Qubes-OS?
> Google does not come up with much when searching for qubes and PXE.
> PXE is not mentioned on
qubes-os.org at all.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
iPXE lets me bootup from
http://boot.ipxe.org/boot/demo.php (which is an #!ipxe script) over the internet that boots a small version of Linux. Still having no luck with traditional tftp boot as i cannot get dhcp to work from within the HVM. Have to set IP configuration manually, but it still does not work. The iPXE website documents how to put network bootable images on a webserver and iPXE boot via http instead of tftp. Turning off tftp altogether is more secure anyway.
2.) Create a HVM and add the ipxe.iso as a cdrom / harddrive. No firmware flashing required.
3.) Get ready to press CTRL-B to get into the iPXE menu.
4.) Get a network address by _one_ of the following three ways:
A. iPXE> ifconf -c dhcp net0
B. iPXE> config
C. iPXE> ifopen net0
iPXE> set net0/ip <ip assigned in Qubes Manager>
iPXE> set net0/netmask 255.255.255.0
iPXE> set net0/gateway <gateway mentioned in Qubes Manager>
iPXE> set dns <enter dns from Qubes Manager>
6.) You should see it download a bootable image and log you in as root. Not much can be done because it does not have an ethernet interface, but it does show iPXE booting is possible. If anyone knows how to get this to see a usable network interface, i would love to know.