You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build scripts have a few issues when working with the vmware_desktop provider instead of the default virtualbox host - but thankfully they can be worked around as far as I can tell.
Vagrantfile
Obviously, the Vagrantfile needs some adjustment to work with VMware - and in some cases the edits are not obvious.
Firstly, the build scripts need to be told not to create a linked clone of the base box, otherwise packaging will fail later. The config additions look like this (as far as I can tell):
config.vm.provider "vmware_desktop" do |vmware|
vmware.linked_clone = false
end
Secondly, the default scotchbox synced_folder config won't work with VMware, because the VMware version doesn't support dmode and fmode parameters, relying instead on umask config.
Therefore, we change the folder sync line as follows:
This has been a painful learning process, but it turns out that for some reason there is a permissions failure when attempting to install Apache due to it trying to create /var/www/html and failing, which results in Apache not being installed at all. This applies only to VMware, but the issue can be mitigated by creating a html folder in the folder along with the Vagrantfile and install.sh before attempting to run vagrant up.
Conclusion
I'll keep this updated with any further issues and workarounds I find, as I find them.
The text was updated successfully, but these errors were encountered:
The build scripts have a few issues when working with the vmware_desktop provider instead of the default virtualbox host - but thankfully they can be worked around as far as I can tell.
Vagrantfile
Obviously, the Vagrantfile needs some adjustment to work with VMware - and in some cases the edits are not obvious.
Firstly, the build scripts need to be told not to create a linked clone of the base box, otherwise packaging will fail later. The config additions look like this (as far as I can tell):
Secondly, the default scotchbox
synced_folder
config won't work with VMware, because the VMware version doesn't supportdmode
andfmode
parameters, relying instead onumask
config.Therefore, we change the folder sync line as follows:
Apache installation
This has been a painful learning process, but it turns out that for some reason there is a permissions failure when attempting to install Apache due to it trying to create
/var/www/html
and failing, which results in Apache not being installed at all. This applies only to VMware, but the issue can be mitigated by creating ahtml
folder in the folder along with theVagrantfile
andinstall.sh
before attempting to runvagrant up
.Conclusion
I'll keep this updated with any further issues and workarounds I find, as I find them.
The text was updated successfully, but these errors were encountered: