@@ -142,6 +142,38 @@ Otherwise, packets originating from the guest might be using old Link Layer
142
142
Address for up to arp cache timeout seconds. After said timeout period,
143
143
connectivity will work both ways even without an explicit flush.
144
144
145
+ ### Renaming host device names
146
+
147
+ In some environments where the jailer is not being used, restoring a snapshot
148
+ may be tricky because the tap device on the host will not be the same as the tap
149
+ device that the original VM was mapped to when it was snapshotted, as when the
150
+ tap device come from a pool of such devices.
151
+
152
+ In this case you can use the ` network_overrides ` parameter to snapshot restore
153
+ to specify which network device (based on the name inside the VM, such as
154
+ "eth0") maps to which host tap device (e.g. "vmtap01").
155
+
156
+ This may require reconfiguration of the networking inside the VM so that it is
157
+ still routable externally. The
158
+ [ network setup documentation] ( ../network-setup.md ) in the "In The Guest" section
159
+ describes what the typical setup is. If you are not using network namespaces or
160
+ the jailer, then the guest will have to be made aware (via vsock or other
161
+ channel) that it needs to reconfigure its network to match the network
162
+ configured on the tap device.
163
+
164
+ If the new TAP device, say ` vmtap3 ` has been configured to use a guest address
165
+ of ` 172.16.3.2 ` then after snapshot restore you would run something like:
166
+
167
+ ``` bash
168
+ # Clear out the previous addr and route
169
+ ip addr flush dev eth0
170
+ ip route flush dev eth0
171
+
172
+ # Configure the new address
173
+ ip addr add 172.16.3.2/30 dev eth0
174
+ ip route add defaul via 172.16.3.1/30 dev eth0
175
+ ```
176
+
145
177
# Ingress connectivity
146
178
147
179
The above setup only provides egress connectivity. If in addition we also want
0 commit comments