Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 683945f

Browse files
committed
Dummy.GetVm: set config.BootFromTemplate to false to fix vm start fail issue
config.BootFromTemplate will be set to true without this patch. Then QemuContext.arguments will return wrong params for qemu. Signed-off-by: Hui Zhu <teawater@hyper.sh>
1 parent 3383b2f commit 683945f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

factory/single/single.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func (f Dummy) GetVm(cpu, mem int) (*hypervisor.Vm, error) {
5959
config := hypervisor.BootConfig(f)
6060
config.CPU = cpu
6161
config.Memory = mem
62+
config.BootFromTemplate = false
6263
return hypervisor.GetVm("", &config, false)
6364
}
6465
func (f Dummy) CloseFactory() {}

0 commit comments

Comments
 (0)