qemu-system-x86_64 fails to boot qcow2 image

Bug #1904795 reported by Nelson DSouza
256
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Steps:

1.Created a qcow2 image using Ubuntu virt-manager. This qcow2 image boots fine inside the virt-manager.

2.However, the same qcow2 image fails to boot when I try to boot it using the qemu-system-x86_64:

#!/bin/bash

qemu-system-x86_64 -m 16384 -boot d -enable-kvm -smp 16 -cpu host -net nic -net user,hostfwd=tcp::7777-:22 -drive file=/var/lib/libvirt/images/ubuntu18.04.qcow2,if=virtio -nographic

Error:
SeaBIOS (version 1.13.0-1ubuntu1)

iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+BFF8C8D0+BFECC8D0 CA00

Booting from DVD/CD...
Boot failed: Could not read from CDROM (code 0003)
Booting from Floppy...
Boot failed: could not read the boot disk

Booting from Hard Disk...

------

More Info -

:~$ qemu-system-x86_64 --version
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.8)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

:~$ qemu-img check ubuntu18.04.qcow2
No errors were found on the image.
245760/245760 = 100.00% allocated, 0.00% fragmented, 0.00% compressed clusters
Image end offset: 16108814336

:~$ qemu-img info ubuntu18.04.qcow2
image: ubuntu18.04.qcow2
file format: qcow2
virtual size: 15 GiB (16106127360 bytes)
disk size: 1.88 GiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: true
    refcount bits: 16
    corrupt: false

Revision history for this message
Nelson DSouza (dsouzan) wrote :

The qcow2 image created by virt-manager needed serial console to be enabled in grub. I was just not seeing the logs.

information type: Public → Public Security
Changed in qemu (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.