Welcome to the Linux Foundation Forum!

Correct answer for Quiz-Question 28.4 has flipped arguments

a1300 Posts: 3
edited June 2022 in LFS201 Class Forum


in Question 28.04 has the correct answer C. its arguments wrongfully flipped. Currently the answer is like in the first line. But it should be like the second line:

- qemu-img convert -O qcow2 myvm.qcow2 myvm.vmdk
+ qemu-img convert -O qcow2 myvm.vmdk myvm.qcow2

I verified this by reproducing an example on Ubuntu 22.04

# install dependencies
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes qemu-kvm virt-manager virt-viewer libguestfs-tools genisoimage

# create a qcow2 formatted image
qemu-img create -o preallocation=full -f qcow2 first 5G

# show information about newly created disk
qemu-img info first
image: first
file format: qcow2
virtual size: 5 GiB (5368709120 bytes)
disk size: 5 GiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false

# now convert first (qcow2) image to raw format
qemu-img convert -O raw first first.raw

# now check the version of the newly created .raw image
qemu-img info first.raw
image: first.raw
file format: raw
virtual size: 5 GiB (5368709120 bytes)
disk size: 4 KiB

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy

qemu-img --version
qemu-img version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.2)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers



Upcoming Training