mohatt / dashbrew

Vagrant build for developing PHP projects on different PHP versions and configurations
492 stars 38 forks source link

VMWare Provider Support #23

Open mathewpeterson opened 9 years ago

mathewpeterson commented 9 years ago

Currently, this project does not work with VMWare Fusion.

I have already created the vmware-iso builder for the base box (mdkholy/dashbrew-basebox#1) however when using this box there are issues actually running the provisioner.

This is the current error I'm getting;

➜  dashbrew git:(master) vagrant up --provider=vmware_fusion
Bringing machine 'default' up with 'vmware_fusion' provider...
==> default: Cloning VMware VM: 'mdkholy/dashbrew'. This can take some time...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 192.168.187.163:22
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for host entries
==> default: adding to (/etc/hosts) : 192.168.10.10  dashbrew.vm  # VAGRANT: 001312e6348306ac7f79eceb4cba1751 (default) / /Users/mathewpeterson/Sites/dashbrew/.vagrant/machines/default/vmware_fusion/ea70e051-c7d9-454e-92f2-05efc2414a22/dashbrew-ubuntu-14.04-amd64.vmx
==> default: Forwarding ports...
    default: -- 22 => 2222
==> default: Setting hostname...
==> default: Configuring network adapters within the VM...
==> default: Waiting for HGFS kernel module to load...
==> default: Enabling and configuring shared folders...
    default: -- /Users/mathewpeterson/Sites/dashbrew/public: /var/www
    default: -- /Users/mathewpeterson/Sites/dashbrew: /vagrant
==> default: Running provisioner: shell...
    default: Running: /var/folders/wl/sqy3rpzx2g15llf4gw6smfx40000gn/T/vagrant-shell20150315-3646-1j3r66.sh
==> default: stdin: is not a tty
==> default: [Info] An update patch is available for your box. Updating...
==> default: [Info] Update patch has been applied successfully
==> default: [Info] Initializing environment.yaml
==> default: [Debug] Initializing config files
==> default: [Debug] Finished running Dashbrew\Cli\Tasks\InitTask
==> default: [Debug] Running Dashbrew\Cli\Tasks\ConfigDefaultsTask
==> default: [Error] Failed to chown file "/vagrant/config/monit".
==> default: [Info] Finished in 0.23s
mathewpeterson commented 9 years ago

It seems that if I remove the user:group ownerships on the fs commands, the provisioner will work. I will check back when I have more info.

philwinkle commented 9 years ago

:+1:

jkenneydaniel commented 9 years ago

:+1:

mathewpeterson commented 9 years ago

I've added pr #29 which will run the provisioner on a vmware box.

Feedback is welcome.