Hello, I''m trying to get FreeBSD to run under Xen. I''ve compiled Xen 3.0.3 from sources. I first compiled it with a simple ''make world'' and got linux to work both as dom0 and as well as a domU. Now, I''m trying to get FreeBSD. I followed the tutorial at: http://www.yuanjue.net/xen/howto.html but get the follwing error when booting FreeBSD: Error: (22, ''Invalid argument'')>From what I understand this is due to the FreeBSD kernel beingcompiled with PAE while my Xen isn''t. So I re-compiled Xen with XEN_TARGET_X86_PAE=y but now my linux dom0 won''t boot anymore... So, what I''m looking for is either: 1) a way to build my dom0 kernel with PAE enabled; or 2) a way to run FreeBSD using a non-PAE Xen Thanks! Albert _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Dec 08, 2006 at 02:44:33PM -0500, Albert Bachand wrote:> Hello, > > I''m trying to get FreeBSD to run under Xen. I''ve compiled Xen 3.0.3 > from sources. I first compiled it with a simple ''make world'' and got > linux to work both as dom0 and as well as a domU. Now, I''m trying to > get FreeBSD. I followed the tutorial at: > http://www.yuanjue.net/xen/howto.html but get the follwing error when > booting FreeBSD: > > Error: (22, ''Invalid argument'') > > >From what I understand this is due to the FreeBSD kernel being > compiled with PAE while my Xen isn''t. So I re-compiled Xen with > XEN_TARGET_X86_PAE=y but now my linux dom0 won''t boot anymore...You need to re-comple the hypervisor too. The HyperVisor, Dom0 and DomU must all have exactly same PAE settings or bad stuff happens. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 12/8/06, Daniel P. Berrange <berrange@redhat.com> wrote:> On Fri, Dec 08, 2006 at 02:44:33PM -0500, Albert Bachand wrote: > > Hello, > > > > I''m trying to get FreeBSD to run under Xen. I''ve compiled Xen 3.0.3 > > from sources. I first compiled it with a simple ''make world'' and got > > linux to work both as dom0 and as well as a domU. Now, I''m trying to > > get FreeBSD. I followed the tutorial at: > > http://www.yuanjue.net/xen/howto.html but get the follwing error when > > booting FreeBSD: > > > > Error: (22, ''Invalid argument'') > > > > >From what I understand this is due to the FreeBSD kernel being > > compiled with PAE while my Xen isn''t. So I re-compiled Xen with > > XEN_TARGET_X86_PAE=y but now my linux dom0 won''t boot anymore... > > You need to re-comple the hypervisor too. The HyperVisor, Dom0 and DomU > must all have exactly same PAE settings or bad stuff happens. >Doesn''t ''make world'' build the HyperVisor as well? Also, does that error really mean that I need PAE? Is there a way to run FreeBSD without PAE? Thanks! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I believe there were also xen changes between 3.0.2 and 3.0.3 that will cause a FreeBSD XenU setup for 3.0.2 to not run under 3.0.3.. I don''t believe it has been fixed in perforce yet, but I am not sure as I haven''t really spent much time on it in the last couple months. The same problem has been fixed in NetBSD. (just something to check; your first task is to make everything (xen0, xenU and hypervisor) match the same PAE status; until that happens, nothing else will work.) On Fri, 8 Dec 2006, Albert Bachand wrote:> Hello, > > I''m trying to get FreeBSD to run under Xen. I''ve compiled Xen 3.0.3 > from sources. I first compiled it with a simple ''make world'' and got > linux to work both as dom0 and as well as a domU. Now, I''m trying to > get FreeBSD. I followed the tutorial at: > http://www.yuanjue.net/xen/howto.html but get the follwing error when > booting FreeBSD: > > Error: (22, ''Invalid argument'') > >> From what I understand this is due to the FreeBSD kernel being > compiled with PAE while my Xen isn''t. So I re-compiled Xen with > XEN_TARGET_X86_PAE=y but now my linux dom0 won''t boot anymore... > > So, what I''m looking for is either: > 1) a way to build my dom0 kernel with PAE enabled; or > 2) a way to run FreeBSD using a non-PAE Xen > > Thanks! > > Albert > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > !DSPAM:4579c09221681829322196! > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, 8 Dec 2006, Albert Bachand wrote:> Doesn''t ''make world'' build the HyperVisor as well? > Also, does that error really mean that I need PAE? Is there a way to > run FreeBSD without PAE?Yes, FreeBSD works fine without PAE; just make sure you leave options PAE out of your kernel config. In fact, most freebsd installations I know about don''t use PAE; usually they stick with 4G ram up until they are ready to switch to a 64-bit kernel. Just make sure your hypervisor, dom0 and domU all have the same PAE status. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Albert, On 12/8/06, Albert Bachand <albertb@gmail.com> wrote:> [...] > > Error: (22, ''Invalid argument'') >I have the same problem. Selfish as I am, I try to avoid the whole compiling stuff and ask you first: did you get past this, when using the correct PAE settings in hypervisor and kernel, as descrobed in the thread? Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 12/8/06, Luke Crawford <lsc@prgmr.com> wrote:> > I believe there were also xen changes between 3.0.2 and 3.0.3 that will > cause a FreeBSD XenU setup for 3.0.2 to not run under 3.0.3.. I don''t > believe it has been fixed in perforce yet, but I am not sure as I haven''t > really spent much time on it in the last couple months.Does that mean it''s very unlikely to get FreeBSD installed with the images provided by yuan ye? I searched the frreeBSD ftp server but cpuldn''t find other ones. Does this mean, I need to install a freebsd system and build such a kernel myself if I want to install a freebsd domU? Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, 15 Dec 2006, Henning Sprang wrote:> On 12/8/06, Luke Crawford <lsc@prgmr.com> wrote: >> >> I believe there were also xen changes between 3.0.2 and 3.0.3 that will >> cause a FreeBSD XenU setup for 3.0.2 to not run under 3.0.3.. I don''t >> believe it has been fixed in perforce yet, but I am not sure as I haven''t >> really spent much time on it in the last couple months. > > Does that mean it''s very unlikely to get FreeBSD installed with the > images provided by yuan ye?Try with a 3.0.2 xen kernel; I haven''t tried Yuan''s stuff... here is a kernel I hacked together from Kip Macy''s perforce sources and a version of -current from a couple months ago- it works on a xen 3.0.2 host (with a linux dom0) non-PAE. http://prgmr.com/~lsc/xen3_domU It seems to mostly work okay; (I don''t have the install target; you can install using qemu, then use this kernel)> I searched the frreeBSD ftp server but cpuldn''t find other ones. Does > this mean, I need to install a freebsd system and build such a kernel > myself if I want to install a freebsd domU?pretty much. as far as I can tell the src isn''t integrated w/ mainline current, either- you have to talk someone into giving you access to the FreeBSD perforce (I can''t give you access to perforce, but I can get you a tarball if you are impatient and everyone else is busy- I have read-access) then you need to hack that into a reasonably current -current. (the perforce changelog is here: http://perforce.freebsd.org/changeList.cgi?CMD=changes&FSPC=//depot/projects/xen3/... you can view the changelog, but to actually get the code, you need access; I''ve got read-access) I would be willing to dedicate this weekend to the project; I''m good for the practical bits of getting source from here and there and banging on it until it compiles, and I''ve got test boxes and access to all the code and stuff; if someone else wants to help me with figuring out the 3.0.2 -> 3.0.3 breakage- that''s a little above my current level- I would be happy to do all the work of setting things up and obtaining sources from various places and banging on it until it works, though. If we could get it basically running again, I bet we could talk people into getting at least DomU support integrated with -current proper; I''d be willing to do some leg work there. I''ve got all sorts of people wanting even alpha-quality FreeBSD domUs. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users