Prepare, configure, and manage Firecracker microVMs in seconds!
virtualization linux microvm firecracker

refactor: reorder Tailscale setup commands for improved execution flow

+2 -6
+2 -6
crates/firecracker-vm/src/tailscale.rs
··· 31 31 run_ssh_command( 32 32 &key_path, 33 33 &guest_ip, 34 - &format!("tailscale up --auth-key {} --hostname {}", auth_key, name), 34 + "systemctl enable tailscaled && systemctl start tailscaled || true", 35 35 )?; 36 36 run_ssh_command( 37 37 &key_path, 38 38 &guest_ip, 39 - "systemctl enable --now tailscaled || true", 39 + &format!("tailscale up --auth-key {} --hostname {}", auth_key, name), 40 40 )?; 41 41 run_ssh_command(&key_path, &guest_ip, "systemctl status tailscaled || true")?; 42 42 run_ssh_command(&key_path, &guest_ip, "tailscale status || true")?; 43 43 println!("[+] Tailscale setup completed."); 44 - println!( 45 - "[+] You can access the VM via its Tailscale domain: {}", 46 - format!("{}.tailscale.net", name).cyan() 47 - ); 48 44 return Ok(()); 49 45 } 50 46 }