[virt-tools-list] virt-install not rebooting guest after install
Micheal Waltz
mwaltz at qualcomm.com
Wed Nov 30 18:38:45 UTC 2011
On 11/29/2011 08:06 AM, Cole Robinson wrote:
> On 11/28/2011 05:44 PM, Daniel P. Berrange wrote:
>> On Mon, Nov 28, 2011 at 02:41:45PM -0800, Micheal Waltz wrote:
>>> On 11/28/2011 01:36 PM, Daniel P. Berrange wrote:
>>>> All you would have to do is watch to see
>>>> when the guest has shutdown, and then virsh start it again. Thus
>>>> you could parallelize things fairly easily.
>>>
>>> I was able to use --wait=-1 in combination with subshells to have
>>> the install reboot successfully. This was hit-and-miss though where
>>> some domains would work and others would give the error:
>>>
>>> ERROR cannot send monitor command '{"execute":"query-balloon"}':
>>> Connection reset by peer
>>
>> FWIW, that error messages shows that QEMU has crashed / abnormally
>> terminated the libvirt monitor command. If you're lucky you can
>> find further info in /var/log/libvirt/qemu/$GUEST.log which might
>> indicate what the problem was. Otherwise you'd need to try and
>> capture a coredump to debug it further.
>>
>
> Actually I think this is just a race. The guest is shutting down but a
> part of virt-install is calling dominfo(), which is trying to talk to
> the qemu monitor, and errors when the domain is finally stopped. Since
> Michael was probably running multiple parallel installs, the host was
> loaded which probably makes seeing this issue more likely.
>
Red Hat has stated that this should be fixed in libvirt-0.8.7-18.el6_1.3
and looking at the change log it it's probably Bug 747358
(https://bugzilla.redhat.com/show_bug.cgi?id=747358).
I've updated our packages and will see if it fixes this issue.
> - Cole
--
Micheal Waltz
Unix Configuration Management
Qualcomm Inc.
Phone: 858-845-6083
Cell: 858-882-7079
More information about the virt-tools-list
mailing list