Skip to content

Commit

Permalink
un-stub kernel in local ops run/build for arm64 (#1216)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Eyberg <[email protected]>
  • Loading branch information
eyberg and Ian Eyberg authored Dec 24, 2021
1 parent f2e77a7 commit 3f7e17e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qemu/qemu_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"
"os/exec"
"os/signal"
"path"
"path/filepath"
"regexp"
"runtime"
Expand All @@ -18,6 +19,7 @@ import (

"golang.org/x/sys/unix"

api "github.com/nanovms/ops/lepton"
"github.com/nanovms/ops/log"
"github.com/nanovms/ops/types"
)
Expand Down Expand Up @@ -332,7 +334,10 @@ func (q *qemu) setConfig(rconfig *types.RunConfig) {

q.addOption("-machine", "gic-version=2")
q.addOption("-machine", "highmem=off")
q.addOption("-kernel", "./kernel.img")

kernel := path.Join(api.GetOpsHome(), api.LocalReleaseVersion, "kernel.img")

q.addOption("-kernel", kernel)

q.addOption("-device", "virtio-blk-pci,drive=hd0")

Expand Down

0 comments on commit 3f7e17e

Please sign in to comment.