Skip to content

Commit

Permalink
F OpenNebula#4089: Check microVM proccess have been created
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian González committed Mar 3, 2020
1 parent d39f315 commit aeaf4c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/vmm_mad/remotes/firecracker/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aeaf4c4

Please sign in to comment.