Always clean stale taps before creating new ones
deleteTap before createTap in all four call sites: snapshot restore, cold boot, agent start, snapshot create. Prevents "Device or resource busy" from leftover taps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -63,6 +63,7 @@ export async function createSnapshot() {
|
||||
log("Setting up network...");
|
||||
ensureBridge();
|
||||
ensureNat();
|
||||
deleteTap(snap.tapDevice); // clean stale tap from previous run
|
||||
createTap(snap.tapDevice);
|
||||
|
||||
let proc: ChildProcess | null = null;
|
||||
|
||||
Reference in New Issue
Block a user