-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vhost-user-vsock): added support
Signed-off-by: João Peixoto <[email protected]>
- Loading branch information
1 parent
9ab1fb5
commit 39f9d53
Showing
4 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Vhost-user vsock | ||
|
||
## Quick start | ||
|
||
Follow these steps to quickly set up and run the vhost-user vsock device with Bao Hypervisor. | ||
|
||
1. **Prepare Configuration File**: Create a configuration file (*config-virtio-vsock.yaml*) specifying | ||
the settings for the vhost-user vsock device. One example of a configuration file could be: | ||
|
||
``` | ||
devices: | ||
- id: 0 | ||
type: "vsock" | ||
mmio_addr: 0xa003e00 | ||
data_plane: vhost_user | ||
socket_path: "/tmp/" | ||
``` | ||
|
||
2. Launch the [vhost-user vsock backend](https://github.com/rust-vmm/vhost-device/tree/main/vhost-device-vsock): | ||
``` | ||
nohup vhost-device-vsock --vm guest-cid=4,uds-path=/tmp/vm4.vsock,socket=/tmp/Vsock.sock > /etc/vhost-vsock.log 2>&1 & | ||
``` | ||
|
||
3. Launch the device model: | ||
|
||
``` | ||
nohup bao-virtio-dm --config /PATH/TO/YOUR/config-virtio-vsock.yaml > /etc/bao-virtio-dm.log 2>&1 & | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters