Michael K.
Michael K.

Reputation: 1788

Configure multiple monitors with vagrant

How to configure multiple monitors for the provider vmware-workstation in Vagrantfile?

For the provider virtualbox this can be done as follows:

config.vm.provider :virtualbox do |vb|
    vb.gui = true
    vb.customize ["modifyvm", :id, "--monitorcount", "2"]

As result the vm will be displayed on 2 monitors. How can I do this for vmware-workstation?

Upvotes: 3

Views: 2459

Answers (1)

StephenKing
StephenKing

Reputation: 37630

I have no VMware Workstation at hand, but according to this reference, the parameter you're searching for is svga.numDisplays.

So the resulting snippet for the Vagrantfile should be

config.vm.provider "vmware_fusion" do |v|
  v.vmx["svga.numDisplays"] = 2
  v.vmx["svga.autodetect"] = "FALSE"
end

Upvotes: 1

Related Questions