[libvirt-users] shutdown a windows guest take ages..... (20- 34 minutes here)
Marko Weber | ZBF
weber at zackbummfertig.de
Tue Feb 26 11:05:53 UTC 2013
Hi Peter,
the shutdowns of my windows7 prof, still taking ages...... up to 20-35
minutes !!!
i did what you suggested. i started the machine and watched what
happens via the "resource manager" (the one in the taskmanager).
i could see that day that windows was leeching updates. after a time
this was finished.
i said then "install updates" and the resource manager showed action
for some minutes.
after that all was quite.
shutdown the machine - took again 29 minutes. on the console via iotop
i could see the virtual machine was writing all the time with
10~11mb/sec
for that long time.
i restarted machine. shutdown again, with 25-30 mins
again again again again again............
Then i converted the image (didnt know if i told that before that i use
images for hdd), from RAW to QCOW2
in virt-manager i set the hdd again, virtio - format qcow2 - cache
writethrough - io mode "default"
the raw image was 64 GB, after convert to qcow2 it has 28 GB.
i started first time the machine and wait until the resource manager
told me theres no more action.
i shutdown the machine.
it took again 30-35 mins to shutdown.
BUT! after shutdown the image was not 28 GB , it was 43 GB
restarted the machine, wait for no action and system idling
shutdown = 28 mins
and that value is kept.
i store the image on a raid6.
i use gentoo linux - kernel 3.7.9
app-emulation/qemu 1.2.2-r3
app-emulation/libvirt 1.0.2 -r1
Do you have any ideas? What can cause this long shutdowns?
thanks
marko
Am 2013-02-04 10:38, schrieb Peter Krempa:
> On 02/02/13 18:34, weber at zackbummfertig.de wrote:
>>
>> hi,
>
> Hi Marko,
>>
>> i use libvirt 1.0.2 (-r1 , gentoo linux).
>> when i create a vm with win7 guest, virtio nic, virtio hdd, all is
>> running fine.
>> but when i shutdown the windows guest, it takes somestimes 20-34
>> minutes
>> !!!
>> iotop shows me in the whole time writing with 2,xxmb/sec.
>> is the complete machine "rewritten" to disk?
>>
>> i use disk.images on a raid6, but hey, dd shows me it can writes
>> there
>> with 26mb/sec.
>>
>> any ideas what causes these long shutdown times?
>
> just a quick idea. Wasn't the machine updating? Windows 7 is pulling
> in quite a lot updates during the first few boots and spends ages
> installing them. This would explain the delays and constant disk
> writes.
>
> Please watch the shutdown sequence of the guest to see what it's
> doing at that time. After say 10 start-shutdown cycles the machine
> should be up to date and shut down quickly.
>
>>
>>
>> thanks for any hints,
>>
>> marko
>
>
> Peter
More information about the libvirt-users
mailing list