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

dev_cli.sh: Fix kvm directory path of the build command #242

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

MrXinWang
Copy link
Member

Current local variable exported_device under cmd_build() misses the root directory in the beginning, which will lead to the error of:

docker: Error response from daemon: OCI runtime create failed:
invalid mount {Destination:dev/kvm Type:bind
[...]
Options:[rbind]}: mount destination dev/kvm not absolute: unknown.

when running scripts/dev_cli.sh build command.

Fix the path by following the cmd_test().

Current local variable `exported_device` under `cmd_build()`
misses the root directory in the beginning, which will lead to
the error of:

```
docker: Error response from daemon: OCI runtime create failed:
invalid mount {Destination:dev/kvm Type:bind
[...]
Options:[rbind]}: mount destination dev/kvm not absolute: unknown.
```
when running `scripts/dev_cli.sh build` command.

Fix the path by following the `cmd_test()`.

Signed-off-by: Henry Wang <[email protected]>
@rbradford rbradford merged commit 0ddfc6d into cloud-hypervisor:main Mar 29, 2023
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

Successfully merging this pull request may close these issues.

2 participants