[libvirt-users] shutdown -r now hangs in qemu-/kvm-vm

Dan Johansson kvm at dmj.nu
Mon Feb 27 20:16:25 UTC 2017


On 27.02.2017 09:57, Han Han wrote:
> Please provide more info about the issue, such as your libvirt/qemu
> version, your host OS version,
> your VM OS version, your VM xml.
> 
> Thanks.
> 
> On Mon, Feb 27, 2017 at 4:12 PM, Dan Johansson <kvm at dmj.nu> wrote:
> 
>> Since updating app-emulation/libvirt and/or app-emulation/qemu (both
>> were updated at the same time) I have a problem executing "shutdown -r
>> now" in the vm ("shutdown -h now" works fine).
>>
>> When I execute "shutdown -r now" in the vm the shutdown process runs
>> perfect until "Remounting root-filesystem readonly" and than it hangs
>> and I have to "Force Power Off" to reboot.
>>
>> Any suggestion what could be wrong and what I can do to solve it?
>>

app-emulation/libvirt-2.5.0-r2
app-emulation/qemu-2.8.0-r3

Host-OS: Gentoo-Linux
VM-OS: Gentoo-Linux, SuSe-Openlinux (and I have noticed it with "Reboot"
in Windows 10 as well).

And one of the VM-xml's:

<domain type='kvm'>
  <name>abcd</name>
  <uuid>25facbd9-41be-0dbd-d473-0bbb0e3a22d7</uuid>
  <title>Abcd - SuSeLinux</title>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/kvm/Abcd/Abcd.qcow2'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='piix3-uhci'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='bridge'>
      <mac address='de:ed:be:ef:04:08'/>
      <source bridge='br4'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5908' autoport='no'>
      <listen type='address'/>
    </graphics>
    <video>
      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
    </memballoon>
  </devices>
</domain>


-- 
Dan Johansson,
***************************************************
This message is printed on 100% recycled electrons!
***************************************************




More information about the libvirt-users mailing list