vm-import-controller/pkg/qemu
Volker Theile ebf60d5ec9 VM Import Controller uses too much memory during QCOW2 conversion phase
- Create the volume image using RAW disk format instead of QCOW2, so no conversion is required after downloading. This will reduce memory consumption.
- Download and write the image file in chunks (32KiB by default), so the whole file doesn't need to be downloaded completely and stored in memory before it is written to disk.
- Fix a variable name shadowing issue.
- Improve logging.

Related to: https://github.com/harvester/harvester/issues/6674

Signed-off-by: Volker Theile <vtheile@suse.com>
2024-10-09 17:43:32 +08:00
..
gemu_test.go fix: golangci-lint error 2024-01-12 10:55:44 +08:00
qemu.go VM Import Controller uses too much memory during QCOW2 conversion phase 2024-10-09 17:43:32 +08:00