WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] virsh -c xen:/// list: = Connection refused

To: Gerry Reno <greno@xxxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] virsh -c xen:/// list: = Connection refused
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Sat, 2 Jan 2010 01:12:36 -0800 (PST)
Cc:
Delivery-date: Sat, 02 Jan 2010 01:13:23 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1262423556; bh=+xyAgfLlnoHlqM8MwXDUcXCH7YXlLYQV20+NCUF97sY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=whgMKXFGQctXxBzPBNpSzSzBjVodUz704dfNkIUwnTTCTxaeHtXvfKKx8w2DJbfzUmJjyjf6YxJ/CmtWP0zpAQcMdYQjh+BfqJRujv0FPPZTJOLXQqsNgLmDpoBAXFuAgnyosERHWAJY5b3sa3wL+aBkBAL08o4B595j06ggZRk=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=nwHph4z1sQRHUf/6t30T010U7xhqLJuoi4Bs2jtZvTK3RCE3EnXHUM57NLIjvFYLPKx4C33QAgW1DjN+ZJGm6EW0RpbFDXvGThnH8mJgr3Ki5m92NmwU10vbR0A09UM+0or5lm3u+syNGyiBmENcYcGg777Ean6VQ9VzVNTwwfM=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B3E879A.9020102@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <404036.57203.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <4B3E6100.1090205@xxxxxxxxxxx> <4B3E73DB.3020301@xxxxxxxxxxx> <4B3E879A.9020102@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> VIRSH_DEFAULT_CONNECT_URI="xen:///" seems to do the trick.  Virsh is able to create
 > and shutdown the Xen domain and report stats so everything looks good.

Does it fix virt-install for xen domains installations ?

Boris.


From: Gerry Reno <greno@xxxxxxxxxxx>
To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Sat, January 2, 2010 2:39:06 AM
Subject: Re: [Xen-users] virsh -c xen:/// list: = Connection refused

Gerry Reno wrote:
> Gerry Reno wrote:
>> Boris Derzhavets wrote:
>>> > My base distro on this machine is Ubuntu 9.10 Server.  And I did pretty
>>> > much the same thing for it as you did for F12.  I built debs for Xen
>>> > 3.4.1 and installed them, custom built the JF pv_ops dom0 kernel and
>>> > installed it.  Libvirt was already installed at version 0.7.0 so I
>>> > didn't touch it.  libvirt had worked fine for a few test KVM guests. > But now I want the whole machine dedicated to Xen guests but I'd still
>>> > like to use libvirt to manage the guests.  So how do I get 'virsh' to
>>> > default to the xen:/// hypervisor and also how do I get it to connect to
>>> > it?  There's nothing running on port 8000.  So this is a mystery.
>>>
>>> No mystery. Libvirt Xen driver was broken already on Ubuntu 8.04 ( Hardy Heron) Server
>>> and never fixed afterwards.
>>>
>>> Boris.
>>> P.S. View Ubuntu's Launchpad
>>>
>>>
>>>
>> I checked the ubuntu launchpad but it only lists 6 bugs for 'libvirt xen' search:
>> https://bugs.launchpad.net/ubuntu/+bugs?field.searchtext=libvirt+xen&orderby=-importance&search=Search&field.status%3Alist=NEW&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=FIXCOMMITTED&field.assignee=&field.bug_reporter=&field.omit_dupes=on&field.has_patch=&field.has_no_package=
>>
>> I didn't see any mention of this specific connection error.  Is there another bug somewhere about this problem?
>>
>> -Gerry
> Ok, found a couple things.  xend-http-server was not enabled in /etc/xen/xend-config.sxp.
> So then I try to restart xend and found that no matter what I try to do with xend it just hangs the terminal; start, status, reload all hang.  So this I don't understand.
> # ps -ef | grep -i xen
> root        23    2  0 16:38 ?        00:00:00 [xenwatch]
> root        24    2  0 16:38 ?        00:00:00 [xenbus]
> root      1901    1  0 16:38 ?        00:00:00 xenstored --pid-file /var/run/xenstore.pid
> root      1905    1  0 16:38 ?        00:00:00 /usr/bin/python2.6 /usr/sbin/xend start
> root      1908    1  0 16:38 ?        00:00:00 xenconsoled
> root      1910  1905  0 16:38 ?        00:00:01 /usr/bin/python2.6 /usr/sbin/xend start
>
> It looks like it's running though but you cannot control it with the init.d script.
>
> What I did find is that after enabling the xend-http-server and then rebooting the host that I could connect to the xen hypervisor:
>
> root@grp-01-23-02:~# virsh -c xen:/// list
> Connecting to uri: xen:///
> Id Name                State
> ----------------------------------
>  0 Domain-0            running
>
> root@grp-01-23-02:~# virsh list
> Connecting to uri: qemu:///system
> Id Name                State
> ----------------------------------
>
> qemu/kvm is still the default hypervisor.
>
> So now one last thing I need: how to set xen as the default hypervisor for libvirt.
>
> -Gerry
>
VIRSH_DEFAULT_CONNECT_URI="xen:///" seems to do the trick.  Virsh is able to create and shutdown the Xen domain and report stats so everything looks good.

-Gerry


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users