Welcome to the Linux Foundation Forum!

Correct answer for Quiz-Question 28.4 has flipped arguments

Posts: 3

Hello,

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:

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

I verified this by reproducing an example on Ubuntu 22.04

  1. # install dependencies
  2. sudo apt-get update
  3. sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
  4. sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes qemu-kvm virt-manager virt-viewer libguestfs-tools genisoimage
  5.  
  6.  
  7. # create a qcow2 formatted image
  8. qemu-img create -o preallocation=full -f qcow2 first 5G
  9.  
  10.  
  11. # show information about newly created disk
  12. qemu-img info first
  13. image: first
  14. file format: qcow2
  15. virtual size: 5 GiB (5368709120 bytes)
  16. disk size: 5 GiB
  17. cluster_size: 65536
  18. Format specific information:
  19. compat: 1.1
  20. compression type: zlib
  21. lazy refcounts: false
  22. refcount bits: 16
  23. corrupt: false
  24. extended l2: false
  25.  
  26. # now convert first (qcow2) image to raw format
  27. qemu-img convert -O raw first first.raw
  28.  
  29.  
  30. # now check the version of the newly created .raw image
  31. qemu-img info first.raw
  32. image: first.raw
  33. file format: raw
  34. virtual size: 5 GiB (5368709120 bytes)
  35. disk size: 4 KiB
  36.  
  37.  
  38. lsb_release -a
  39. No LSB modules are available.
  40. Distributor ID: Ubuntu
  41. Description: Ubuntu 22.04 LTS
  42. Release: 22.04
  43. Codename: jammy
  44.  
  45.  
  46. qemu-img --version
  47. qemu-img version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.2)
  48. Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
  49.  

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training