Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 4060

General Questions • Re: Convert VirtualBox to KVM issues...

$
0
0
the qcow2 is 197.2KB
...that can't be right. 197.2KB is the size of an fresh empty disk in qcow2.

Though I never use vdi, I think qemu-img can. The middle img step is not necessary
Try directly with only qemu-img

Code:

 qemu-img convert -O qcow2 LinOnLin.vdi LinOnLin.qcow2
furthermore, direct file to device

Code:

  qemu-img convert -O raw /path/filename.qcow2 /dev/sdX
furthermore, direct device to file

Code:

qemu-img convert -c -p -O qcow2 /dev/sdX /path/filename.qcow2
...and of course /dev/sdX could be a better /dev/disk/by-label/label when available.
-p for progress if wanted
-c for compression
the img is 42.9GB,...a further vdi...that is 101.9GB
that sounds reasonable, you could use the image file you already made

Code:

 qemu-img convert -c -O qcow2 LinOnLin.img LinOnLin.qcow2

Statistics: Posted by CwF — 2025-12-27 23:13



Viewing all articles
Browse latest Browse all 4060

Trending Articles