From aeaf4c468e05d27268392b71a8e8202e4913622a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Tue, 3 Mar 2020 12:36:35 +0100 Subject: [PATCH] F #4089: Check microVM proccess have been created --- src/vmm_mad/remotes/firecracker/deploy | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/vmm_mad/remotes/firecracker/deploy b/src/vmm_mad/remotes/firecracker/deploy index 2ef033c9b13..387bc17628d 100755 --- a/src/vmm_mad/remotes/firecracker/deploy +++ b/src/vmm_mad/remotes/firecracker/deploy @@ -41,7 +41,14 @@ rc = microvm.create exit(-1) unless rc -# Start VNC +# Make sure process have started +sleep(1) +if microvm.get_pid == -1 + STDERR.puts 'MicroVM failed to start.' + exit(-1) +end + +# Start VNC (only started if necessary) microvm.vnc('start') # Set deploy_id