Coder Social home page Coder Social logo

Comments (8)

stlankes avatar stlankes commented on May 22, 2024

Do you use Linux? Is kvm available on your system? Please show me the output of following command RUST_LOG=debug uhyve -v target/x86_64-unknown-hermit/debug/hello_world.

from hermit-rs.

gilesbradshaw avatar gilesbradshaw commented on May 22, 2024

Hi Thanks for your help i needed reboot kubernetes/minikube#6468 (comment)

from hermit-rs.

stlankes avatar stlankes commented on May 22, 2024

@gilesbradshaw Does it work with minikube? I never tested it.

from hermit-rs.

gilesbradshaw avatar gilesbradshaw commented on May 22, 2024

ah sorry I don't know I was just reffing that as where I found suggestion to reboot :)

from hermit-rs.

jbreitbart avatar jbreitbart commented on May 22, 2024

@stlankes I think we should handle the error more gracefully. Understanding the panic is probably not that easy for most people. I am reopening the error as a reminder. Maybe someone finds some time to fix this.

from hermit-rs.

jbreitbart avatar jbreitbart commented on May 22, 2024

I'll merge hermit-os/uhyve#42, but it does not fix the issue I had in mind. In general there are two types of errors:

  • A bug inside our code.
  • An error on user level (e.g. no access to KVM as described here, passing invalid parameters to uhyve, ...).

In case of a bug it is great if there is a stack trace so it can be tracked down, however in case of a user error the stack trace is confusing the user and uhyve should just terminate and print the appropriate message.

from hermit-rs.

stlankes avatar stlankes commented on May 22, 2024

Do you prefer something like this?

from hermit-rs.

jbreitbart avatar jbreitbart commented on May 22, 2024

I am not sure. That change means we treat every error the appears within vm::create_vm as a user error, which I guess it not true and there may very well be a bug in the code. I feel like we need to distinguishboth cases, but I am not sure how to do that.

from hermit-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.