diff --git a/README.md b/README.md index 74dcde2a..8457cf5b 100644 --- a/README.md +++ b/README.md @@ -336,7 +336,7 @@ See [`Containerfile`](Containerfile) for the complete dependency list used in CI --portable-volumes Path-hash inodes for cross-machine snapshot/restore --rootfs-size Minimum free space on rootfs (default: 10G) --no-snapshot Disable automatic snapshot creation ---ipv6-prefix Use explicit /64 prefix for routed mode (skips auto-detect and MASQUERADE) +--ipv6-prefix Use explicit /64 prefix for routed mode (skips auto-detect and MASQUERADE) ``` Run `fcvm --help` or `fcvm --help` for full options. diff --git a/src/commands/snapshot.rs b/src/commands/snapshot.rs index c43d4690..d7ec0006 100644 --- a/src/commands/snapshot.rs +++ b/src/commands/snapshot.rs @@ -794,6 +794,7 @@ pub async fn cmd_snapshot_run(args: SnapshotRunArgs) -> Result<()> { vm_state.config.user = snapshot_config.metadata.user.clone(); vm_state.config.port_mappings = port_mappings; vm_state.config.network_mode = network_mode; + vm_state.config.ipv6_prefix = snapshot_config.metadata.ipv6_prefix.clone(); vm_state.config.tty = tty_mode; vm_state.config.interactive = interactive;