Closed no5764 closed 3 years ago
Using Windows 10 by the way.
The script is not meant to be run with elevated privileges, this creates permission issues with VirtualBox.
Please run the script with bash -x macos-guest-virtualbox.sh
so you can see which command specifically fails. The script normally terminates with an actionable error message so if it doesn't tell you why it terminated there is probably some non-script error.
So I did the bash thing and got this:
+ $'\r'
e.sh: line 6: $'\r': command not found
+ $'\r'
e.sh: line 15: $'\r': command not found
e.sh: line 16: syntax error near unexpected token `$'{\r''
'.sh: line 16: `function set_variables() {
I renamed it to e.sh
btw.
If you open it in Vim you can replace those newlines by typing " :%s/\r$//" ":x" to exit
Push-button installer of macOS on VirtualBox This script installs only open-source software and unmodified Apple binaries, and requires about 50GB of available storage, of which 25GB are for temporary installation files that may be deleted when the script is finished. The script interacts with the virtual machine twice, please do not interact with the virtual machine manually before the script is finished. Documentation about optional configuration, iCloud and iMessage connectivity, resuming the script by stages, and other topics can be viewed with the following command:
less comes with NO WARRANTY, to the extent permitted by law. For information about the terms of redistribution, see the file named README in the less distribution. Home page: http://www.greenwoodsoftware.com/less ]]
Press enter to review the script configuration+ clear_input_buffer_then_read
This is what is returned when I enter "bash -x macos-guest-virtualbox.sh"
You are running the script on a non-interactive terminal. [[ -t 1]]
fails because stdout
is non-interactive. Run bash with the -i
flag or run the script non-interactively if you're an advanced user.
I have made sure to allocate enough space for the downloads and have run the script as an admin. However, after being prompted to press "enter to see configuration or CTRL+C to exit" the script terminates. Any thoughts?