From e2fcccd9fa507fa5a729a073596e216f5cd4e53e Mon Sep 17 00:00:00 2001 From: nesitor Date: Mon, 29 Jul 2024 13:13:29 +0200 Subject: [PATCH] Enable Qemu support by default (#662) Problem: If a user wants to launch a Qemu instance inside a CRN, by default the support is disabled. Solution: Enable the support by default and disable snapshots because aren't used. Co-authored-by: Andres D. Molins --- src/aleph/vm/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aleph/vm/conf.py b/src/aleph/vm/conf.py index a192a9b4..98e3772e 100644 --- a/src/aleph/vm/conf.py +++ b/src/aleph/vm/conf.py @@ -248,7 +248,7 @@ class Settings(BaseSettings): ) SNAPSHOT_FREQUENCY: int = Field( - default=60, + default=0, description="Snapshot frequency interval in minutes. It will create a VM snapshot every X minutes. " "If set to zero, snapshots are disabled.", ) @@ -261,7 +261,7 @@ class Settings(BaseSettings): # hashlib.sha256(b"secret-token").hexdigest() ALLOCATION_TOKEN_HASH = "151ba92f2eb90bce67e912af2f7a5c17d8654b3d29895b042107ea312a7eebda" - ENABLE_QEMU_SUPPORT: bool = Field(default=False) + ENABLE_QEMU_SUPPORT: bool = Field(default=True) INSTANCE_DEFAULT_HYPERVISOR: Optional[HypervisorType] = Field( default=HypervisorType.firecracker, # User Firecracker description="Default hypervisor to use on running instances, can be Firecracker or QEmu",