Control: tag -1 + unreproducible
25.12.2020 18:20, Marc Haber wrote:
On Sat, Dec 19, 2020 at 06:09:33PM +0300, Michael Tokarev wrote:
Note also this is just a warning, qemu is definitely not giving up, it
just says this way to open a device WILL not work in some future, but it
does work now. And indeed it continues to work fine. So it looks like
you missed something, some real reason for the domain to not start.
My /var/log/libvir/qemu/vmname.log gives a long dump of qemu options,
and then just says:
char device redirected to /dev/pts/7 (label charserial0)
2020-12-25T15:13:45.879652Z kvm: -blockdev
{"driver":"file","filename":"/dev/mapper/centos","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}:
warning: Opening a block device as a file using the 'file' driver is deprecated
2020-12-25 15:13:45.981+0000: shutting down, reason=failed
$ qemu-system-x86_64 -blockdev
driver=file,filename=/dev/sda,node-name=libvirt-1-storage,auto-read-only=true,discard=unmap
qemu-system-x86_64: -blockdev
driver=file,filename=/dev/sda,node-name=libvirt-1-storage,auto-read-only=true,discard=unmap:
warning: Opening a block device as a file using the 'file' driver is
deprecated
$ qemu-system-x86_64 -blockdev
driver=file,filename=/dev/sda,node-name=libvirt-1-storage,auto-read-only=true,discard=unmap
qemu-system-x86_64: -blockdev
driver=file,filename=/dev/sda,node-name=libvirt-1-storage,auto-read-only=true,discard=unmap:
\
warning: Opening a block device as a file using the 'file' driver is
deprecated
..and it runs just fine booting an OS from my /dev/sda.
So as I said before, this is not the reason why it exits.
Is the list of qemu options interesting? Wouldnt an error be logged
between the warning and the "shutting down" message? Where else would I
look for the real error?
If there's a bug it really depends on where the bug is. If a bug is right before
printing an error message, the error message wouldn't be printed, right? :)
But it is definitely not this warning message, you can try it yourself in a
way similar to what I just did above.
You can try other arguments of your command line and see which one is causing
qemu to quit like that.
Thanks,
/mjt