<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I found what it was: there were some incomplete virtual machine configuration files in /etc/xen which I'd generated for testing previously. Because they weren't complete and their IDs weren't attached to any actual VM, they were screwing up any calls to virDomainLookupByName()
. Removing them did the trick.
<div><br>
</div>
<div>Hope this helps somebody.</div>
<div><br>
</div>
<div>Graeme</div>
<div><br>
<div>
<div>On 26 Aug 2008, at 09:42, Graeme West wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Sorry to bump my own thread, but does anyone have any ideas about this?
<div><br>
</div>
<div>I've now tried virtually every combination of options in virt-manager and virt-install, and nothing seems to avoid this error (or let me get beyond the networking screen in virt-manager).</div>
<div><br>
</div>
<div>Has anyone encountered anything like this before?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Graeme</div>
<div><br>
</div>
<div><br>
<div>
<div>On 6 Aug 2008, at 09:41, Graeme West wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi there,
<div>I've been happily installing VMs in CentOS 5.2's Xen implementation using virt-manager. However, my latest attempt to use the install wizard in virt-manager failed when I got to the networking screen. The 'forward' button was unresponsive, and I was unable
to proceed. I checked the virt-manager logs, and saw this appearing immediately after I tried to proceed:</div>
<div><br>
</div>
<div>
<blockquote type="cite" class="">
<div><font class="Apple-style-span" color="#000000">/root/.virt-manager/virt-manager.log:</font></div>
<div><font class="Apple-style-span" color="#000000"><br>
</font></div>
<div><font class="Apple-style-span" color="#000000">[Tue, 05 Aug 2008 16:16:53 virt-manager 20637] ERROR (virt-manager:132) Traceback (most recent call last):</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/share/virt-manager/virtManager/create.py", line 294, in forward</font></div>
<div><font class="Apple-style-span" color="#000000"> if(self.validate(notebook.get_current_page()) != True):</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/share/virt-manager/virtManager/create.py", line 974, in validate</font></div>
<div><font class="Apple-style-span" color="#000000"> vm = self.connection.vmm.lookupByName(name)</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/lib64/python2.4/site-packages/libvirt.py", line 646, in lookupByName</font></div>
<div><font class="Apple-style-span" color="#000000"> if ret is None:raise libvirtError('virDomainLookupByName() failed', conn=self)</font></div>
<div><font class="Apple-style-span" color="#000000">libvirtError: virDomainLookupByName() failed got unknown HTTP error code 400</font></div>
<div><font class="Apple-style-span" color="#000000">None</font></div>
<div><br>
</div>
</blockquote>
<br>
</div>
<div><br>
</div>
<div>There was also a lot of this in the main system log (1-2 messages per second):</div>
<div>
<blockquote type="cite" class=""><font class="Apple-style-span" color="#000000">[Tue, 05 Aug 2008 16:16:53 virt-manager 20637] DEBUG (connection:580) Couldn't fetch domain id 3; it probably went away</font></blockquote>
<br>
</div>
<div>So I tried to use virt-install on the shell instead, but got much the same error:</div>
<div><br>
</div>
<div>
<blockquote type="cite" class="">
<div><font class="Apple-style-span" color="#000000">[root@optimus swadmin]# virt-install --hvm --name=zurich.gcal.ac.uk --ram=2048 --file=/var/lib/xen/images/zurich.gcal.ac.uk.img --vnc --vcpus=2 --cdrom=/home/swadmin/software/OpenSolaris/sol-nv-b93-x86-dvd.iso
--network=bridge:xenbr0</font></div>
<div><font class="Apple-style-span" color="#000000"><br>
</font></div>
<div><font class="Apple-style-span" color="#000000"><br>
</font></div>
<div><font class="Apple-style-span" color="#000000">Starting install...</font></div>
<div><font class="Apple-style-span" color="#000000">virDomainLookupByName() failed got unknown HTTP error code 400</font></div>
<div><font class="Apple-style-span" color="#000000">Domain installation may not have been</font></div>
<div><font class="Apple-style-span" color="#000000"> successful. If it was, you can restart your domain</font></div>
<div><font class="Apple-style-span" color="#000000"> by running 'virsh start zurich.gcal.ac.uk'; otherwise, please</font></div>
<div><font class="Apple-style-span" color="#000000"> restart your installation.</font></div>
<div><font class="Apple-style-span" color="#000000">Tue, 05 Aug 2008 17:30:18 ERROR virDomainLookupByName() failed got unknown HTTP error code 400</font></div>
<div><font class="Apple-style-span" color="#000000">Traceback (most recent call last):</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/bin/virt-install", line 502, in ?</font></div>
<div><font class="Apple-style-span" color="#000000"> main()</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/bin/virt-install", line 462, in main</font></div>
<div><font class="Apple-style-span" color="#000000"> dom = guest.start_install(conscb,progresscb)</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 813, in start_install</font></div>
<div><font class="Apple-style-span" color="#000000"> return self._do_install(consolecb, meter)</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 829, in _do_install</font></div>
<div><font class="Apple-style-span" color="#000000"> self._create_devices(meter)</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 727, in _create_devices</font></div>
<div><font class="Apple-style-span" color="#000000"> nic.setup(self.conn)</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 287, in setup</font></div>
<div><font class="Apple-style-span" color="#000000"> vm = conn.lookupByName(name)</font></div>
<div><font class="Apple-style-span" color="#000000"> File "/usr/lib64/python2.4/site-packages/libvirt.py", line 646, in lookupByName</font></div>
<div><font class="Apple-style-span" color="#000000"> if ret is None:raise libvirtError('virDomainLookupByName() failed', conn=self)</font></div>
<div><font class="Apple-style-span" color="#000000">libvirtError: virDomainLookupByName() failed got unknown HTTP error code 400</font></div>
</blockquote>
<br>
</div>
<div>It suggests I try to start the domain anyway, but it hasn't been created:</div>
<div>
<blockquote type="cite" class="">
<div><font class="Apple-style-span" color="#000000">[root@optimus swadmin]# virsh start zurich.gcal.ac.uk</font></div>
<div><font class="Apple-style-span" color="#000000">libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName</font></div>
<div><font class="Apple-style-span" color="#000000">error: failed to get domain 'zurich.gcal.ac.uk'</font></div>
</blockquote>
<br>
</div>
<div><br>
</div>
<div>Any ideas would be much appreciated.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Graeme West</div>
<br>
</div>
</div>
</div>
<br>
<font face="Arial" color="Gray" size="2">Glasgow Caledonian University is a registered Scottish charity, number SC021474<br>
</font>
<p><font face="Arial" size="2"><a href="http://www.altman.co.uk/emailsystems">Email has been scanned for viruses by Altman Technologies' email management service</a></font></p>
</div>
<span><ATT00001.txt></span></blockquote>
</div>
<br>
</div>
<br>
<font face="Arial" color="Gray" size="2">Glasgow Caledonian University is a registered Scottish charity, number SC021474<br>
</font>
<p><font face="Arial" size="2"><a href="http://www.altman.co.uk/emailsystems">Email has been scanned for viruses by Altman Technologies' email management service</a></font></p>
</div>
<span><ATT00001.txt></span></blockquote>
</div>
<br>
</div>
<br>
<font face="Arial" color="Gray" size="2">Glasgow Caledonian University is a registered Scottish charity, number SC021474<br>
</font>
</body>
</html>