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
Copy file name to clipboardExpand all lines: README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Dstack is community driven. Open sourced and built by [Kevin Wang](https://githu
23
23
24
24
Components in Dstack:
25
25
26
-
-`teepod`: A service running in bare TDX host to manage CVMs
26
+
-`dstack-vmm`: A service running in bare TDX host to manage CVMs
27
27
-`dstack-gateway`: A reverse proxy to forward TLS connections to CVMs
28
28
-`dstack-kms`: A KMS server to generate keys for CVMs
29
29
-`dstack-guest-agent`: A service running in CVM to serve containers' key derivation and attestation requests
@@ -39,7 +39,7 @@ dstack/
39
39
kms/ A prototype KMS server
40
40
guest-agent/ A service running in CVM to serve containers' key derivation and attestation requests.
41
41
tdxctl/ A CLI tool getting TDX quote, extending RTMR, generating cert for RA-TLS, etc.
42
-
teepod/ A service running in bare TDX host to manage CVMs
42
+
vmm/ A service running in bare TDX host to manage CVMs
43
43
gateway/ A reverse proxy to forward TLS connections to CVMs
44
44
certbot/ A tool to automatically obtain and renew TLS certificates for dstack-gateway
45
45
ra-rpc/ RA-TLS support for pRPC
@@ -84,10 +84,10 @@ vim ./build-config.sh
84
84
Now edit the config file. The following configurations values must be changed properly according to your environment:
85
85
86
86
```bash
87
-
# The internal port for teepod to listen to requests from you
88
-
TEEPOD_RPC_LISTEN_PORT=9080
89
-
# The start CID for teepod to allocate to CVMs
90
-
TEEPOD_CID_POOL_START=20000
87
+
# The internal port for dstack-vmm to listen to requests from you
88
+
VMM_RPC_LISTEN_PORT=9080
89
+
# The start CID for dstack-vmm to allocate to CVMs
90
+
VMM_CID_POOL_START=20000
91
91
92
92
# The internal port for kms to listen to requests from CVMs
93
93
KMS_RPC_LISTEN_PORT=9043
@@ -121,19 +121,19 @@ Run build.sh again to build the artifacts.
121
121
122
122
# If everything is okay, you should see the built artifacts in the `build` directory.
123
123
$ ls
124
-
certs images kms kms.toml run teepod teepod.toml dstack-gateway gateway.toml
124
+
certs images kms kms.toml run dstack-vmm vmm.toml dstack-gateway gateway.toml
125
125
```
126
126
127
127
Now you can open 3 terminals to start the components:
128
128
129
129
1. Run `./kms`
130
130
2. Run `sudo ./dstack-gateway -c gateway.toml`
131
-
3. Run `./teepod`
131
+
3. Run `./dstack-vmm -c vmm.toml`
132
132
133
133
## Deploy an App
134
-
Open the teepod webpage [http://localhost:9080](http://localhost:9080)(change the port according to your configuration) on your local machine to deploy a `docker-compose.yaml` file:
134
+
Open the dstack-vmm webpage [http://localhost:9080](http://localhost:9080)(change the port according to your configuration) on your local machine to deploy a `docker-compose.yaml` file:
135
135
136
-

136
+

137
137
138
138
After the container deployed, it should need some time to start the CVM and the containers. Time would be vary depending on your workload.
139
139
@@ -259,7 +259,7 @@ Given the config `GATEWAY_LISTEN_PORT_PASSTHROUGH=9008`, now we can go to [`http
259
259
260
260
## Upgrade an App
261
261
262
-
Got to the teepod webpage, click the [Upgrade] button, select or paste the compose file you want to upgrade to, and click the [Upgrade] button again.
262
+
Got to the dstack-vmm webpage, click the [Upgrade] button, select or paste the compose file you want to upgrade to, and click the [Upgrade] button again.
263
263
Upon successful initiation of the upgrade, you'll see a message prompting you to run the following command in your terminal to authorize the upgrade through KMS:
### Error from teepod: qemu-system-x86_64: -device vhost-vsock-pci,guest-cid=<id>: vhost-vsock: unable to set guest cid: Address already in use
373
+
### Error from dstack-vmm: qemu-system-x86_64: -device vhost-vsock-pci,guest-cid=<id>: vhost-vsock: unable to set guest cid: Address already in use
374
374
375
-
`teepod` may throw this error when creating a new VM if the [Unix Socket CID](https://man7.org/linux/man-pages/man7/vsock.7.html) is occupied. To solve the problem, first, you should list the occupied CID:
375
+
`dstack-vmm` may throw this error when creating a new VM if the [Unix Socket CID](https://man7.org/linux/man-pages/man7/vsock.7.html) is occupied. To solve the problem, first, you should list the occupied CID:
376
376
377
377
```bash
378
378
ps aux | grep 'guest-cid='
379
379
```
380
380
381
-
Then choose a new range of the CID not conflicting with the CID in use. You can change `build/teepod.toml` file and restart `teepod`. This error should disappear. For example, you may find 33000-34000 free to use:
381
+
Then choose a new range of the CID not conflicting with the CID in use. You can change `build/vmm.toml` file and restart `dstack-vmm`. This error should disappear. For example, you may find 33000-34000 free to use:
382
382
383
383
```toml
384
384
[cvm]
385
385
cid_start = 33000
386
386
cid_pool_size = 1000
387
387
```
388
388
389
-
When building the dstack from scratch, you should change the CID configs in `build-config.sh` instead, because `teepod.toml` file is generated by `build.sh`. Its content is derived from `build-config.sh`.
389
+
When building the dstack from scratch, you should change the CID configs in `build-config.sh` instead, because `vmm.toml` file is generated by `build.sh`. Its content is derived from `build-config.sh`.
390
390
391
391
You may encounter this problem when upgrading from an older version of dstack, because CID was introduced in `build-config.sh` in later versions. In such case, please follow the docs to add the missing entries in `build-config.sh` and rebuild dstack.
Copy file name to clipboardExpand all lines: docs/dstack-gateway.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,9 @@ Focus on these five fields in the `core.proxy` section:
41
41
42
42
For example, if your base domain is `gateway.example.com`, app ID is `<app_id>`, listening on `80`, and dstack-gateway is on port 7777, the URL would be `https://<app_id>-80.gateway.example.com:7777`
43
43
44
-
## Step 5: Adjust Configuration in `teepod.toml`
44
+
## Step 5: Adjust Configuration in `vmm.toml`
45
45
46
-
Open `teepod.toml` and adjust dstack-gateway configuration in the `gateway` section:
46
+
Open `vmm.toml` and adjust dstack-gateway configuration in the `gateway` section:
47
47
48
48
-`base_domain`: Same as `base_domain` from `gateway.toml`'s `core.proxy` section
49
49
-`port`: Same as `listen_port` from `gateway.toml`'s `core.proxy` section
0 commit comments