qemu-system-x86_64 fails to boot qcow2 image
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=
Error:
SeaBIOS (version 1.13.0-1ubuntu1)
iPXE (http://
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
The qcow2 image created by virt-manager needed serial console to be enabled in grub. I was just not seeing the logs.