You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Introduce `BackendType::Uds` for VM communication via Unix sockets
- Refactor address generation logic with `generate_vm_sock_addrs`
- Add CLI parameter `--vm-sock` to specify UDS path
- Update documentation and error handling
Signed-off-by: Hang SU <[email protected]>
Suggested-by: Xuewei Niu <[email protected]>
--uds-path=/tmp/vm.sock --backend=uds # for uds backend
87
101
```
88
102
>Note: In case the backend is "nested" there is no need to provide
89
-
"--socket-count" and "--tcp-port" parameters.
103
+
"--socket-count", "--tcp-port" and "--uds-path" parameters.
90
104
91
105
The QEMU invocation needs to create a chardev socket the device can
92
106
use to communicate as well as share the guests memory over a memfd.
93
107
94
-
There are two option for running QEMU with vhost-device-console:
108
+
There are two option for running QEMU with vhost-device-console,
109
+
and one for User Mode Linux:
95
110
96
111
1) Using `vhost-user-console-pci`:
97
112
```text
@@ -119,9 +134,22 @@ host# qemu-system
119
134
...
120
135
```
121
136
137
+
3) Using User Mode Linux [`virtio console`](https://github.com/torvalds/linux/blob/848e076317446f9c663771ddec142d7c2eb4cb43/include/uapi/linux/virtio_ids.h#L34):
138
+
```text
139
+
host# linux root=/dev/ubda1 rw ubd0=$YOUR-PATH/kata-ubuntu-latest.image \
>Note: `stty -icanon -echo` is used to force the tty layer to disable buffering and send / receive each character individually. After closing the connection please run `stty echo` so character are printed back on the local terminal console.
0 commit comments