Hi, i saw a bunch of patches from Anthony adding pxe support to qemu. will that end in xen at some point , or is it already in ? i searched in the archives and also the source but couldn''t find anything .. Sven _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Sven Oehme wrote:> > Hi, > > i saw a bunch of patches from Anthony adding pxe support to qemu. will > that end in xen at some point , or is it already in ? > i searched in the archives and also the source but couldn''t find > anything ..It should be there. The QEMU patches were inspired by Tim''s Xen patches. I''ve seen a few commits that have disabled/enabled Option ROM loading which would prevent the etherboot ROM from getting loaded. Should PXE booting work ATM Tim? Regards, Anthony Liguori> Sven > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
At 13:15 -0600 on 17 Jan (1169039714), Anthony Liguori wrote:> Sven Oehme wrote: > > > >Hi, > > > >i saw a bunch of patches from Anthony adding pxe support to qemu. will > >that end in xen at some point , or is it already in ? > >i searched in the archives and also the source but couldn''t find > >anything .. > > It should be there. The QEMU patches were inspired by Tim''s Xen > patches. I''ve seen a few commits that have disabled/enabled Option ROM > loading which would prevent the etherboot ROM from getting loaded. > > Should PXE booting work ATM Tim?Works for me in -unstable. Give the guest a vif, and choose boot=n. Cheers, Tim. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi Tim, that''s my config : name = "fc7-pxe" memory = "256" disk = [ ''phy:vg01/fc7-pxe,xvda,w'', ] vif = [ ''mac=66:22:aa:77:aa:89, bridge=xenbr0'', ] vnc=1 uuid = "57caa792-1234-773c-69a3-f1e0269d8618" on_reboot = ''restart'' on_crash = ''restart'' boot=''n'' when i start it : xm create /etc/xen/fc7-pxe -c Using config file "/etc/xen/fc7-pxe". Error: No kernel specified so what am i doing wrong ? i am using xen-unstable from yesterday thanks. Sven xen-devel-bounces@lists.xensource.com wrote on 01/18/2007 10:01:44 AM:> At 13:15 -0600 on 17 Jan (1169039714), Anthony Liguori wrote: > > Sven Oehme wrote: > > > > > >Hi, > > > > > >i saw a bunch of patches from Anthony adding pxe support to qemu.will> > >that end in xen at some point , or is it already in ? > > >i searched in the archives and also the source but couldn''t find > > >anything .. > > > > It should be there. The QEMU patches were inspired by Tim''s Xen > > patches. I''ve seen a few commits that have disabled/enabled OptionROM> > loading which would prevent the etherboot ROM from getting loaded. > > > > Should PXE booting work ATM Tim? > > Works for me in -unstable. Give the guest a vif, and choose boot=n. > > Cheers, > > Tim. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
At 10:22 +0100 on 18 Jan (1169115756), Sven Oehme wrote:> name = "fc7-pxe" > memory = "256" > disk = [ ''phy:vg01/fc7-pxe,xvda,w'', ] > vif = [ ''mac=66:22:aa:77:aa:89, bridge=xenbr0'', ] > vnc=1 > uuid = "57caa792-1234-773c-69a3-f1e0269d8618" > on_reboot = ''restart'' > on_crash = ''restart'' > boot=''n'' > > when i start it : > > xm create /etc/xen/fc7-pxe -c > Using config file "/etc/xen/fc7-pxe". > Error: No kernel specified > > so what am i doing wrong ? > i am using xen-unstable from yesterdayThe guest needs to be a HVM guest -- look at /etc/xen/xmexample.hvm. Off the top of my head, you are missing these two lines: builder = ''hvm'' kernel = ''/usr/lib/xen/boot/hvmloader'' Cheers, Tim. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
ok, that explains why it is not working with my PV guest. are there plans to add this function to PV guests as well , i think here is the most value ... and by the way where i need it :-) Sven Oehme Tim Deegan <Tim.Deegan@xensource.com> 01/18/07 10:35 AM To Sven Oehme/Germany/IBM@IBMDE cc Tim Deegan <Tim.Deegan@xensource.com>, Anthony Liguori <aliguori@linux.vnet.ibm.com>, xen-devel@lists.xensource.com Subject Re: [Xen-devel] pxe support At 10:22 +0100 on 18 Jan (1169115756), Sven Oehme wrote:> name = "fc7-pxe" > memory = "256" > disk = [ ''phy:vg01/fc7-pxe,xvda,w'', ] > vif = [ ''mac=66:22:aa:77:aa:89, bridge=xenbr0'', ] > vnc=1 > uuid = "57caa792-1234-773c-69a3-f1e0269d8618" > on_reboot = ''restart'' > on_crash = ''restart'' > boot=''n'' > > when i start it : > > xm create /etc/xen/fc7-pxe -c > Using config file "/etc/xen/fc7-pxe". > Error: No kernel specified > > so what am i doing wrong ? > i am using xen-unstable from yesterdayThe guest needs to be a HVM guest -- look at /etc/xen/xmexample.hvm. Off the top of my head, you are missing these two lines: builder = ''hvm'' kernel = ''/usr/lib/xen/boot/hvmloader'' Cheers, Tim. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
At 10:38 +0100 on 18 Jan (1169116728), Sven Oehme wrote:> ok, that explains why it is not working with my PV guest. > are there plans to add this function to PV guests as wellI don''t know if anyone is working on it. It shouldn''t be too hard to put together some DHCP and TFTP clients to fake it out. Jacob Gorm Hansen''s got a project to do some in-domain bootloading for PV guests, which might do what you need: http://lists.xensource.com/archives/html/xen-devel/2007-01/msg00134.html Cheers, Tim. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
thanks for the info, i will have a look at least from the posting it looks like what i am looking for .. Sven Tim Deegan <Tim.Deegan@xensource.com> 01/18/07 11:01 AM To Sven Oehme/Germany/IBM@IBMDE cc Anthony Liguori <aliguori@linux.vnet.ibm.com>, xen-devel@lists.xensource.com Subject Re: [Xen-devel] pxe support At 10:38 +0100 on 18 Jan (1169116728), Sven Oehme wrote:> ok, that explains why it is not working with my PV guest. > are there plans to add this function to PV guests as wellI don''t know if anyone is working on it. It shouldn''t be too hard to put together some DHCP and TFTP clients to fake it out. Jacob Gorm Hansen''s got a project to do some in-domain bootloading for PV guests, which might do what you need: http://lists.xensource.com/archives/html/xen-devel/2007-01/msg00134.html Cheers, Tim. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Thursday 18 January 2007 10:01, Tim Deegan wrote:> At 13:15 -0600 on 17 Jan (1169039714), Anthony Liguori wrote: > > Sven Oehme wrote: > > >Hi, > > > > > >i saw a bunch of patches from Anthony adding pxe support to qemu. will > > >that end in xen at some point , or is it already in ? > > >i searched in the archives and also the source but couldn''t find > > >anything .. > > > > It should be there. The QEMU patches were inspired by Tim''s Xen > > patches. I''ve seen a few commits that have disabled/enabled Option ROM > > loading which would prevent the etherboot ROM from getting loaded. > > > > Should PXE booting work ATM Tim? > > Works for me in -unstable. Give the guest a vif, and choose boot=n.There''s no explicit PXE support needed in Xen. All what you need is a bootmanager, which passes a multiboot header to Xen. That''s all. PXE bootmanagers which support multiboot are PXELinux and PXEGrub (I''m aware of these two. I don''t know if there are more.). Both work fine for me. I use them regularly for development/testing. It makes more fun to build a kernel and boot it from network. It saves me a double reboot. Christoph _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
maybe i explain a bit more what i try to do, may be you are right and all this exists ... i want to configure _somewhere_ in a central repository all information''s for all my domU''s using the mac as reference, so my domU will look like this : name = "rhel4-1" memory = "256" vif = [ ''type=ioemu, mac=00:16:3e:20:2b:7d, bridge=xenbr0'', ] in my "central repository" what ever that will be i want to specify the following : ip = "192.168.0.230" netmask = "255.255.255.0" gateway = "192.168.0.1" hostname = "rhel4-1" root = "/dev/nfs" nfs_server = "192.168.0.1" nfs_root = "/nfsroots/rhel4-1" now i have a bunch of dom0 systems that boot up and run various xm creates each domU should now make a "broadcast" in the net and based on the mac it gets all the infos i stored in the repository and boots up the system over nfs. i don''t want to story _anything_ on the dom0 as i want to boot them as well over pxe, cd or from usb and the domU config files this node will start are created at boot time with a shell script based on some info''s the dom0 retrieves at boot time. Sven Xen-devel-bounces@lists.xensource.com wrote on 01/18/2007 11:45:03 AM:> On Thursday 18 January 2007 10:01, Tim Deegan wrote: > > At 13:15 -0600 on 17 Jan (1169039714), Anthony Liguori wrote: > > > Sven Oehme wrote: > > > >Hi, > > > > > > > >i saw a bunch of patches from Anthony adding pxe support to qemu.will> > > >that end in xen at some point , or is it already in ? > > > >i searched in the archives and also the source but couldn''t find > > > >anything .. > > > > > > It should be there. The QEMU patches were inspired by Tim''s Xen > > > patches. I''ve seen a few commits that have disabled/enabled OptionROM> > > loading which would prevent the etherboot ROM from getting loaded. > > > > > > Should PXE booting work ATM Tim? > > > > Works for me in -unstable. Give the guest a vif, and choose boot=n. > > There''s no explicit PXE support needed in Xen. All what you need is a > bootmanager, which passes a multiboot header to Xen. That''s all. > > PXE bootmanagers which support multiboot are PXELinux and PXEGrub > (I''m aware of these two. I don''t know if there are more.). > Both work fine for me. I use them regularly for development/testing. > > It makes more fun to build a kernel and boot it from network. It saves > me a double reboot. > > Christoph > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> At 10:38 +0100 on 18 Jan (1169116728), Sven Oehme wrote: > > ok, that explains why it is not working with my PV guest. > > are there plans to add this function to PV guests as well > > I don''t know if anyone is working on it. It shouldn''t be too hard to > put together some DHCP and TFTP clients to fake it out. > Jacob Gorm Hansen''s got a project to do some in-domain bootloading for > PV guests, which might do what you need: >http://lists.xensource.com/archives/html/xen-devel/2007-01/msg00134.html There''s also Gerd''s domU kexec work. I''d really like to see domU PV PXE boot support to complement the HVM support. The easiest way might just be to hack something together in dom0, though. ''tftpc'' can be used to fetch the kernels. The easiest dhcp client to use is probably udhcp. I''d probably hack it to take a MAC address on the command line, and then exit after getting a response (or timing out). We should be able to run udhcp against the guests''s vif, or possibly the bridge its connected to. It would be excellent if someone could work on this and try and get a patch into 3.0.5. Thanks, Ian _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> There''s also Gerd''s domU kexec work.Kind of "on hold" right now due to being sidetracked with 32-on-64 stuff, hope I can come back to this soon. Should be easy to get pxe work I think. The mini bootloader already can bring up the interface using dhcp, it doesn''t do anything useful with it yet though, I did this more for network device handover testing. Fetching a kernel using tftpc is easy to add. cheers, Gerd _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Pratt wrote:> There''s also Gerd''s domU kexec work.If you want to have something to play with: http://www.suse.de/~kraxel/kexec/README.vmlinuz-xen-kboot http://www.suse.de/~kraxel/kexec/vmlinuz-xen-kboot.32 [ the pae/64 kernels are not updated yet and can boot from the virtual disk only ] Put this into the xen config file: kernel="/path/to/vmlinuz-xen-kboot.32" extra="kernel=tftp:vmlinuz-xen" extra="kernel=http://host/path/file" works too. cheers, Gerd _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
i have a pae system, so have to wait until you updated them :-) Sven Gerd Hoffmann <kraxel@novell.com> 01/24/07 04:53 PM To Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk> cc Tim Deegan <Tim.Deegan@xensource.com>, Sven Oehme/Germany/IBM@IBMDE, Anthony Liguori <aliguori@linux.vnet.ibm.com>, xen-devel@lists.xensource.com, ian.pratt@cl.cam.ac.uk Subject Re: [Xen-devel] pxe support Ian Pratt wrote:> There''s also Gerd''s domU kexec work.If you want to have something to play with: http://www.suse.de/~kraxel/kexec/README.vmlinuz-xen-kboot http://www.suse.de/~kraxel/kexec/vmlinuz-xen-kboot.32 [ the pae/64 kernels are not updated yet and can boot from the virtual disk only ] Put this into the xen config file: kernel="/path/to/vmlinuz-xen-kboot.32" extra="kernel=tftp:vmlinuz-xen" extra="kernel=http://host/path/file" works too. cheers, Gerd _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel