Virtio disk boot problem

When tried to start the VM after I removed qemu-system, syslog entries are as follows.

Mar 5 13:09:48 XXXXXXXXX pvedaemon[985973]: start VM 100: UPID:XXXXXXXXX:000F0B75:021EAF2A:4F54BB1C:qmstart:100:root@pam:
Mar 5 13:09:48 XXXXXXXXX pvedaemon[985139]: <root@pam> starting task UPID:XXXXXXXXX:000F0B75:021EAF2A:4F54BB1C:qmstart:100:root@pam:
Mar 5 13:09:48 XXXXXXXXX kernel: device tap100i0 entered promiscuous mode
Mar 5 13:09:48 XXXXXXXXX kernel: vmbr0: port 2(tap100i0) entering forwarding state
Mar 5 13:09:48 XXXXXXXXX kernel: New device tap100i0 does not support netpoll
Mar 5 13:09:48 XXXXXXXXX kernel: Disabling netpoll for vmbr0
Mar 5 13:09:48 XXXXXXXXX pvedaemon[985973]: start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=monitor,path=/var/run/qemu-server/100.mon,server,nowait' -mon 'chardev=monitor,mode=readline' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -usbdevice tablet -name XP -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga cirrus -localtime -rtc-td-hack -k en-us -drive 'file=/var/lib/vz/template/iso/virtio-win-0.1-22.iso,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.raw,if=none,id=drive-ide0,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -m 2048 -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,vhost=on' -device 'virtio-net-pci,mac=42:E0:16:2B:BD:E7,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1
Mar 5 13:09:48 XXXXXXXXX kernel: vmbr0: port 2(tap100i0) entering disabled state
Mar 5 13:09:48 XXXXXXXXX pvedaemon[985139]: <root@pam> end task UPID:XXXXXXXXX:000F0B75:021EAF2A:4F54BB1C:qmstart:100:root@pam: start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=monitor,path=/var/run/qemu-server/100.mon,server,nowait' -mon 'chardev=monitor,mode=readline' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -usbdevice tablet -name XP -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga cirrus -localtime -rtc-td-hack -k en-us -drive 'file=/var/lib/vz/template/iso/virtio-win-0.1-22.iso,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.raw,if=none,id=drive-ide0,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -m 2048 -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,vhost=on' -device 'virtio-net-pci,mac=42:E0:16:2B:BD:E7,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1
Mar 5 13:09:48 XXXXXXXXX avahi-daemon[1507]: Withdrawing workstation service for tap100i0.
Mar 5 13:09:48 XXXXXXXXX kernel: vmbr0: port 2(tap100i0) entering disabled state
Mar 5 13:09:49 XXXXXXXXX pvedaemon[986000]: starting vnc proxy UPID:XXXXXXXXX:000F0B90:021EAF91:4F54BB1D:vncproxy:100:root@pam:
Mar 5 13:09:49 XXXXXXXXX pvedaemon[985189]: <root@pam> starting task UPID:XXXXXXXXX:000F0B90:021EAF91:4F54BB1D:vncproxy:100:root@pam:
Mar 5 13:09:55 XXXXXXXXX pvedaemon[986000]: command '/bin/nc -l -p 5901 -w 10 -c '/usr/sbin/qm vncproxy 100 2>/dev/null'' failed: exit code 111
Mar 5 13:09:55 XXXXXXXXX pvedaemon[985189]: <root@pam> end task UPID:XXXXXXXXX:000F0B90:021EAF91:4F54BB1D:vncproxy:100:root@pam: command '/bin/nc -l -p 5901 -w 10 -c '/usr/sbin/qm vncproxy 100 2>/dev/null'' failed: exit code 111



Also, here's the output from dpkg and aptitude when removing and then adding qemu-system.
root@XXXXXXXXX:/var/lib/vz/template/iso# dpkg -r qemu-system
(Reading database ... 143252 files and directories currently installed.)
Removing qemu-system ...
Processing triggers for man-db ...


