Adam Carheden
2006-Feb-21 21:19 UTC
[Xen-users] Xend silently logs "Connection Refused" or "No such file or directory"
I''ve got two machines that I though were identical that are having two versions of the same problem. When I start xend, it logs "111, ''Connection Refused''" on one system and "2, ''No such file or direcotry''" on the other. Both systems show the exact same stack trace in xend.log, as show below, except for the last line (RuntimeError), which differ as explained above. I''m using xen-8885 on Gentoo Linux. I''ve also tried Xen 3.0.1. I have the same package/version running on two other machines without issue. If anyone has seen this or has ideas, please reply. Thanks hostname ~ # xend start hostname ~ # cat /var/log/xend-debug.log Exception starting xend: (111, ''Connection refused'') hostname ~ # cat /var/log/xend.log [2006-02-21 13:42:14 xend] INFO (SrvDaemon:278) Xend Daemon started [2006-02-21 13:42:14 xend] INFO (SrvDaemon:282) Xend changeset: unavailable . [2006-02-21 13:42:14 xend] ERROR (SrvDaemon:292) Exception starting xend ((111, ''Connection refused'')) Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 286, in run servers = SrvServer.create() File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvServer.py", line 106, in create root.putChild(''xend'', SrvRoot()) File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvRoot.py", line 40, in __init__ self.get(name) File "/usr/lib/python2.3/site-packages/xen/web/SrvDir.py", line 82, in get val = val.getobj() File "/usr/lib/python2.3/site-packages/xen/web/SrvDir.py", line 52, in getobj self.obj = klassobj() File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDomainDir.py", line 39, in __init__ self.xd = XendDomain.instance() File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 550, in instance inst.init() File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 70, in init xstransact.Mkdir(VMROOT) File "/usr/lib/python2.3/site-packages/xen/xend/xenstore/xstransact.py", line 317, in Mkdir complete(path, lambda t: t.mkdir(*args)) File "/usr/lib/python2.3/site-packages/xen/xend/xenstore/xstransact.py", line 323, in complete t = xstransact(path) File "/usr/lib/python2.3/site-packages/xen/xend/xenstore/xstransact.py", line 20, in __init__ self.transaction = xshandle().transaction_start() File "/usr/lib/python2.3/site-packages/xen/xend/xenstore/xsutil.py", line 18, in xshandle xs_handle = xen.lowlevel.xs.xs() RuntimeError: (111, ''Connection refused'') _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tom Marshall
2006-Feb-21 21:42 UTC
Re: [Xen-users] Xend silently logs "Connection Refused" or "No such file or directory"
On Tue, Feb 21, 2006 at 02:19:42PM -0700, Adam Carheden wrote:> I''ve got two machines that I though were identical that are having two > versions of the same problem. When I start xend, it logs "111, > ''Connection Refused''" on one system and "2, ''No such file or direcotry''" > on the other. Both systems show the exact same stack trace in xend.log, > as show below, except for the last line (RuntimeError), which differ as > explained above. > > I''m using xen-8885 on Gentoo Linux. I''ve also tried Xen 3.0.1. I have > the same package/version running on two other machines without issue. > > If anyone has seen this or has ideas, please reply.I''ve run into a similar problem when trying to mix and match Xen 3.0.1 tools with the tip kernel (which, in retrospect, was obviously a bad idea). In my case, xenstore 3.0.1 fails to start when it cannot find /proc/xen/xsd_mfn. You might try strace to find out if this is your problem: strace -f /etc/init.d/xend start >& out grep xsd_mfn out In case anyone is interested, I''m trying to port the the Ubuntu Dapper kernel to Xen. I can see two options: (1) revert the kernel back to 3.0.1 compatibility, or (2) update the tools to tip. Both seem to be nontrivial. I''m currently attempting the former because Dapper uses 2.6.15 as a base, but I have a feeling that the latter may prove a better course. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> In case anyone is interested, I''m trying to port the the Ubuntu Dapper > kernel to Xen. I can see two options: (1) revert the kernel back to 3.0.1 > compatibility, or (2) update the tools to tip. Both seem to be nontrivial. > I''m currently attempting the former because Dapper uses 2.6.15 as a base, > but I have a feeling that the latter may prove a better course.Just a quick update (sorry for the spam, I''m hoping at least a couple folks are interested in Xen 3.x on Dapper...) I got kernel 2.6.15 up and running on Dapper using version 16045 (16045:7b8ab50c2b04) with the Xen 3.0.1 tools. I''m not really familiar with driving Mercurial, nor the Xen history. So I would like to ask if this is a good version to start with, or whether a later version (compatible with 3.0.1 and based on 2.6.15 if possible) would be a better starting point. I''ll be trying to merge this with the Dapper changes. If there is any interest in this project, I can send out another message with a link to my merged code when I''m done. If not, please accept my apologies for the interruption. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Just a quick update (sorry for the spam, I''m hoping at least a couple folks > are interested in Xen 3.x on Dapper...)I did get a few positive responses so I hope it''s okay to continue this thread here. If not, I can move it to ubuntu-users.> I''ll be trying to merge this with the Dapper changes.The Dapper changes merged with changeset 16045 pretty well. My first shot is here: http://home.tig-grr.com/dapper-vs-xen16045.diff.gz Note this is a temporary link. If the project takes off, I''ll probably create my own repository (unless I can talk someone into merging it into the Ubuntu sources...) To play along at home, clone the Xen linux-2.6-xen.hg repository and revert it to changeset 16045 (hg update -m -C 16045) and then apply the patch. A couple of notes: This code seems to boot and run on my Centrino laptop fine, and I can start a domU machine. But BEWARE: xenstored OOPSes the kernel on shutdown in the kernel function zap_pte_range. The only major hitch was the SMP alternative code, which seems to have been pulled in by both Xen and Ubuntu using similar but incompatible versions of the patch. I''ve decided to use the Ubuntu version for now but I don''t think it makes much difference either way. I''ve only compiled the i386 platform. The x86-64 platform is sure to have the same issues that I had to fix for i386. I''ve made no attempt (yet) to fix or port any of the out-of-tree Ubuntu drivers, as I don''t use them on my current machine. Oh, and ... huge thanks to the Xen team. What a wonderful tool! -- "...if the church put in half the time on covetousness that it does on lust, this would be a better world." -- Garrison Keillor, "Lake Wobegon Days" _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 23/02/06, Tom Marshall <tommy@home.tig-grr.com> wrote:> > Just a quick update (sorry for the spam, I''m hoping at least a couple folks > > are interested in Xen 3.x on Dapper...) > > I did get a few positive responses so I hope it''s okay to continue this > thread here. If not, I can move it to ubuntu-users. >Personally I run host0 on straight debian. I''d be interesting though if someone has done some work already and what packages can be remove from a full Dapper install for a functional domU desktop. -- Nicholas Lee http://stateless.geek.nz gpg 8072 4F86 EDCD 4FC1 18EF 5BDD 07B0 9597 6D58 D70C _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Feb 23, 2006 at 01:29:30PM +1300, Nicholas Lee wrote:> On 23/02/06, Tom Marshall <tommy@home.tig-grr.com> wrote: > > > Just a quick update (sorry for the spam, I''m hoping at least a couple folks > > > are interested in Xen 3.x on Dapper...) > > > > I did get a few positive responses so I hope it''s okay to continue this > > thread here. If not, I can move it to ubuntu-users. > > > > Personally I run host0 on straight debian. I''d be interesting though > if someone has done some work already and what packages can be remove > from a full Dapper install for a functional domU desktop.Well, Dapper seems to be functional with the Xenified 2.6.16-rc kernel. I don''t know what changes have been added to the 2.6.15 kernel by the Ubuntu team or how their absence would affect functionality. Give it a shot, it''ll probably work. I''ve been under the assumption that most of the changes were either new or updated drivers or handpicked bugfixes from later kernel versions, which would seem to mainly affect dom0 for most folks. It''s always possible that there is some extra desktop related functionality but I don''t know for sure because I don''t use Gnome. [So why do I run Ubuntu? Well, mostly because I have Ubuntu on my wife''s computer and my mother''s computer, so it''s more consistent to have everything running one distro. Since installing it, I''ve become quite fond of it for other little things.] -- It is by the fortune of God that, in this country, we have three benefits: freedom of speech, freedom of thought, and the wisdom never to use either. -- Mark Twain _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Anthony Liguori
2006-Feb-23 15:39 UTC
[Xen-devel] Re: [Xen-users] Xen 3.0 on Ubuntu Dapper
(Moving to xen-devel) Tom Marshall wrote:>> In case anyone is interested, I''m trying to port the the Ubuntu Dapper >> kernel to Xen. I can see two options: (1) revert the kernel back to 3.0.1 >> compatibility, or (2) update the tools to tip. Both seem to be nontrivial. >> I''m currently attempting the former because Dapper uses 2.6.15 as a base, >> but I have a feeling that the latter may prove a better course. >> > > Just a quick update (sorry for the spam, I''m hoping at least a couple folks > are interested in Xen 3.x on Dapper...) > > I got kernel 2.6.15 up and running on Dapper using version 16045 > (16045:7b8ab50c2b04) with the Xen 3.0.1 tools. I''m not really familiar with > driving Mercurial, nor the Xen history. So I would like to ask if this is a > good version to start with, or whether a later version (compatible with > 3.0.1 and based on 2.6.15 if possible) would be a better starting point. >Which tree did you base this on? 16045 is a local version number (only has meaning in your repository). 7b8ab50c2b04 doesn''t appear to be in -unstable. In general, if you''re building a domU kernel, it should be safe to use older changesets. If you''re building a dom0 kernel, you really want to use a set of tools that is matched with the dom0 kernel. I don''t think there have been any huge changes in the tools so I think it would be fine to pull the tools from the same snapshot that you took 2.6.15 from (which I assume is around 8740:3d7ea7972b39).> I''ll be trying to merge this with the Dapper changes. If there is any > interest in this project, I can send out another message with a link to my > merged code when I''m done. If not, please accept my apologies for the > interruption. >I tried running -unstable on Dapper a couple of weeks ago and Xend wouldn''t start. I only run Dapper on my laptop so I haven''t investigated much further. Have you had any problems with Xend? Regards, Anthony Liguori> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tom Marshall
2006-Feb-23 17:55 UTC
Re: [Xen-devel] Re: [Xen-users] Xen 3.0 on Ubuntu Dapper
> >I got kernel 2.6.15 up and running on Dapper using version 16045 > >(16045:7b8ab50c2b04) with the Xen 3.0.1 tools. I''m not really familiar > >with driving Mercurial, nor the Xen history. So I would like to ask if > >this is a good version to start with, or whether a later version > >(compatible with 3.0.1 and based on 2.6.15 if possible) would be a better > >starting point. > > Which tree did you base this on? 16045 is a local version number (only > has meaning in your repository). 7b8ab50c2b04 doesn''t appear to be in > -unstable.I used this tree: http://xenbits.xensource.com/linux-2.6-xen.hg Perhaps I should be using unstable, I don''t know. I would appreciate recommendations. My current goal (and I appreciate any input on this also) is to use Xen 3.0 hypervisor and tools with the Dapperized 2.6.15 kernel. The alternative is to go with Xen unstable (3.1?) but that makes me a bit nervous since I don''t know how far along 3.1 is (that is, how unstable is it in practice and when is it expected to be released). Either way, the issue of which way to merge arises: is it better to merge the Xen 2.6.16 changes back to the Dapper 2.6.15 kernel or merge the Dapper changes forward to the Xen 2.6.16 kernel? This is probably the single most important issue. I''ve been thinking that the former is a better strategy, mostly because the Xen changes seem to be relatively small an inobtrusive compared to the Dapper changes. Since I wrote this message, I realized that I probably did the initial diff backwards -- I posted the Dapper diff to an old Mercurial snap when I really srhould be posting a Xen diff to the current Dapper git tree.> In general, if you''re building a domU kernel, it should be safe to use > older changesets. If you''re building a dom0 kernel, you really want to > use a set of tools that is matched with the dom0 kernel. I don''t think > there have been any huge changes in the tools so I think it would be > fine to pull the tools from the same snapshot that you took 2.6.15 from > (which I assume is around 8740:3d7ea7972b39).I''m building a dom0 kernel.> I tried running -unstable on Dapper a couple of weeks ago and Xend > wouldn''t start. I only run Dapper on my laptop so I haven''t > investigated much further. Have you had any problems with Xend?I have had some minor issues with Xend but mostly are n00b related. For example, I had to figure out that "xm create" won''t autoload the loop module. But then again, I''m using Xend 3.0.1, not unstable. -- In Seattle, Washington, it is illegal to carry a concealed weapon that is over six feet in length. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Anthony Liguori
2006-Feb-23 19:10 UTC
Re: [Xen-devel] Re: [Xen-users] Xen 3.0 on Ubuntu Dapper
Tom Marshall wrote:> I used this tree: > > http://xenbits.xensource.com/linux-2.6-xen.hg > > Perhaps I should be using unstable, I don''t know. I would appreciate > recommendations. My current goal (and I appreciate any input on this also) > is to use Xen 3.0 hypervisor and tools with the Dapperized 2.6.15 kernel. >The way the release process works is that unstable becomes releases (hopefully in a time frame of 4-6 weeks). There was a point in unstable (the change set I previously mentioned) where the kernel was at 2.6.15. Starting from that would probably be a good way to go.>> I tried running -unstable on Dapper a couple of weeks ago and Xend >> wouldn''t start. I only run Dapper on my laptop so I haven''t >> investigated much further. Have you had any problems with Xend? >> > > I have had some minor issues with Xend but mostly are n00b related. For > example, I had to figure out that "xm create" won''t autoload the loop > module. But then again, I''m using Xend 3.0.1, not unstable. >Ah, it probably was just my system then :-) Regards, Anthony Liguori _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel