]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Change --qemu-smp default from 2 to 1
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 16 Feb 2022 10:44:41 +0000 (10:44 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 20 Jun 2022 11:25:03 +0000 (13:25 +0200)
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.

mkosi/__init__.py
tests/test_config_parser.py

index ff957161f281cd413701564fc082b898f0123cea..062b747311c24dd0e52f68bddc0a8df0d41f53f3 100644 (file)
@@ -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(
index 178d1ad23c5264bc63da684bf379aae920f74cee..aa6157692fc66304388f9f6f713384b7f1e5fb52 100644 (file)
@@ -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": [],