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: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] virsh -c xen:/// list: = Connection refused
From: Gerry Reno <greno@xxxxxxxxxxx>
Date: Fri, 01 Jan 2010 17:14:51 -0500
Delivery-date: Fri, 01 Jan 2010 14:15:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B3E6100.1090205@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (X11/20070530)
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



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