Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run with uhyve on M1? #267

Open
playXE opened this issue Apr 6, 2022 · 3 comments
Open

How to run with uhyve on M1? #267

playXE opened this issue Apr 6, 2022 · 3 comments

Comments

@playXE
Copy link

playXE commented Apr 6, 2022

When trying to run with uhyve I get this error for both aarch64 and x86_64 targets:

➜  rusty-hermit git:(master) ✗ uhyve target/aarch64-unknown-hermit/debug/hello_world 
thread 'main' panicked at 'Unable to create VM! Is the hypervisor interface (e.g. KVM) activated?: Error', src/bin/uhyve.rs:326:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
➜  rusty-hermit git:(master) ✗ uhyve target/x86_64-unknown-hermit/debug/hello_world
thread 'main' panicked at 'Unable to create VM! Is the hypervisor interface (e.g. KVM) activated?: Error', src/bin/uhyve.rs:326:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I followed all installation instructions from README.md. uhyve is built from source

@stlankes
Copy link
Contributor

stlankes commented Apr 9, 2022

Do you use the version from crates.io or from out GitHub repo?

@playXE
Copy link
Author

playXE commented Apr 9, 2022

Do you use the version from crates.io or from out GitHub repo?

From GH repo

@playXE
Copy link
Author

playXE commented Apr 9, 2022

@stlankes I get the following error when installing from crates.io:

error[E0433]: failed to resolve: could not find `arch` in `self`
  --> /Users/pk/.cargo/registry/src/github.com-1ecc6299db9ec823/raw-cpuid-9.1.1/src/lib.rs:64:37
   |
64 |         let result = unsafe { self::arch::__cpuid_count(a, c) };
   |                                     ^^^^ could not find `arch` in `self`

   Compiling heck v0.3.3
For more information about this error, try `rustc --explain E0433`.
error: could not compile `raw-cpuid` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `uhyve v0.0.28`, intermediate artifacts can be found at `/var/folders/h8/r749nn_x13g41tfjzbqyx7gm0000gn/T/cargo-installiOBHpK`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants