[SOLVED] Re: Crunched my KVM VM...

Issues related to applications and software problems and general support
Post Reply
pseud
Posts: 12
Joined: 2018/01/27 15:58:42

[SOLVED] Re: Crunched my KVM VM...

Post by pseud » 2019/10/29 12:47:24

Hello, I rather absent mindedly shut down my host with a VM running...
On attempting to boot that VM, it now fails with the error:
"unsupported configuration: only supports passthrough accessmode"
Using my least favourite search engine, that string produced zero results - which seems unusual.

Does anyone know of any possible fixes - or, should I just bin the VM and start again (it's only a weeks work after all...)

Thanks
Morgan
Last edited by pseud on 2019/10/29 13:52:09, edited 1 time in total.

User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Crunched my KVM VM...

Post by TrevorH » 2019/10/29 13:04:19

If you have sufficient space in /var/lib/libvirt/images then a host shutdown with running guests should save them to disk and resume them on reboot. That has always just worked out of the box for me with no changes.

Is this an x86_64 system? I am pretty sure the error is coming because of the cpu information you have given in your guest xml. What is the output from virsh dumpxml $vm ?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

pseud
Posts: 12
Joined: 2018/01/27 15:58:42

[SOLVED] Re: Crunched my KVM VM...

Post by pseud » 2019/10/29 13:47:18

TrevorH wrote:
2019/10/29 13:04:19
If you have sufficient space in /var/lib/libvirt/images then a host shutdown with running guests should save them to disk and resume them on reboot. That has always just worked out of the box for me with no changes
That's what I hoped - loads of space:

Code: Select all

# df
...
/dev/mapper/cl_frontserver-var_lib_libvirt  51396076 2703080  48692996   6% /var/lib/libvirt
TrevorH wrote:
2019/10/29 13:04:19
Is this an x86_64 system?

Code: Select all

# uname -m
x86_64
TrevorH wrote:
2019/10/29 13:04:19
What is the output from virsh dumpxml $vm ?

Code: Select all

# virsh dumpxml VortexBox25
<domain type='kvm'>
  <name>VortexBox25</name>
  <uuid>ad26c3fd-fa86-4a8f-bf4b-19cc7baa8c26</uuid>
  <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://fedoraproject.org/fedora/unknown"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-rhel7.6.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='volume' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source pool='default' volume='VortexBox25-sda'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/disk/by-id/ata-WDC_WD7500AYYS-01RCA0_WD-WCAPT0416563'/>
      <target dev='vdc' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <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'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <filesystem type='mount' accessmode='mapped'>
      <driver type='handle' wrpolicy='immediate'/>
      <source dir='/run/media/kodi/Backup_good/home_Music'/>
      <target dir='/storage/music'/>
      <readonly/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </filesystem>
    <interface type='bridge'>
      <mac address='52:54:00:ba:c9:62'/>
      <source bridge='nm-bridge1'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'>
      <listen type='address'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='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>
    <rng model='virtio'>
      <backend model='random'>/dev/urandom</backend>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </rng>
    <panic model='isa'>
      <address type='isa' iobase='0x505'/>
    </panic>
  </devices>
</domain>
I don't think I changed anything after shutting down the host...
HAH! Fixed it - how nice to talk things through... Obviously I'd made a change to be applied on reboot...
Deleted:

Code: Select all

    <filesystem type='mount' accessmode='mapped'>
      <driver type='handle' wrpolicy='immediate'/>
      <source dir='/run/media/kodi/Backup_good/home_Music'/>
      <target dir='/storage/music'/>
      <readonly/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </filesystem>
Running now.

Post Reply

Return to “CentOS 8 - General Support”