diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-24 20:44:36 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-24 20:44:36 +0200 |
commit | 2c7ee5f8f8f4e334cb854f1ccbfd7a96392d1dae (patch) | |
tree | 0b88a2b31236e0463f29e5e424ac2e577a141220 | |
parent | 37ab27ccb898a02e8e934ddd7a99c5696bc03587 (diff) | |
download | vmadm-2c7ee5f8f8f4e334cb854f1ccbfd7a96392d1dae.tar.gz |
refactor: when creating many VMs, create all before waiting for SSH
-rw-r--r-- | src/cmd/new.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/new.rs b/src/cmd/new.rs index 39f54c9..4b6a4a3 100644 --- a/src/cmd/new.rs +++ b/src/cmd/new.rs @@ -64,7 +64,9 @@ pub fn new(specs: &[Specification]) -> Result<(), NewError> { args.set_memory(spec.memory_mib); args.set_vcpus(spec.cpus); virt_install(&args, &iso)?; + } + for spec in specs { info!("waiting for {} to open its SSH port", spec.name); wait_for_ssh(&spec.name); |