unikraft / kraftkit

Build and use highly customized and ultra-lightweight unikernel VMs.
https://unikraft.org/docs/cli
BSD 3-Clause "New" or "Revised" License
234 stars 62 forks source link

Need sudo when running kraft cloud on mac, otherwise get could not open machine store error #1342

Closed felipehuici closed 8 months ago

felipehuici commented 8 months ago

Describe the bug

Need sudo when running kraft cloud on mac, otherwise get could not open machine store error

Steps to reproduce

Go to http-c KC example dir and run:

kraft run --plat qemu --arch x86_64 --log-level debug --log-type basic -p 8080:8080 .

Don't know if this is a mac-only issue

Expected behavior

Output such as: [...] Powered by Unikraft Telesto (0.16.2~687131d) Listening on port 8080... en1: Set IPv4 address 10.0.2.15 mask 255.255.255.0 gw 10.0.2.2

Which architectures were you using or does this bug affect?

x86_64

Which operating system were you using or does this bug affect?

macOS

Relevant log output

E  could not open machine store: During db.vlog.open error: Open existing file: "/Users/fhuici/.local/share/kraftkit/runtime/machinev1alpha1/000380.vlog" error: while opening file: /Users/fhuici/.local/share/kraftkit/runtime/machinev1alpha1/000380.vlog error: open /Users/fhuici/.local/share/kraftkit/runtime/machinev1alpha1/000380.vlog: permission denied
unable to open: /Users/fhuici/.local/share/kraftkit/runtime/machinev1alpha1/000380.vlog
felipehuici commented 8 months ago

Fixed by adding documentation re how not to use sudo with kraft.