Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu-opts cmdline arg does not seem to be working properly #88

Open
jpirko opened this issue Mar 14, 2024 · 2 comments
Open

qemu-opts cmdline arg does not seem to be working properly #88

jpirko opened this issue Mar 14, 2024 · 2 comments

Comments

@jpirko
Copy link
Contributor

jpirko commented Mar 14, 2024

With original virtme, I can pass cmdline options to qemu like this:
$ virtme-run --kdir . --qemu-opts -m 1G
I would expect vng should behave the same with this cmdline arg. However, it is not:
$ vng -v --disable-microvm --qemu-opts -m 1G
usage: vng [-h] [--version] [--run [RUN] | --build | --clean | --dump DUMP] [--dry-run] [--skip-config] [--no-virtme-ng-init] [--snaps] [--debug] [--kconfig] [--skip-modules] [--commit COMMIT] [--config CONFIG] [--compiler COMPILER] [--busybox PATH_TO_BUSYBOX] [--qemu QEMU]
[--name NAME] [--user USER] [--root ROOT] [--root-release ROOT_RELEASE] [--rw] [--force-9p] [--disable-microvm] [--disable-kvm] [--cwd CWD] [--pwd] [--rodir RODIR] [--rwdir RWDIR] [--overlay-rwdir OVERLAY_RWDIR] [--cpus CPUS] [--memory MEMORY]
[--numa MEM[,cpus=FIRST_CPU1[-LAST_CPU1]][,cpus=FIRST_CPU2[-LAST_CPU2]]...] [--balloon] [--network user|bridge] [--disk PATH] [--exec EXEC] [--append APPEND] [--force-initramfs] [--sound] [--graphics] [--verbose] [--quiet] [--qemu-opts QEMU_OPTS]
[--build-host BUILD_HOST] [--build-host-exec-prefix BUILD_HOST_EXEC_PREFIX] [--build-host-vmlinux] [--arch ARCH] [--force]
[envs ...]
vng: error: argument --qemu-opts/-o: expected one argument

Btw, I know I can use "--memory" directly :) I need to pass something else, "-m" is just an example.

@arighi
Copy link
Owner

arighi commented Mar 14, 2024

Try vng --qemu-opts="-m 1024".

Keep in mind that virtiofsd has some special memory requirements (therefore it's always recommended to use --memory, unless you go with 9pfs using --force-9p).

Any other qemu-specific option can be passed via --qemu-opts="...".

@jpirko
Copy link
Contributor Author

jpirko commented Mar 14, 2024

Try vng --qemu-opts="-m 1024".

Keep in mind that virtiofsd has some special memory requirements (therefore it's always recommended to use --memory, unless you go with 9pfs using --force-9p).

Any other qemu-specific option can be passed via --qemu-opts="...".

Could this be documented somewhere please? Works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants