Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: vmnet_start_interface returned 1001 (VERR_INVALID_PARAMETER) #116

Open
JoelProminic opened this issue May 1, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@JoelProminic
Copy link
Contributor

@feather812002 reported this error when creating a new demo-tasks 0.1.20/22 instance with Super.Human.Installer:

Command: ["startvm", "68235e6c-5deb-4b86-81f0-1b19cba10ea6", "--type", "headless"]

Stderr: VBoxManage: error: Error: vmnet_start_interface returned 1001 (VERR_INVALID_PARAMETER).
VBoxManage: error: Failed to attach the network LUN (VERR_INVALID_PARAMETER)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
[SHI]: 'vagrant up' stopped with exit code: 1, elapsed time: 00:00:55
[SHI]: Server destroyed
@JoelProminic JoelProminic added bug Something isn't working wontfix This will not be worked on labels May 1, 2024
@JoelProminic JoelProminic self-assigned this May 1, 2024
@JoelProminic
Copy link
Contributor Author

This problem ended up being caused by host-only networks on macOS Ventura. Here is my writeup

I found this error message reported as an issue in the vagrant repository.

It seems like this is an issue with Host-Only Networks. Here is a suggested solution:
hashicorp/vagrant#12959 (comment)
hashicorp/vagrant#12959 (comment)
hashicorp/vagrant#12959 (comment)

The solution was to create new host-only network like this: NOTE: update this to match your network configuration

   VBoxManage hostonlynet add --name=HostOnly --netmask=255.255.255.0 --lower-ip=192.168.56.1 --upper-ip=192.168.56.100 --enable

And then add it to the Vagrantfile like this. However I'm not sure if this will work as-is with the Ansible scripts

   # Hack for MacOS Ventura - HostOnly network should exist under virtualbox
   v.customize ["modifyvm", :id, "--nic2", "hostonlynet", "--host-only-net2=HostOnly"]

This was supposed to be fixed in Vagrant 2.3.3, but @feather812002 is already on 2.4.0.

@feather812002 confirmed that this fix worked with Super.Human.Installer Development v0.9.7. (There were remaining issues that we were already investigating).

To check if you have already created the hostonlynet entry (or do cleanup/changes - see modify and remove subcommands), look for this section in ~/Library/VirtualBox/VirtualBox.xml:

      <HostOnlyNetworks>
        <HostOnlyNetwork name="HostOnly" .../>
      </HostOnlyNetworks>

I created this issue as a reference in case more people have this problem. If it becomes a common issue, we can considering adding logic to support it in Super.Human.Installer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant