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

vmware_fusion provider shouldn't print out warnings if the vagrantfile configures vmx data for pcislots #8426

Closed
ccope opened this issue Mar 30, 2017 · 3 comments

Comments

@ccope
Copy link

ccope commented Mar 30, 2017

This warning message is very loud and I need a way to silence it to avoid scaring my users.

Vagrant version

1.9.1
vagrant-vmware-fusion plugin version 4.0.18

Host operating system

OS X 10.11

Guest operating system

Ubuntu 14.04

Vagrantfile

Vagrant.configure("2") do |config|

  config.ssh.forward_agent = true

  config.vm.define "wb" do |wb|
    wb.vm.provider "vmware_fusion" do |fusion|
      fusion.cpus = `sysctl -n hw.physicalcpu`.to_i
      fusion.memory = 8*1024
      fusion.mount_strategy = "kernel"
      fusion.vmx['ethernet0.pcislotnumber'] = 32
      fusion.vmx['ethernet1.pcislotnumber'] = 33
    end
...

Expected behavior

It should not print out warnings if the vmx data is in the vagrant configuration

Actual behavior

What actually happened?

==> wb: Preparing network adapters...
WARNING: The VMX file for this box contains a setting that is automatically overwritten by Vagrant
WARNING: when started. Vagrant will stop overwriting this setting in an upcoming release which may
WARNING: prevent proper networking setup. Below is the detected VMX setting:
WARNING: 
WARNING:   ethernet0.pcislotnumber = "32"
WARNING: 
WARNING: If networking fails to properly configure, it may require this VMX setting. It can be manually
WARNING: applied via the Vagrantfile:
WARNING: 
WARNING:   Vagrant.configure(2) do |config|
WARNING:     config.vm.provider :vmare_fusion do |vmware|
WARNING:       vmware.vmx["ethernet0.pcislotnumber"] = "32"
WARNING:     end
WARNING:   end
WARNING: The VMX file for this box contains a setting that is automatically overwritten by Vagrant
WARNING: when started. Vagrant will stop overwriting this setting in an upcoming release which may
WARNING: prevent proper networking setup. Below is the detected VMX setting:
WARNING: 
WARNING:   ethernet1.pcislotnumber = "33"
WARNING: 
WARNING: If networking fails to properly configure, it may require this VMX setting. It can be manually
WARNING: applied via the Vagrantfile:
WARNING: 
WARNING:   Vagrant.configure(2) do |config|
WARNING:     config.vm.provider :vmare_fusion do |vmware|
WARNING:       vmware.vmx["ethernet1.pcislotnumber"] = "33"
WARNING:     end
WARNING:   end
==> wb: Starting the VMware VM...

References

Related to #8095

@theclapp
Copy link

Happens in 1.9.3 too.

@chrisroberts
Copy link
Member

This can be disabled via whitelisting option in the Vagrantfile: https://www.vagrantup.com/docs/vmware/boxes.html#vmx-whitelisting

Cheers!

@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants