Skip to content

Commit

Permalink
fixup! Fix #73: OpenBSD VM fails during "Initializing VM" with QEMU o…
Browse files Browse the repository at this point in the history
…n macOS
  • Loading branch information
jacob-carlborg committed Jan 11, 2024
1 parent b7665ad commit 868b832
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 5 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/operating_systems/openbsd/openbsd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ export default class OpenBsd extends os.OperatingSystem {
uuid: this.uuid
}

let cls = this.hypervisor.resolve({qemu: QemuVm, xhyve: XhyveVm})
cls = this.architecture.resolve({x86_64: QemuVmX86_64, default: cls})
let qemuVmClass = this.architecture.resolve({
x86_64: QemuVmX86_64,
default: QemuVm
})

const cls = this.hypervisor.resolve({qemu: qemuVmClass, xhyve: XhyveVm})

return new cls(
hypervisorDirectory,
Expand Down

0 comments on commit 868b832

Please sign in to comment.