Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'd like to develop some node.js on my windows machine by using a virtual linux server that runs as a program and that I would access through ssh.

I'd like this virtual linux instance to access the network as well.

Is there any solution available? Preferably free ones.

share|improve this question

closed as off topic by Karl Bielefeldt, gnat, ChrisF Feb 29 '12 at 17:28

Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Just a note: As you'll be developing on windows you will access the code in the virtual machine using "shared folders" which simply is mounted drive via a network protocol. I haven't found solution with network drives to support symlinks. Some node packages try to create symlinks while being installed (if not all packages) so the setup is either impossible or a real pain. –  antitoxic Sep 30 '12 at 11:26

6 Answers 6

up vote 9 down vote accepted

You are looking for a free virtualisation solution, like VMware Player, Virtual Box and many others with a Linux virtual appliance like a Turnkey Linux.

The basic TurnKey Core Appliance is a pretty good starting point:

The common base system on top of which all TurnKey Linux appliances are built. It includes custom automated backup and migration software, a web management interface, automatic daily security updates, live installer, configuration console, and all other common features. Take a look at some screenshots.

Someone at LazyCoder has already written up a step by step guide for Getting started with node.js on Windows using VirtualBox and Turnkey Linux Core.

Personally, I would use VMWare Player, as in my experience, performance is significantly higher than the other options I mention. Now I know about it though, I might also look at using coLinux/andLinux after Jan Hudec's suggestion.

share|improve this answer
    
Definitely agree with VMWare Player, much better in my experience than Virtual Box (Which caused my PC to BSOD when trying to bridge network connections!) –  Richard Dalton Feb 29 '12 at 16:11
    
I've been an ardent user of Virtual Box, perhaps its time to make the switch. I guess I can't load VB images in VMP?? –  Darknight Feb 29 '12 at 16:30

To my mind the best way is using Virtual box + Drupal Quickstart: Pre-made Development Environment.
Quickstart is an export of VB Ubntu virtual machine which has been balance for developing with Drupal. It has devloping tools like NetBeans and Eclipse already installed there is also a preconfigured LAMP server included and even Firefox plug-ins for developers are installed.

share|improve this answer
    
Here is a video overview of Quickstart - youtu.be/g8Vo_yf_Rig Here is an Installation video of Quickstart -youtu.be/a6kOXTDReVw –  Povylas Feb 29 '12 at 17:10

From my personal experience, the performance between VMWare Player and VirtualBox is negligible. What I'd like to add, however, is that I've noticed Fedora doesn't run as smooth as Ubuntu (under VirtualBox, anyway) with 4GB allocated to the VM... I'd stick with VirtualBox because it's free.

share|improve this answer

I would prefer coLinux, because that kernel is compiled as native Win32 process and therefore avoid some of the performance penalty of full virtualization. andLinux provides full easy to install Ubuntu image based on coLinux kernel.

Note, that you won't be limited to ssh into the linux box; Linux applications can display directly to the windows host through the Xming implementation of X server for windows. But you can do that with full virtualization too.

share|improve this answer

I use Virtual Box for this. It's free and pretty easy to use. *

It is a little bit of hassle if you want to give your VM access to USB (which requires an extenson) or if you want to spread it across multiple cores (which often requires a BIOS change). But there is good support out there, both from Oracle and the community.

*When I say it was easy to use, I had used the pricey version of VMware in the past, so I knew most of the concepts.

share|improve this answer

Oracle VM VirtualBox is a very simple, free means of running a virtual machine from within a Windows environment.

share|improve this answer
4  
VirtualBox is my hands-down choice as well. It's simple and powerful. –  Adam Crossland Feb 29 '12 at 13:42
    
Just make sure you've got plenty of memory. On my work laptop with 4G of memory I could only give the VM 1.5G of memory and both native and guest processes were slow. At home on my 8G machine I give the guest 4G and everything works great. –  TMN Feb 29 '12 at 13:56
    
If all you're doing is running a virtual server for apache type things, then even 1.5GB of memory is massive overkill. –  TZHX Feb 29 '12 at 15:19
    
@TZHX: Good point. I was running Visual Studio+SQL Server in a Win7 guest, Apache httpd would require much fewer resources. –  TMN Feb 29 '12 at 16:37
    
would you mind explaining more on what it does and why do you recommend it as answering the question asked? "Link-only answers" are not quite welcome at Stack Exchange –  gnat Oct 12 '13 at 20:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.