3 ms·
Do You know of any good examples of how to do it? I was once considering creating a VM for each of my side projects, but unfortunately, I found they are tightl
by eurekin 12y ago
Do You know of any good examples of how to do it?
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.
- mrj 12y agoYou should look into vagrant. It can help you with many of these things, essentially just providing a framework to get started. Writing the bootstrapping scripts will still be up to you, but it helps. 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.
- eurekin 12y agoA proxy! Ah, why I never thought of that, so simple... Thank You
- kyllo 12y agoHave you heard of Vagrant? http://vagrantup.com/ http://vagrantup.com/ 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.
- falcolas 12y agoAs mrj and kyllo said, Vagrant. 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.
- eurekin 12y agoSeems it might help in my current case... On my local dev machine I've replicated a project environment (Jenkins, Sonar, Artifactory, SCMManager). It was a huge boost for some tasks and I'm considering moving it out of my machine for others to use as well. If I do so, than I would probably configure it all manually, again from scratch. Do You recommend making it a Vagrant recipe this time? Are there any similar ones?
- gvb 12y agoSounds like there be dragons that I would like to avoid. I'm curious what your environment is: * VM host machine OS (Windows/linux/OSX)? * Virtual machine (HyperV/VMware/KVM/...)? * Guest OS (Windows/linux/OSX)? Thanks!
- eurekin 12y agoSo, my host is mostly Windows (work laptop comes with it normally and at home I like to play games a lot). The VM was VirtualBox. The Guest OS I always used was Ubuntu Desktop (I remember starting with around ~10.10).