In Part 1 we saw how to create a new virtual machine instance (Linux Ubuntu), checking if the google guest…