should use KVM acceleration. Defaults to yes if the host machine
supports KVM acceleration, no otherwise.
+`QemuArgs=`
+
+: Space-delimited list of additional arguments to pass when invoking
+ qemu.
+
`NspawnKeepUnit=`, `--nspawn-keep-unit`
: When used, this option instructs underlying calls of systemd-nspawn to
group.add_argument("--qemu-mem", help="Configure guest's RAM size", metavar="MEM", default="1G")
group.add_argument("--qemu-kvm", action=BooleanAction, help="Configure whether to use KVM or not",
default=qemu_check_kvm_support())
+ group.add_argument(
+ "--qemu-args",
+ action=SpaceDelimitedListAction,
+ default=[],
+ # Suppress the command line option because it's already possible to pass qemu args as normal
+ # arguments.
+ help=argparse.SUPPRESS,
+ )
group.add_argument(
"--nspawn-keep-unit",
action=BooleanAction,
MkosiPrinter.info("\nHOST CONFIGURATION:")
MkosiPrinter.info(" Extra search paths: " + line_join_list(args.extra_search_paths))
MkosiPrinter.info(" QEMU Headless: " + yes_no(args.qemu_headless))
- MkosiPrinter.info(" Netdev: " + yes_no(args.netdev))
+ MkosiPrinter.info(" QEMU Extra Arguments: " + line_join_list(args.qemu_args))
+ MkosiPrinter.info(" Netdev: " + yes_no(args.netdev))
def reuse_cache_tree(
"scsi-hd,drive=hd,bootindex=1",
]
+ cmdline += args.qemu_args
cmdline += args.cmdline
print_running_cmd(cmdline)