Commit 4bbd39f
authored
ateom-microvm: give the micro-VM guest DNS so name-based egress works (#315)
## Problem
A micro-VM (`ateom-microvm`) actor gets a guest interface, default
route, and host NAT, but no `/etc/resolv.conf`: ateom drops atelet's
resolv.conf bind (a host bind is meaningless inside a VM) and never
sends `CreateSandbox.Dns`. The guest can reach IPs but not resolve
names, so workloads doing name-based egress — e.g. an OpenShell helpdesk
agent calling Ollama Cloud (`/chat`) — fail; only no-egress paths work.
## Fix
Write `/etc/resolv.conf` into the bundle rootfs before `mkfs.ext4` at
golden boot (`RunWorkload`), copied verbatim from the worker pod's own
resolv.conf (cluster DNS) — the same source the kata shim's `getDNS`
uses. Errors out if the host has no usable resolv.conf rather than
guessing. The restore path reuses the golden disk, so it inherits the
file. One helper + one call; no behavior change for workloads that don't
resolve names.
## Validation (kind on a KVM host)
- A helpdesk micro-VM actor `/chat` returns real model completions and
survives suspend/resume.
- counter-microvm unaffected.1 parent 416b070 commit 4bbd39f
2 files changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
153 | 175 | | |
154 | 176 | | |
155 | 177 | | |
| |||
217 | 239 | | |
218 | 240 | | |
219 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
220 | 245 | | |
221 | 246 | | |
222 | 247 | | |
| |||
0 commit comments