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

The following settings shouldn't exist: vmx #145

Closed
squeeb opened this issue Mar 8, 2025 · 1 comment
Closed

The following settings shouldn't exist: vmx #145

squeeb opened this issue Mar 8, 2025 · 1 comment

Comments

@squeeb
Copy link

squeeb commented Mar 8, 2025

Vagrant version

 vagrant -v
Vagrant 2.4.3

Vagrant VMware plugin version

 vagrant plugin list
vagrant-vmware-desktop (3.0.4, global)

Vagrant VMware utility version

 /opt/vagrant-vmware-desktop/bin/vagrant-vmware-utility -v
1.0.23

Host operating system

 uname -a
Darwin Pearl.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:22:00 PST 2025; root:xnu-11215.81.4~3/RELEASE_X86_64 x86_64

Guest operating system

vagrant@debian-12:~$ uname -a
Linux debian-12 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux
vagrant@debian-12:~$ ^C
vagrant@debian-12:~$ cat /etc/debian_version
12.9

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "bento/debian-12.9"
  config.vm.provider "vmware_desktop" do |vmware|
    vmware.allowlist_verified = true
    vmware.vmx = {
      "vhv.enable" => "TRUE"
    }
  end
end

Debug output

 vagrant up
Bringing machine 'default' up with 'vmware_desktop' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

VMware Desktop Provider:
* The following settings shouldn't exist: vmx

Expected behavior

Machine should boot and the vhv.enable parameter should be set to "TRUE", enabling nested virtualization support within the VM.

Actual behavior

Error is reported stating that The following settings shouldn't exist: vmx despite the vmx parameter being documented (https://developer.hashicorp.com/vagrant/docs/providers/vmware/configuration#vmx)[here https://developer.hashicorp.com/vagrant/docs/providers/vmware/configuration#vmx]

VM does not start.

Steps to reproduce

  • Use Vagrantfile above
  • Run vagrant up

References

@squeeb
Copy link
Author

squeeb commented Mar 9, 2025

Apologies, I was defining the attribute wrong. I misinterpreted the documentation to infer that the attribute vmx accepts a hash, rather than is a hash.

The correct syntax should have been:

Vagrant.configure("2") do |config|
  config.vm.box = "bento/debian-12.9"
  config.vm.provider "vmware_desktop" do |vmware|
    vmware.allowlist_verified = true
    vmware.vmx["vhv.enable"] = "TRUE"
  end
end

@squeeb squeeb closed this as completed Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant