File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -535,15 +535,17 @@ async def create_instance(
535
535
timeout_seconds = timeout_seconds or settings .DEFAULT_VM_TIMEOUT
536
536
537
537
payment = payment or Payment (chain = Chain .ETH , type = PaymentType .hold )
538
- hypervisor = hypervisor or HypervisorType .firecracker
538
+
539
+ # Default to the QEMU hypervisor for instances.
540
+ selected_hypervisor : HypervisorType = hypervisor or HypervisorType .qemu
539
541
540
542
content = InstanceContent (
541
543
address = address ,
542
544
allow_amend = allow_amend ,
543
545
environment = InstanceEnvironment (
544
546
internet = internet ,
545
547
aleph_api = aleph_api ,
546
- hypervisor = hypervisor ,
548
+ hypervisor = selected_hypervisor ,
547
549
),
548
550
variables = environment_variables ,
549
551
resources = MachineResources (
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ async def test_create_instance_no_hypervisor(mock_session_with_post_success):
157
157
hypervisor = None ,
158
158
)
159
159
160
- assert instance_message .content .environment .hypervisor == HypervisorType .firecracker
160
+ assert instance_message .content .environment .hypervisor == HypervisorType .qemu
161
161
162
162
assert mock_session_with_post_success .http_session .post .assert_called_once
163
163
assert isinstance (instance_message , InstanceMessage )
You can’t perform that action at this time.
0 commit comments