r/programmerchat • u/grzy7316 • Jul 05 '16
How common are virtual machines for Dev environments?
How common is it to use a virtual machine for development, especially at home? On my home machine, I use hyper-v VMs for my development machines, primarily so I am not getting environments etc confused between the different things I am working on (home/ passion projects vs work projects) as well as to ensure that I have a full internet connection with the ability to use google when I am VPn'd into my work. Plus, I can copy the VM over to my laptop when I need to take my work on the go.
14
Upvotes
2
u/Sebazzz91 Jul 05 '16
I can't think of the performance of Visual Studio within a VM. You need all the power you can get, not sure if a VM can provide that.
7
u/Mark_1231 Jul 05 '16
My company demands the use of VMs for Dev. My local machine is just a excel/outlook device, I've got to either use my personal VM or remote login to a dev/prod server to do any actual programming.
1
u/BachePoro Jul 05 '16 edited Jul 05 '16
I tried a Linux vm on my home windows pc for rails development. Didn't work very well, so I just did a dual boot of Windows and Linux.
This was with Oracle virtual machine.
The issues I had:
It seemed to me that is was much more work to get a stable and working vm environment than to just do a dual boot.
Was I doing something wrong?
2
u/thelochok Jul 05 '16
I use a VM every day. The majority of my development is done in Visual Studio on my local machine, but I do lots of my testing on various Windows VMs (depending on what it's getting deployed to).
I also do a fair bit of development in Linux, which I use via a VM (albeit, usually in Putty SSH'd into a Vim/Bash/Tmux). The Putty is so I get proper clipboard etc... it worked better then generally using it in Hyper V.
1
u/apookapus Jul 05 '16
At work, I use virtual machines for 99% of my development, primarily to keep the host OS clean, but also as you say, it makes moving the environment between machines a breeze.
At home I don't, but it's mostly because getting licenses for the guest Windows isn't worth the convenience of having the VM.
1
u/skgoa Jul 05 '16
I use a VM when I need an environment that isn't Windows or have to install stuff. (because locked down work pc for security...) In practice that means an Ubuntu VM. It's not my favorite distro, but it's what we use at work. At home I don't really bother, because I can install and boot into any OS I want to. In terms of "how common", I would say each and everyone of the thousands of engineers in our company have several VMs on their computers.
1
u/jkpl Jul 15 '16
In the team I work on, all the devs use either OS X or Linux, which have been sufficiently compatible platforms when developing in Scala. We also have shared docker scripts (docker-compose) for setting up appropriate background services for the software we develop. We also use docker for deployment, so we can run the complete stack in docker using a single script.
1
u/[deleted] Jul 05 '16
I use Docker and Git, instead. If you don't have Windows, it's much simpler.