root@XXXXXXXXX:/var/lib/vz/template/iso# aptitude install qemu-system
The following NEW packages will be installed:
qemu-system qemu-utils{a}
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/14.4 MB of archives. After unpacking 39.9 MB will be used.
Do you want to continue? [Y/n/?] y
Selecting previously deselected package qemu-system.
(Reading database ... 143193 files and directories currently installed.)
Unpacking qemu-system (from .../qemu-system_0.12.5+dfsg-3squeeze1_amd64.deb) ...
Unpacking qemu-utils (from .../qemu-utils_0.12.5+dfsg-3squeeze1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/qemu-utils_0.12.5+dfsg-3squeeze1_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man8/qemu-nbd.8.gz', which is also in package pve-qemu-kvm 1.0-5
configured to not write apport reports
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/qemu-utils_0.12.5+dfsg-3squeeze1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up qemu-system (0.12.5+dfsg-3squeeze1) ...
update-alternatives: using /usr/bin/qemu-system-i386 to provide /usr/bin/qemu (qemu) in auto mode.
 
Last edited:
With qemu-server removed, here's the output when trying to boot from the command line.

# qm start 100
qemu: could not load PC BIOS 'bios.bin'
start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=monitor,path=/var/run/qemu-server/100.mon,server,nowait' -mon 'chardev=monitor,mode=readline' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -usbdevice tablet -name XP -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga cirrus -localtime -rtc-td-hack -k en-us -drive 'file=/var/lib/vz/template/iso/virtio-win-0.1-22.iso,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.raw,if=none,id=drive-virtio0,aio=native,cache=none' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -m 2048 -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,vhost=on' -device 'virtio-net-pci,romfile=,mac=42:E0:16:2B:BD:E7,netdev=net0,bus=pci.0,addr=0x12,id=net0'' failed: exit code 1

Also, FYI, with qemu-system installed:
root@XXXXXXXXX:/var/lib/vz/template/iso# locate bios.bin
/usr/share/kvm/bios.bin
/usr/share/kvm/sgabios.bin
/usr/share/kvm/vgabios.bin
/usr/share/qemu/bios.bin
/usr/share/qemu/vgabios.bin
/usr/share/seabios/bios.bin
/usr/share/vgabios/vgabios.bin

With qemu-system removed:
root@XXXXXXXXX:/var/lib/vz/template/iso# updatedb
root@XXXXXXXXX:/var/lib/vz/template/iso# locate bios.bin
/usr/share/kvm/bios.bin
/usr/share/kvm/sgabios.bin
/usr/share/kvm/vgabios.bin
/usr/share/seabios/bios.bin
/usr/share/vgabios/vgabios.bin


UPDATE:
I symlinked the following
/usr/share/kvm/bios.bin
/usr/share/kvm/vgabios.bin

to:
/usr/share/qemu/

...and now it boots fine!! Some weirdness with the packages. Have you any suggestiong for a proper fix?

Thank you for your patience.
 
Last edited:
Sorry!

I only tried to work it out myself.
That was just a temporary workaround, not a fix! (virtio disk and NIC both work fine though)...
:)
 
Last edited:
This is currently on the system.

# dpkg -l | grep qemu
ii etherboot-qemu 5.4.4-9 Bootstrapping for various network adapters (qemu)
ii pve-qemu-kvm 1.0-5 Full virtualization on x86 hardware
ii qemu-keymaps 0.12.5+dfsg-3squeeze1 QEMU keyboard maps
ii qemu-server 2.0-25 Qemu Server Tools
rc qemu-system 0.12.5+dfsg-3squeeze1 QEMU full system emulation binaries <<< qemu-system still has configuration present
ii qemu-user 0.12.5+dfsg-3squeeze1 QEMU user mode emulation binaries

# dpkg -l | grep kvm
ii pve-qemu-kvm 1.0-5 Full virtualization on x86 hardware
 
Please remove all debian related qemu packages:

etherboot-qemu
qemu-keymaps
qemu-system
qemu-user

I have no idea how you managed to install them together with pve-qemu-kvm - package tools should prevent that.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!