expect the end
diff --git a/onos-build-vm.py b/onos-build-vm.py
index 04d8466..041a86f 100755
--- a/onos-build-vm.py
+++ b/onos-build-vm.py
@@ -53,7 +53,7 @@
     vm.sendline( ' wget -O onos-setup.sh "%s" | bash' % url ) # space prefix is used to avoid entry in history
     vm.expect( prompt, timeout=20 )
     vm.sendline( 'bash onos-setup.sh' )
-
+    vm.expect(prompt, timeout=20)
   
 
 def vmdk2size( vmdk ):