Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm running Xen 4 on a Debian server running Squeeze (stable). I want to connect remotely over ssh using virt-manager or virsh, because I can do that on a Lenny server (oldstable).

Xen is installed correctly, booted, I can do # xm list and see which domU are booted. Libvirt-bin is installed, and running, with /etc/libvirt/libvirtd.conf changed as following

listen_tls = 0
listen_tcp = 1
tcp_port = "8000"
listen_addr = "127.0.0.1"

netstat -tpln confirms that libvirtd listens to 127.0.0.1:8000

If i try to connect with virt-manager or virsh I don't have any error, just the connection hangs and never terminates...

Do you have any idea what can be the problem? I have tried on 2 different squeeze servers and never get it working.

thanks.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

I found the solution here Unable to connect Xend with virt-manager: I need to enable xend-unix-server in /etc/xen/xend-config.sxp

(xend-unix-server yes)

I add this to my original question (instead of deleting it) in case someone needs it.

share|improve this answer

For me the trouble was not having

libvirtd_opts="-dl"

in the config file /etc/default/libvirt-bin.

so the daemon was not listening.

share|improve this answer

For me the trouble was not having

listen_tcp = 1

in the config file

/etc/libvirt/libvirtd.conf

I added this and after I've issued

sudo invoke-rc.d libvirt-bin restart
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.