Skip to content

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