changing onos-build-vm.py to dowload and run instead of pipe

Change-Id: I341193bbc1cae9b807cc547b995688454b73dbb5
diff --git a/onos-build-vm.py b/onos-build-vm.py
index e1ef609..3695fda 100755
--- a/onos-build-vm.py
+++ b/onos-build-vm.py
@@ -24,7 +24,9 @@
     # start with sendline
     #TODO consider resizing the HDD
     url = 'https://gerrit.onlab.us/gitweb?p=ONOS-VM.git;a=blob_plain;hb=refs/heads/master;f=vm-setup.sh'
-    vm.sendline( 'wget -O - "%s" | bash' % url )
+    vm.sendline( 'wget -O vm-setup.sh "%s" | bash' % url )
+    vm.expect( prompt, timeout=20 )
+    vm.sendline( 'bash vm-setup.sh' )
     # end with expect prompt
     vm.expect( prompt, timeout=1200 )