hashicorp/vagrant-vmware-desktop

VM customisation not applying

mason-rogers opened this issue · 1 comments

I am trying to configure a basic virtual machine for development - I am trying to create a full clone VM with 8GB ram and 4 vCPUs.
Any properties I update in the provider do not seem to be applied in the created VM. My changes are also not reflected in the debug log attached below

VMWare version

VMWare Workstation 16.2.1 Pro Build 18811642

Vagrant version

Vagrant 2.2.19

Vagrant VMware plugin version

vagrant-bindfs (1.1.9, global)
vagrant-vmware-desktop (3.0.1, global)

Vagrant VMware utility version

1.0.21

Host operating system

Windows 11 Pro Build 22000

Guest operating system

bento/debian-10

Vagrantfile

Vagrant.configure(2) do |config|
        config.ssh.forward_agent = true

        config.vm.define 'wisp_development'
        config.vm.box = 'bento/debian-10'
        config.vm.hostname = 'wisp'

        config.vm.provider 'vmware-desktop' do |v|
            v.linked_clone = false

            v.vmx['displayName'] = 'development'
            v.vmx['memsize'] = '8192'
            v.vmx['numvcpus'] = '4'
            v.vmx["cpuid.coresPerSocket"] = '1'
        end
end

Debug output

https://gist.github.com/victiondev/80dc0b66b4904855d0ecf3914a8fd95f

Expected behavior

A full clone VM should have been made with 4 vCPUs and 8GB ram.

Actual behavior

A linked clone VM was created, with the default settings of 2 vCPUs and 1GB ram.

Steps to reproduce

  1. vagrant up
  2. Open vmx file or look at configuration in VMWare
  3. See desired changes have not been applied

Right after submitting this I spotted my mistake... I was using provider 'vmware-desktop' and not provider 'vmware_desktop'. Don't know how I never spotted this...