Thanks all, it works with qemu-img resize!
On 6/21/24 16:46, Sven Ott wrote:
Hi, I want to mount a VM image to a loop device and give it some
excess space.
To do so, I download a .qcow2 file, add some 0 bytes with truncate,
and then convert the image from QCOW2 to RAW format with qemu-img
On Fri, Jun 21, 2024 at 5:48 PM Sven Ott wrote:
> Hi, I want to mount a VM image to a loop device and give it some excess
> space.
>
> To do so, I download a .qcow2 file, add some 0 bytes with truncate, and
> then convert the image from QCOW2 to RAW format with qemu-img convert,
> like so:
>
>
Only if the BIOS matches the virtual motherboard provided by Qemu .
For example, if the BIOS tries to configure a register controlling the
USB controller on the real motherboard, it will only work if the virtual
motherboard has the same USB controller at the same bus address.
The Qemu
Can I boot a nomral cumputer bios in qemu ? I mean a .bin file. let's say I
have a motherborad bios file in this format can I use qemu to test it?
thank you for the great software.
Lucas Machado Zainote
lucasmzain...@aol.com
Dear Sven,
Note that qcow2 files contain data saying how large the virtual disk is
and what blocks in the virtual disk correspond to what blocks in the
qcow2 file.
Thus adding extra all-0 blocks at the end of a qcow2 file using generic
file manipulation tools like truncate or dd will not
Maybe try first
qemu-img resize
then use qemu-img convert
On Fri, 21 Jun, 2024, 20:18 Sven Ott, wrote:
> Hi, I want to mount a VM image to a loop device and give it some excess
> space.
>
> To do so, I download a .qcow2 file, add some 0 bytes with truncate, and
> then convert the image from
Hi, I want to mount a VM image to a loop device and give it some excess
space.
To do so, I download a .qcow2 file, add some 0 bytes with truncate, and
then convert the image from QCOW2 to RAW format with qemu-img convert,
like so:
```
GUEST_IMG=focal-server-cloudimg-amd64
wget