by jleonard · 11y ago · 0 comments
Unfortunately, some really bad technical solutions blow up very late.
The guy who wrote it is "faster than me", no doubt. The difference is the system I wrote for the company works and the system he rewrote is currently being rewritten (by me) because we couldn't get it to work for more than day without blowing up in some manner.
Maybe that isn't what's happening here, but speed isn't always the most important goal.
If you're developing locally on, say, a Mac, but you're pushing your code to production on Ubuntu Linux, those VMs are going to save you money by preventing bugs in the long term.
Of course, with modern development tools like Vagrant and Puppet/Chef/Ansible/Salt, setting up a VM should be quick and easy (and be something you can get one person to do and share their results with the rest of the team).
I was once considering creating a VM for each of my side projects, but unfortunately, I found they are tightly configured to the hosting environment! It's most probably my mistake, so maybe you could answer how to avoid following:
* I thought I could share VMs across computers, but having created a VM with hardware virtualization made tied it to a Intel Host with the virtualization extension. At home I have some laptops which are AMD's and don't support it.
* Is there a way to setup a whole VM from a script, including network card tunnels and shared folders?
* Is it possible to access a project environment, within a linux VM, which requires a Windows domain authentication? I guess it didn't work for me, since the requests originating from the VM lacked the necessary NTLM headers.
For ntlm there are a lot of solutions for Linux, but the one I have used was cntlm to give me a local proxy to call through for convenience.
I'm not sure about the NTLM part (and I understand NTLM is basically deprecated at this point, you should use Kerberos instead) but I believe it does everything else you're asking for.
It takes care of the VM setup (including memory and disk allocations, shared folders, and basic access), and provides hooks for scripts to set up the rest.
In my case, I favor Ansible for setting up the rest of the VM, as opposed to shell scripts. It automates package installs, configuration changes, and managing services. Once these two bits are configured properly (about a day's task, for a moderately complex system) Vagrant can re-build a development VM from scratch in about 10 minutes.
Best part? Once you have the CM scripts nailed down, you can use them to build your staging and production environments in the same way your local VM was built.
Do You recommend making it a Vagrant recipe this time? Are there any similar ones?
* VM host machine OS (Windows/linux/OSX)?
* Virtual machine (HyperV/VMware/KVM/...)?
* Guest OS (Windows/linux/OSX)?
Thanks!
The VM was VirtualBox.
The Guest OS I always used was Ubuntu Desktop (I remember starting with around ~10.10).
Also note this is a double submission his first submission didn't go well so he reposted a week later. Sounds like those two developers are job hunting to me and I would too.