[libvirt-users] can not connect hypervisor using libvirt-0.9.8 on windows

Hi, Eric: I compiled libvirt-0.9.8 source code with the msys environment on windows xp. the compiltion was successed. but when I connect the remote host using virsh.exe, it occured error like: error: Failed to connect to the hypervisor error: Unable to set close-on-exec flag: No such file or directory Is there something wrong? give me some help, thanks! xuanmao_001

On 09/29/2012 01:29 AM, xuanmao_001 wrote:
Hi, Eric:
[no need to single me out; I read the list]
I compiled libvirt-0.9.8 source code with the msys environment on windows xp. the compiltion was successed. but when I connect the remote host using virsh.exe, it occured error like: error: Failed to connect to the hypervisor error: Unable to set close-on-exec flag: No such file or directory
Unfortunately, I'm afraid I've never tried to compile libvirt on msys, so you'll probably have to roll up your sleeves and step through this in gdb to see where things appear to be going wrong.
Is there something wrong? give me some help, thanks!
xuanmao_001
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

2012/9/29 xuanmao_001 <xuanmao_001@163.com>:
Hi, Eric: I compiled libvirt-0.9.8 source code with the msys environment on windows xp. the compiltion was successed. but when I connect the remote host using virsh.exe, it occured error like: error: Failed to connect to the hypervisor error: Unable to set close-on-exec flag: No such file or directory
Is there something wrong? give me some help, thanks!
Can you be more specific here? To what hypervisor did you try to connect? What URI did you use? Why didn't you use the latest libvirt version supported by msys_setup (assuming that you used msys_setup), which is 0.9.11? -- Matthias Bolte http://photron.blogspot.com

Hi: the hypervisor is kvm. the URI: qemu+tcp://root@hostname/system 0.9.11 was also like this error. xuanmao_001 From: Matthias Bolte Date: 2012-10-07 01:02 To: xuanmao_001 CC: Eric Blake; libvirt-users Subject: Re: [libvirt-users] can not connect hypervisor using libvirt-0.9.8 on windows 2012/9/29 xuanmao_001 <xuanmao_001@163.com>:
Hi, Eric: I compiled libvirt-0.9.8 source code with the msys environment on windows xp. the compiltion was successed. but when I connect the remote host using virsh.exe, it occured error like: error: Failed to connect to the hypervisor error: Unable to set close-on-exec flag: No such file or directory
Is there something wrong? give me some help, thanks!
Can you be more specific here? To what hypervisor did you try to connect? What URI did you use? Why didn't you use the latest libvirt version supported by msys_setup (assuming that you used msys_setup), which is 0.9.11? -- Matthias Bolte http://photron.blogspot.com

Okay, I can reproduce the problem even with the latest libvirt release 0.10.2. I just added a workaround the msys_setup repo on github. So you should retry and build the patched version of libvirt 0.10.2. I also proposed the patch here: https://www.redhat.com/archives/libvir-list/2012-October/msg00378.html 2012/10/9 xuanmao_001 <xuanmao_001@163.com>:
Hi: the hypervisor is kvm. the URI: qemu+tcp://root@hostname/system 0.9.11 was also like this error.
________________________________ xuanmao_001
From: Matthias Bolte Date: 2012-10-07 01:02 To: xuanmao_001 CC: Eric Blake; libvirt-users Subject: Re: [libvirt-users] can not connect hypervisor using libvirt-0.9.8 on windows 2012/9/29 xuanmao_001 <xuanmao_001@163.com>:
Hi, Eric: I compiled libvirt-0.9.8 source code with the msys environment on windows xp. the compiltion was successed. but when I connect the remote host using virsh.exe, it occured error like: error: Failed to connect to the hypervisor error: Unable to set close-on-exec flag: No such file or directory
Is there something wrong? give me some help, thanks!
Can you be more specific here?
To what hypervisor did you try to connect?
What URI did you use?
Why didn't you use the latest libvirt version supported by msys_setup (assuming that you used msys_setup), which is 0.9.11?
-- Matthias Bolte http://photron.blogspot.com
-- Matthias Bolte http://photron.blogspot.com
participants (3)
-
Eric Blake
-
Matthias Bolte
-
xuanmao_001