Your message dated Sat, 19 Aug 2023 17:08:37 +0200
with message-id <ZODa9VOdcacwY025@meyneth>
and subject line Re: Bug#1042904: SOLVED: Acknowledgement (libvirt-clients:
fail to start VM 'file' driver requires '/dev/vg0/UTM' to be a regular file)
has caused the Debian Bug report #1042904,
regarding libvirt-clients: fail to start VM 'file' driver requires
'/dev/vg0/UTM' to be a regular file
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1042904: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1042904
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libvirt-clients
Version: 9.0.0-4
Severity: grave
Justification: renders package unusable
The xml configuration file was working well on Debian 11. After
upgrading to Bookworm I get this error, VM doesn't start:
virsh # start UTM
erreur :Failed to start domain 'UTM'
erreur :internal error: process exited while connecting to monitor:
2023-08-02T14:13:20.203465Z kvm: -blockdev
{"driver":"file","filename":"/dev/vg0/UTM","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}:
'file' driver requires '/dev/vg0/UTM' to be a regular file
Changing driver file to block give on xml validation:
erreur :XML document failed to validate against schema: Unable to
validate doc against /usr/share/libvirt/schemas/domain.rng
Extra element devices in interleave
Element domain failed to validate content
Attached is the VM xml configuration file. All of our VMs are based on
LVM disk, we can't use anymore VMs from this server !
-- System Information:
Debian Release: 12.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-10-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libvirt-clients depends on:
ii libc6 2.36-9+deb12u1
ii libgcc-s1 12.2.0-14
ii libglib2.0-0 2.74.6-2
ii libgnutls30 3.7.9-2
ii libreadline8 8.2-1.3
ii libvirt0 9.0.0-4
ii libxml2 2.9.14+dfsg-1.3~deb12u1
ii sensible-utils 0.0.17+nmu1
libvirt-clients recommends no packages.
Versions of packages libvirt-clients suggests:
pn libvirt-clients-qemu <none>
ii libvirt-daemon 9.0.0-4
pn libvirt-login-shell <none>
-- no debconf information
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit UTM
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>UTM</name>
<uuid>9dda06a5-689a-4656-9476-145897ede125</uuid>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static'>2</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-4.2'>hvm</type>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu mode='host-model' check='partial'/>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/dev/vg0/UTM'/>
<target dev='hda' bus='ide'/>
<boot order='1'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdb' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'
multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06'
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>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:76:33:10'/>
<source bridge='bone'/>
<target dev='utm-eth0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:79:e9:12'/>
<source bridge='lan'/>
<target dev='utm-eth1'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08'
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>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='spice' autoport='yes' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
<sound model='ich6'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</sound>
<audio id='1' type='none'/>
<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>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='1'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='2'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07'
function='0x0'/>
</memballoon>
</devices>
</domain>
--- End Message ---
--- Begin Message ---
Package: libvirt
Version: 9.0.0-4
On Wed, Aug 02, 2023 at 06:09:27PM +0200, Daniel wrote:
> in xml files not only 'disk type' have to be changed to 'block' but also
> 'source' to 'dev'
Yeah, libvirt/QEMU might have gotten more strict in term of which
configurations they will accept between bullseye and bookworm but it
sounds like disk.type=block and source.dev=/dev/foo was always the
correct combination for using LVM volumes as backing store for VM
disks.
> Can be closed as not a bug
Done, thanks a lot for following up!
--
Andrea Bolognani <e...@kiyuko.org>
Resistance is futile, you will be garbage collected.
signature.asc
Description: PGP signature
--- End Message ---