diff --git a/.gitignore b/.gitignore index 61d565d..da017ab 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ state/ *.tgz *.squashfs* squashfs-root/ -rootfs.ext4 +rootfs* diff --git a/rootfs.ext4 b/rootfs.ext4 deleted file mode 100644 index 131bf10..0000000 Binary files a/rootfs.ext4 and /dev/null differ diff --git a/run.sh b/run.sh index bd67534..2321514 100755 --- a/run.sh +++ b/run.sh @@ -21,12 +21,13 @@ BR_IP="172.16.0.1" CIDR="24" VM_ID="$(date +%s)-$$" +VM_TAG="${VM_ID##*-}" VM_DIR="$STATE/vm-$VM_ID" mkdir -p "$VM_DIR" API_SOCK="$VM_DIR/firecracker.sock" LOG_FILE="$VM_DIR/firecracker.log" -TAP_DEV="tap-fc-$VM_ID" +TAP_DEV="tap-fc-$VM_TAG" # Allocate guest IP NEXT_IP_FILE="$STATE/next_ip" @@ -132,5 +133,4 @@ log "vm started successfully" log "guest ip: $GUEST_IP" log "ssh: ssh -i \"$SSH_KEY\" root@$GUEST_IP" log "logs: $LOG_FILE" -log "done"