Comments (24)
Have you tried to run a VBox guestcontrol command manually, did they work correctly? If not you have to fix your VirtualBox-Installation.
Also the "Source file "Tools/*" does not exist or is not a file" seems to imply that you don't had set up the Tools directory/config correctly. Are you sure everything is in place like the readme stated?
If guestcontrol works fine manually and you're sure Tools-Dir and Config are fine please enable the debugging uncomment the following lines in mkvm.sh:
#set -x
#set -e
set -x will print commands and their arguments as they are executed
set -e will exit the script when an error occurs
from modernie_selenium.
I have these issues too, does anyone know what the issue is? New version of VirtualBox maybe?
from modernie_selenium.
- counter=0
- '[' 0 -lt 10 ']'
- echo 'Running VBoxManage modifyvm "IE9 - Win7" --nic1 bridged --bridgeadapter1 "en0"'
Running VBoxManage modifyvm "IE9 - Win7" --nic1 bridged --bridgeadapter1 "en0" - bash -c 'VBoxManage modifyvm "IE9 - Win7" --nic1 bridged --bridgeadapter1 "en0"'
- '[' 0 = 0 ']'
- guestcontrol_error=0
- break
- '[' 0 = 0 ']'
- return 0
- chk error 0 'Could not set Bridge'
- '[' 0 '!=' 0 ']'
- log '[OK]'
- tee -a IE9-Win7.log
- echo '[OK]'
[OK] - set_rdp_config
- log 'Setting VRDE-Port ...'
- echo Setting VRDE-Port ...
- tee -a IE9-Win7.log
Setting VRDE-Port ...
++ find VMs/ -name '*.vbox' -print0
++ xargs -0 grep TCP/Ports
++ awk '-F"' '{print $4}'
++ sort - vrdeports=
- (( i=9000 ))
- (( i<=10000 ))
- echo
- grep -q 9000
from modernie_selenium.
Is your adapter name for the bridge really "en0" or "eth0" maybe?
from modernie_selenium.
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.23.78
WiFi Seems to be en0
Also I have en3 for Thunderbolt -> CAT5
If I manually switch to en0 and then run:
VBoxManage modifyvm "IE9 - Win7" --nic1 bridged --bridgeadapter1 "en0"
It switches to en3?
Some kind of preferencing?
Still, I dont get why it quits, its not really an error using either.
from modernie_selenium.
Looks like thats not the problem anyway. It goes OK and moves onto the next method: set_rdp_config()
- chk error 0 'Could not set Bridge'
- '[' 0 '!=' 0 ']'
- log '[OK]'
- echo '[OK]'
- tee -a IE9-Win7.log
[OK] - set_rdp_config
- log 'Setting VRDE-Port ...'
- echo Setting VRDE-Port ...
- tee -a IE9-Win7.log
Setting VRDE-Port ...
++ find VMs/ -name '*.vbox' -print0
++ xargs -0 grep TCP/Ports
++ awk '-F"' '{print $4}'
++ sort - vrdeports=
- (( i=9000 ))
- (( i<=10000 ))
- echo
- grep -q 9000
from modernie_selenium.
Sorry, my fault. Have you checked that the value for vm_path="VMs/" in config.sh is correct? It's the path were your VMs are created. It seems that the script isn't able to find a free port for VRDE (the port you use to connect to the machine via RDP). echo shouldn't be empty.
If your Path is correct you can skip the set_rdp_config-part (delete/comment line 585) and set the port manually after the Machines are created (or use the random port VirtualBox will set automatically), just to see if everything else works fine. If you don't want to connect to the machines via RDP it doesn't matter at all.
from modernie_selenium.
I commented out the RDP line and now I get this.
[OK]
- create_temp_path
- vm_temp='C:\Temp'
- log 'Creating C:\Temp...'
- echo Creating 'C:\Temp...'
- tee -a IE9-Win7.log
Creating C:\Temp... - execute 'VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username '''IEUser''' --password '''Passw0rd!''''
- counter=0
- '[' 0 -lt 10 ']'
- echo 'Running VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username '''IEUser''' --password '''Passw0rd!''''
Running VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username 'IEUser' --password 'Passw0rd!' - bash -c 'VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username '''IEUser''' --password '''Passw0rd!''''
bash: -c: line 0: unexpected EOF while looking for matching `"'
bash: -c: line 1: syntax error: unexpected end of file
from modernie_selenium.
Can you run guestcontrol commands by hand successfully?
from modernie_selenium.
Interesting.
This is what the script does:
VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username 'IEUser' --password 'Passw0rd!'
and i get: -bash: !': event not found
If I try this it seems to work:
VBoxManage guestcontrol 'IE9 - Win7' createdirectory 'C:\Temp' --username 'IEUser' --password 'Passw0rd!'
??? escaping the double quote? or something weird?
from modernie_selenium.
You can try to change execute "VBoxManage guestcontrol \"${vm_name}\" createdirectory \"${vm_temp}\" --username 'IEUser' --password 'Passw0rd!'"
to execute "VBoxManage guestcontrol \"${vm_name}\" createdirectory \"${vm_temp}\" --username \"IEUser\" --password \"Passw0rd!\""
and see if it plays nice. If so you have to do this on every VBoxManage-line containing username and password, of course.
If all works fine I'll change the script here.
from modernie_selenium.
[OK]
- create_temp_path
- vm_temp='C:\Temp'
- log 'Creating C:\Temp...'
- echo Creating 'C:\Temp...'
- tee -a IE9-Win7.log
Creating C:\Temp... - execute 'VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username "IEUser" --password "Passw0rd!"'
- counter=0
- '[' 0 -lt 10 ']'
- echo 'Running VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username "IEUser" --password "Passw0rd!"'
Running VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username "IEUser" --password "Passw0rd!" - bash -c 'VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username "IEUser" --password "Passw0rd!"'
bash: -c: line 0: unexpected EOF while looking for matching `"'
bash: -c: line 1: syntax error: unexpected end of file
from modernie_selenium.
The commands work when I run them manually with single quotes just not double quotes.
I tried to do a find replace but i think i just made it worse.
from modernie_selenium.
Well. Try the other way. Replace "
with '
and vice versa. Or try to escape the ! in Passw0rd! as it is a special char for bash.
from modernie_selenium.
hrm super annoying, i tried Passw0rd\!
and that didnt work, and then Passw0rd\\!
and that didnt work, goddamn escaping. Is there a way to use a different password?
from modernie_selenium.
Github is hiding my extra slashes? I can see them when I hit edit on the post!!! WTF?
from modernie_selenium.
I'm afraid not. You might can change it using a Windows-Command-Line-Tool using VBox guestcontrol, but you have to provide the initial Password.
What system you are using? Maybe your bash is different to ours.
(I've updated you comment to make the slashes visible.)
from modernie_selenium.
OSX Yosemite and iTerm 2
from modernie_selenium.
I know that https://github.com/tobyontour/modernie_selenium some changes for MacOS (some of them were already backported here), but I don't know if it was for Yosemite. But maybe toby has some advice that might help you.
I can check the script on Yosemite by myself but not in the next 2 weeks, sorry.
from modernie_selenium.
I got the same error.
I tried to change the path separator from backslash to slash.
It works without errors.
- vm_temp="C:\\Temp\\"
+ vm_temp="C:/Temp/"
from modernie_selenium.
Please check if you can run the guestcommand hand. What's your virtualbox version?
I got a similiar error a while ago because virtualbox guestcommand now needs a filename in the target for all copy actions, before it just used the source filename if just a path was given. This was fixed in ievms a while ago, so this shouldn't be your problem but maybe it's just another syntax problem.
I'm using 4.3.28-100309Debianwheezy without problems.
from modernie_selenium.
My virtualbox version is 4.3.28r100309 on OS X Yosemite 10.10.3, bash 4.3.33.
If I entered the command manually, I got the error above: "-bash: !': event not found"...
I think this problem may be only occurred on yosemite virtualbox.
Thank you for replying my comment.
from modernie_selenium.
I assume it's the !
in --password 'Passw0rd!'
, which is a reserved char in bash. Usually this shouldn't be a problem, because it's enclosed in '
, but it's worth a try. Just add a \
before the !
and run the command again.
from modernie_selenium.
I had a similar issue, a few notes:
- The method
copyto
required full, really full, path (I used pwd to format the path on the script). In config.sh I used:tools_path="$(pwd)/Tools/"
(@julienbechade @madhavajay). - When using single quotes I didn't need to escape the
!
on the password, when using double quotes I did need to escape (@gpkvt).
This was tested on Ubuntu 14.04 LTS.
from modernie_selenium.
Related Issues (12)
- Hostname change fails on WinXP HOT 2
- Phrasing in README
- Wrong instruction in "Getting started"
- EOF error while setting up VM while running mkvm.sh HOT 2
- VBoxManage: error: Could not find a controller named 'IDE' HOT 1
- Status Warning is set if machine was shut down on removal
- Timing problems on slow machines/high load HOT 1
- Set home page to "about:blank" HOT 1
- More cache limits HOT 1
- ievms+iectrl compatibility? HOT 7
- VM launch error on Debian Wheezy on EC2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modernie_selenium.