Closed richierampage closed 9 years ago
Thanks for this Rich :)
This is awesome, thanks for taking the time to submit this Rich. I would like to add support for other virtual machine providers, but I only use VirtualBox so I have no way of testing the other platforms. I may move to vmware in the future, but for the time being VirtualBox fits my needs :)
As a way of allowing other providers to work with Vlad I have wrapped the VirtualBox settings (apart from the box image) so it should be pretty simple to create a bigger if statement to wrap all the settings for the different providers, with VirtualBox as the default provider. If I create the if statement are you happy with adding the settings you need into the mix?
Then there are the other issues you mentioned, but lets get the VagrantFile working first :)
Phil,
Great that you are happy to add this feature. I am happy to add my bits once you create the if statement mentioned.
Cheers
Rich
I've just pushed some code to the dev branch for this. I've tested this as working with virtual box on my local setup so let me know if you have any problems on your end.
Also, I wanted to use a box file from vagrant share and it turns out that Ubuntu don't have support for anything other than virtual box... I've therefore gone for the box https://vagrantcloud.com/hashicorp/boxes/precise64 which seems like a good alternative.
Haven't had much time to test but swapped in the new Vagrantfile and it worked fine. Thanks again.
Will try and find out why iptables command within MySQL playback fails, maybe the standard images have it installed already and vm ones don't?
Slightly off topic for VLAD maybe but also got digital ocean provisioning working too. My ultimate goal is a full dev/stage/prod tool, maybe using gitflow/drush deploy, dunno yet!
Cheers Rich
In case it's helpful, here's the changes (pretty simple, really) I made to the Drupal VM project to get it working with VMware: https://github.com/geerlingguy/drupal-vm/issues/35
Thanks Jeff, some tweaks have now been made to dev branch of VLAD to cater for this. Just add --provider=vmware_fusion.
On 24 March 2015 at 16:22, Jeff Geerling notifications@github.com wrote:
In case it's helpful, here's the changes (pretty simple, really) I made to the Drupal VM project to get it working with VMware: geerlingguy/drupal-vm#35 https://github.com/geerlingguy/drupal-vm/issues/35
— Reply to this email directly or view it on GitHub https://github.com/hashbangcode/vlad/issues/101#issuecomment-85587947.
Office: 01732 874054 Mobile: 07734 733541 Skype: richard.moger Twitter: richardmoger http://twitter.com/richardmoger
Is everything in place to allow this to work? If so I'll close this issue.
fine by me. thanks
[image: photo] Richard Moger Owner, Claritis Limited p:+44 (0)1732 874054 | m:+44 (0)7734 733 541 | e: richard.moger@claritis.co.uk | w:www.claritis.co.uk | a:The Coach House, West Malling, Kent ME19 6NA http://twitter.com/richardmoger http://us.linkedin.com/in/richard.moger Latest Tweet: https://twitter.com/richardmoger Well done to @eSynergyITrec https://twitter.com/eSynergyITrec for sponsoring the
https://twitter.com/drupal site to #aws https://twitter.com/aws to make it! http://t.co/M49Z7QLB8h 10:26 Apr-15 https://twitter.com/richardmoger/statuses/588287268810575872 Follow @richardmoger https://twitter.com/intent/user?screen_name=richardmoger https://twitter.com/?status=@richardmoger&in_reply_to_status_id=588287268810575872 <https://twitter.com/?status=RT @richardmoger Well done to @eSynergyITrec for sponsoring the #AWSSummit. Too busy deploying new #drupal site to #aws to make it! http://t.co/M49Z7QLB8h> https://twitter.com/richardmoger Get a signature like this: http://ws-stats.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS8/dXRtX3NvdXJjZT1leHRlbnNpb24mdXRtX21lZGl1bT1lbWFpbCZ1dG1fY2FtcGFpZ249cHJvbW9fNDUiLCAiZSI6ICJwcm9tb180NV9jbGljayJ9 Click here! http://ws-stats.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS8/dXRtX3NvdXJjZT1leHRlbnNpb24mdXRtX21lZGl1bT1lbWFpbCZ1dG1fY2FtcGFpZ249cHJvbW9fNDUiLCAiZSI6ICJwcm9tb180NV9jbGljayJ9
On 16 April 2015 at 16:15, Philip Norton notifications@github.com wrote:
Is everything in place to allow this to work? If so I'll close this issue.
— Reply to this email directly or view it on GitHub https://github.com/hashbangcode/vlad/issues/101#issuecomment-93760382.
Awesome :) Just thought I would check. Thanks!
No, thank you!
[image: photo] Richard Moger Owner, Claritis Limited p:+44 (0)1732 874054 | m:+44 (0)7734 733 541 | e: richard.moger@claritis.co.uk | w:www.claritis.co.uk | a:The Coach House, West Malling, Kent ME19 6NA http://twitter.com/richardmoger http://us.linkedin.com/in/richard.moger Latest Tweet: https://twitter.com/richardmoger Well done to @eSynergyITrec https://twitter.com/eSynergyITrec for sponsoring the
https://twitter.com/drupal site to #aws https://twitter.com/aws to make it! http://t.co/M49Z7QLB8h 10:26 Apr-15 https://twitter.com/richardmoger/statuses/588287268810575872 Follow @richardmoger https://twitter.com/intent/user?screen_name=richardmoger https://twitter.com/?status=@richardmoger&in_reply_to_status_id=588287268810575872 <https://twitter.com/?status=RT @richardmoger Well done to @eSynergyITrec for sponsoring the #AWSSummit. Too busy deploying new #drupal site to #aws to make it! http://t.co/M49Z7QLB8h> https://twitter.com/richardmoger Get a signature like this: http://ws-stats.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS8/dXRtX3NvdXJjZT1leHRlbnNpb24mdXRtX21lZGl1bT1lbWFpbCZ1dG1fY2FtcGFpZ249cHJvbW9fNDUiLCAiZSI6ICJwcm9tb180NV9jbGljayJ9 Click here! http://ws-stats.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS8/dXRtX3NvdXJjZT1leHRlbnNpb24mdXRtX21lZGl1bT1lbWFpbCZ1dG1fY2FtcGFpZ249cHJvbW9fNDUiLCAiZSI6ICJwcm9tb180NV9jbGljayJ9
On 16 April 2015 at 16:39, Philip Norton notifications@github.com wrote:
Awesome :) Just thought I would check. Thanks!
— Reply to this email directly or view it on GitHub https://github.com/hashbangcode/vlad/issues/101#issuecomment-93766509.
Hi,
VLAD is working well for me but I use vmware as the vm provider not virtualbox.
My motivation for using vmware is speed but there are some additional networking benefits that I am yet to use. Have no benchmarking figures to share but vmware it is definitely faster for me.
I thought I would share my findings here and suggest that the provider could optionally specified with something like:
vagrant up provider=vmware_fusion
orvagrant up provider=vmware_workstation
Vmware and vagrant plugin Licensing
Before you can use vmware, you need to buy licenses for both vmware and vagrant vmware provider. Installation of both are straightforward with details of the vagrant license being found https://docs.vagrantup.com/v2/vmware/installation.html
Config settings changes for vmware fusion
The following code changes work for me using vmware fusion (mac), pc users will need to tweak these for workstation, I think you just need to change
vmware_fusion
tovmware_workstation
but not sure.First, specify vmware image so replace current relative path with:
# Configure virtual machine options.
config.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
Then change provider config (of course memory and cpus can be changed to suit):
config.vm.provider "vmware_fusion" do |v|
v.gui = false
v.vmx["memsize"] = "2048"
v.vmx["numvcpus"] = "4"
end
Issues
I have only had some issues with iptables code not being recognised within mysql task so I removed it! This needs resolving properly really. I have not tested all aspects of vlad.
Happy to work on adding provider parameter feature if you think it is worth it?
Rich