Skip to content

Commit

Permalink
Enable Qemu support by default (#662)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nesitor and Andres D. Molins authored Jul 29, 2024
1 parent b21c27e commit e2fcccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aleph/vm/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)
Expand All @@ -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",
Expand Down

0 comments on commit e2fcccd

Please sign in to comment.