On Sunday, March 30, 2014 at 12:32:01 AM UTC+1, Rob Townley wrote: > > On Sat, Mar 29, 2014 at 10:23 AM, Marek Marczykowski-Górecki < > marm...@invisiblethingslab.com <javascript:>> 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 > <http://boot.ipxe.org/demo/boot.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. > 1.) Download http://boot.ipxe.org/ipxe.iso and copy it to an always > running vm such as netvm. > 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> > > 5.) *chain http://boot.ipxe.org/demo/boot.php > <http://boot.ipxe.org/demo/boot.php>* > 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. > > p.s. i am really happy with how iPXE has organized their website for easy > documentation. Error messages are ipxe.org/ERRORNUM. Commands are > under http://ipxe.org/cmd/ ... > I know this is a very old post, but I have a couple of HVMs that I need to boot over the network to test an automated installation process.
Has anybody successfully done the above on Qubes OS 4.0? I can get the HVM to boot the iPXE.iso and get into iPXEs command line and it sees the net0 interface that XEN provides, but I can not get it to see any other computer on the network. Going through the configuration using possibility C from above I can get ifstat to report the interface being up but no DNS lookup or ping goes anywhere and neither does any chain command. I can't see anything coming into the firewall vm the HVM is connected to. Is there any way for me to debug what is happening in the stubdomain since I suspect that something goes wrong there. Are there any logs I could check? Thanks for any assistance! Frank -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/eef93500-3396-47e8-a577-e1644e6ff728%40googlegroups.com.