aarch64 fixes
This commit is contained in:
parent
50df5197d4
commit
97b58c722b
5 changed files with 20 additions and 19 deletions
8
vm/vm.go
8
vm/vm.go
|
|
@ -168,7 +168,13 @@ func NewVM(logger *slog.Logger, cfg VMConfig) (*VM, error) {
|
|||
driveArgs += ",snapshot=on"
|
||||
}
|
||||
|
||||
cmdArgs = append(cmdArgs, "-drive", driveArgs, "-device", "virtio-blk-pci,drive=disk"+fmt.Sprint(i)+",bootindex="+fmt.Sprint(i))
|
||||
devArgs := "virtio-blk-pci,drive=disk" + fmt.Sprint(i)
|
||||
|
||||
if cfg.CdromImagePath == "" {
|
||||
devArgs += ",bootindex=" + fmt.Sprint(i)
|
||||
}
|
||||
|
||||
cmdArgs = append(cmdArgs, "-drive", driveArgs, "-device", devArgs)
|
||||
}
|
||||
|
||||
if len(cfg.PassthroughConfig.USB) != 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue