Hi,

I had some issues wit a VM not starting after an apt-get upgrade.... :(


Since creating the VM, it was working fine, until the upgrade.  I had
even exported a KVM from another machine and imported it via the dumped
xml with a bit for bit copy of the LV that was used on the old machine
-- no changes to that VM and it still worked fine after the apt-get upgrade.


So, the original VM that stopped working.  Turns out that the cdrom
definition was the problem; but it wasn't a problem until the apt-get
upgrade was done.




Here is a diff of before and after xml data:

# diff -r /tmp/libvirt/qemu/www-affinityvision-com-au.xml
/etc/libvirt/qemu/www-affinityvision-com-au.xml
15c15
<     <type arch='x86_64' machine='pc-i440fx-2.5'>hvm</type>
---
>     <type arch='x86_64' machine='pc-i440fx-2.6'>hvm</type>
69,74d68
<     </disk>
<     <disk type='block' device='cdrom'>
<       <driver name='qemu' type='raw'/>
<       <target dev='hda' bus='ide'/>
<       <readonly/>
<       <address type='drive' controller='0' bus='0' target='0' unit='0'/>


NB: the "machine" value was derived by virsh ... from a generic value of
"pc".


I have no idea why removing the cdrom entry worked, but it did, so that
solved the immediate problem of not being able to start the VM.


Now, if I wanted to keep the cdrom entry, what should it look like?



This was the error I was getting before removing the cdrom device:

# virsh start www-affinityvision-com-au
error: Failed to start domain www-affinityvision-com-au
error: internal error: process exited while connecting to monitor:
2016-10-11T19:36:41.301939Z qemu-system-x86_64: -drive
if=none,id=drive-ide0-0-0,readonly=on,format=raw: Can't use 'raw' as a
block driver for the protocol level


And here's an extract from /var/log/libvirt/libvirtd.log

2016-10-11 19:10:55.312+0000: 4259: error : qemuMonitorIO:662 : internal
error: End of file from monitor
2016-10-11 19:11:08.858+0000: 4259: error : qemuMonitorIO:662 : internal
error: End of file from monitor
2016-10-11 19:15:25.476+0000: 4426: info : libvirt version: 1.2.9,
package: 9+devuan1.2 (pbuilder 2016-02-02-18:14:31
devuanbuild01.hosts.corpex.de)
2016-10-11 19:15:25.476+0000: 4426: error :
virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for
supported suspend types
2016-10-11 19:15:25.476+0000: 4426: warning : virQEMUCapsInit:991 :
Failed to get host power management capabilities
2016-10-11 19:15:25.903+0000: 4426: error :
virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for
supported suspend types
2016-10-11 19:15:25.903+0000: 4426: warning : virLXCDriverCapsInit:86 :
Failed to get host power management capabilities
2016-10-11 19:15:25.904+0000: 4426: error :
virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for
supported suspend types
2016-10-11 19:15:25.904+0000: 4426: warning : umlCapsInit:74 : Failed to
get host power management capabilities
2016-10-11 19:15:26.244+0000: 4426: error : qemuMonitorOpenUnix:309 :
failed to connect to monitor socket: No such process
2016-10-11 19:15:26.244+0000: 4426: error :
qemuProcessWaitForMonitor:2042 : internal error: process exited while
connecting to monitor: 2016-10-11T19:15:26.061657Z qemu-system-x86_64:
-drive if=none,
id=drive-ide0-0-0,readonly=on,format=raw: Can't use 'raw' as a block
driver for the protocol level

2016-10-11 19:15:26.244+0000: 4426: error : qemuAutostartDomain:296 :
Failed to autostart VM 'www-affinityvision-com-au': internal error:
process exited while connecting to monitor: 2016-10-11T19:15:2
6.061657Z qemu-system-x86_64: -drive
if=none,id=drive-ide0-0-0,readonly=on,format=raw: Can't use 'raw' as a
block driver for the protocol level


And this from /var/log/libvirt/qemu/www-affinityvision-com-au.log:
2016-10-11 19:15:26.037+0000: starting up
LC_ALL=C
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/
QEMU_AUDIO_DRV=none /usr/bin/kvm -name www-affinityvision-com-au -S
-machine pc-i440fx-2.5,accel=kvm,usb=off -cpu Broa
dwell,+invtsc,+abm,+pdpe1gb,+rdrand,+f16c,+osxsave,+pdcm,+xtpr,+tm2,+est,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme
-m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -u
uid 7ab48d9e-e229-4d72-adc3-7fbe296d5859 -nographic -no-user-config
-nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/www-affinityvision-com-au.monitor,server,nowait
-mon chardev=c
harmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global
kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on
-device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x3.0x7 -devi
ce
ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x3
-device
ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x3.0x1
-device ich9-usb-uhci3,masterbus=usb.0,first
port=4,bus=pci.0,addr=0x3.0x2 -drive
file=/srv/kvm/images/www-affinityvision-com-au--disk0,if=none,id=drive-virtio-disk0,format=raw
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virti
o-disk0,id=virtio-disk0,bootindex=1 -drive
file=/srv/kvm/images/www-affinityvision-com-au--disk1,if=none,id=drive-virtio-disk1,format=raw
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive
-virtio-disk1,id=virtio-disk1 -drive
if=none,id=drive-ide0-0-0,readonly=on,format=raw -device
ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev
tap,fd=23,id=hostnet0,vhost=on,vhostfd=24
 -device
virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:9a:ba:8a,bus=pci.0,addr=0x2
-chardev pty,id=charserial0 -device
isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -dev
ice virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on
char device redirected to /dev/pts/0 (label charserial0)
2016-10-11T19:15:26.061657Z qemu-system-x86_64: -drive
if=none,id=drive-ide0-0-0,readonly=on,format=raw: Can't use 'raw' as a
block driver for the protocol level
2016-10-11 19:15:26.244+0000: shutting down



dpkgs-query -l --- diff [relevant parts] details:


572,575c572,575
< ii  qemu-kvm                         1:2.5+dfsg-4~bpo8+1
amd64        QEMU Full virtualization on x86 hardware
< ii  qemu-system-common               1:2.5+dfsg-4~bpo8+1
amd64        QEMU full system emulation binaries (common files)
< ii  qemu-system-x86                  1:2.5+dfsg-4~bpo8+1
amd64        QEMU full system emulation binaries (x86)
< ii  qemu-utils                       1:2.5+dfsg-4~bpo8+1
amd64        QEMU utilities
---
> ii  qemu-kvm                         1:2.6+dfsg-3.1~bpo8+1
amd64        QEMU Full virtualization on x86 hardware
> ii  qemu-system-common               1:2.6+dfsg-3.1~bpo8+1
amd64        QEMU full system emulation binaries (common files)
> ii  qemu-system-x86                  1:2.6+dfsg-3.1~bpo8+1
amd64        QEMU full system emulation binaries (x86)
> ii  qemu-utils                       1:2.6+dfsg-3.1~bpo8+1
amd64        QEMU utilities




Hope this helps somebody.

Kind Regards
AndrewM





Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to