From: Daan De Meyer Date: Wed, 16 Feb 2022 10:44:41 +0000 (+0000) Subject: Change --qemu-smp default from 2 to 1 X-Git-Tag: v13~11^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c53cb3b293f5f27c5525c4e52be8df26634d87c1;p=thirdparty%2Fmkosi.git Change --qemu-smp default from 2 to 1 When trying to a boot a centos epel VM using QEMU, it will hang during boot if the qemu smp option is set to a number higher than 1. To avoid this and similar issues, let's default to 1 core per VM. If users need more they can always configure the option explicitly. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index ff957161f..062b74731 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -5857,7 +5857,7 @@ def create_parser() -> ArgumentParserMkosi: group.add_argument( "--qemu-smp", metavar="SMP", - default="2", + default="1", help="Configure guest's SMP settings", ) group.add_argument( diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py index 178d1ad23..aa6157692 100644 --- a/tests/test_config_parser.py +++ b/tests/test_config_parser.py @@ -130,7 +130,7 @@ class MkosiConfig: "with_tests": True, "xbootldr_size": None, "qemu_headless": False, - "qemu_smp": "2", + "qemu_smp": "1", "qemu_mem": "1G", "qemu_kvm": mkosi.qemu_check_kvm_support(), "qemu_args": [],