Closed benng-at-wecasa closed 3 years ago
I've seen a similar error in VirtualBox (not specifically related to macos-virtualbox). The problem turned out to be that I was running other virtualization software in the background - in particular, Canonical's multipass. And that seemed to prevent VirtualBox from starting (and gave that rather unhelpful error message).
@benng-at-wecasa thanks for the bug report!
If you wouldn't mind, please include the file *_troubleshoot.txt
(macOS_troubleshoot.txt
by default) generated by ./macos_guest_virtualbox.sh troubleshoot
Running the command after VirtualBox fails to start (or providing the VBox.log
file generated after VirtualBox fails to start) will provide the most relevant information.
I suspect FrodeSolheim is correct and VirtualBox is crashing because it can't access VT-x/AMD-V that's being used by other software.
Thank you for your answer ! I have just updated the issue with the log files
According to this thread on the VirtualBox forums, some QEMU/KVM network devices might be blocking VirtualBox from using VT-x. Assuming you're not using them, delete these network devices (they should have qemu
in their device name) and that should free up VT-x for VirtualBox.
I use : sudo apt remove qemu-kvm
and it works :tada: then it get me through the other error which is
Attempting automated recognition of virtual machine graphical user interface.
Please waitVBoxManage: error: Argument aWidth is invalid (must be aWidth != 0 && aWidth <= 32767)
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component DisplayWrap, interface IDisplay, callee nsISupports
VBoxManage: error: Context: "TakeScreenShotToArray(iScreen, width, height, BitmapFormat_PNG, ComSafeArrayAsOutParam(saScreenshot))" at line 1880 of file VBoxManageControlVM.cpp
Are you perhaps running the script from a pipe? This makes VirtualBox act strangely. The script should be executed plainly (or explicitly with bash
) from a shell (./macos-guest-virtualbox.sh
)
I execute the script from zsh like this : ./macos-guest-virtualbox.sh
Le mar. 23 mars 2021 à 16:42, Jack @.***> a écrit :
Are you perhaps running the script from a pipe? This makes VirtualBox act strangely. The script should be executed plainly (or explicitly with bash) from a shell (./macos-guest-virtualbox.sh)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/myspaghetti/macos-virtualbox/issues/423#issuecomment-805008694, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQFOKH56G2NXGJURVVDWLDTFCZFXANCNFSM4ZKMDAHA .
Would you mind generating another macOS3_troubleshoot.txt
file and attaching it here?
Hi ! here is the file
Awright, here's another guess: you have an 11th-gen Intel CPU, and this pull request says that switching from MacOS1013_64
to MacOS_64
should make the VM boot on newer Intel CPUs (because VirtualBox changes the guest CPU profile when you do that).
You can either edit the script on line 390
, replacing MacOS1013_64
with MacOS_64
(and also on line 394
if you're pedantic) or by manually changing the setting in the VirtualBox GUI (Settings > General > Version > Mac OS X (64-bit)
), and then resuming the script from the aborted stage as described in the documentation.
nope :)
Good to know. It changed the guest CPU architecture to Penryn so now I can close the pull request because that will definitely do more harm than good.
Congrats, you solved one of my issues.
Sorry, I don't think I can solve yours. Most likely CPU incompatibility, maybe there's a magic CPUID that you can enter into VirtualBox's --cpuidset
option that'll make it compatible.
OK no worries thanks for the help
macOS3_troubleshoot.txt macOS3-2021-03-18-10-30-02.log
Here are the logs : any ideas ?