You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jeff Armstrong <mo...@aquabolt.com> on 2007/11/05 15:08:56 UTC

Re: dev environment

-------- Original Message --------
Subject: Re:32 & 64 bit memory differences
From: Mark Maunder <mm...@gmail.com>
To: Octavian Rasnita <or...@gmail.com>
CC: modperl@perl.apache.org
Date: 05 November 2007 06:32:11

> I wouldn't recommend doing dev on windows for a linux environment. Dual 
> boot your machine with Ubuntu linux and use that instead. It'll save you 
> a lot of time and headaches.


Or even make yourself a virtual PC using MS Virtual PC and install a 
Linux / Apache / Modperl / Samba / MySQL / SVN etc into it (e.g. Debian 
is easy, or whatever you need for your prod).

Put samba on the virtual linux box so you can edit code directly using 
your fav PC editor. Each developer gets his own Linux environment, which 
he can cart around on laptops etc, and can bounce apache without killing 
anyone else etc. And once you have made one virtual Linux box, it is 
easy to clone it.

Jeff

Re: dev environment

Posted by Carl Johnstone <mo...@fadetoblack.me.uk>.
> On 11/5/07, Jeff Armstrong <mo...@aquabolt.com> wrote:
>> Or even make yourself a virtual PC using MS Virtual PC and install a
>> Linux / Apache / Modperl / Samba / MySQL / SVN etc into it (e.g. Debian
>> is easy, or whatever you need for your prod).

Sorry replied elsewhere - missed the change in subject.

> Or:
> 2. Pay up for VMWare Workstation.

We use the free VMWare server, and just use smbmount. Obviously needs a 
little more linux knowledge to setup.

Carl


Re: dev environment

Posted by Jeff Pang <pa...@earthlink.net>.
----- Original Message ----- 
From: "Jeff Armstrong" <mo...@aquabolt.com>
Cc: "modperl" <mo...@perl.apache.org>

> 
>> 2. Pay up for VMWare Workstation.
>> 
>> With VMWare you can have virtual linux sessions running in Windows.
>> There's a free player and some free Linux virtual machines but if you
>> want to create your own virtual system you will need Workstation
>> (about 200 euro). With recent versions of the linux kernel you can
>> create virtual OS's that share folders with Windows (or the other way
>> round if you have Linux as your native OS). Even without shared folder
>> support you can access the virtual system from the host system via SSH
>> etc.
>> 
> 
> Nah - tried VMWare. For a PC user, MS Virtual PC is better / easier to 
> manage, even in a shared dev environment.
> 

Yup I also use VMware which hosts a linux os on my XP  for modperl development. I don't use samba for sharing, but use ftp instead. Because VMware has its virtual network address, you can connect to it from the PC. The only shortcoming for VMware (maybe for all virtual hosts) is it consume much resources. At least 150M memory is required. If the PC's memory is limited, then the entire OS will run slowly.

Re: dev environment

Posted by Jeff Armstrong <mo...@aquabolt.com>.
-------- Original Message --------
Subject: Re:dev environment
From: Rolf Banting <ro...@gmail.com>
To: modperl <mo...@perl.apache.org>
Date: 05 November 2007 14:52:12

> Or:
> 1. use cygwin ( if you can get mod_perl2 to build. I couldn't.)

Arghh - tooo painful! but nice if you want a bash shell that nearly 
works on XP! ;)

> 2. Pay up for VMWare Workstation.
> 
> With VMWare you can have virtual linux sessions running in Windows.
> There's a free player and some free Linux virtual machines but if you
> want to create your own virtual system you will need Workstation
> (about 200 euro). With recent versions of the linux kernel you can
> create virtual OS's that share folders with Windows (or the other way
> round if you have Linux as your native OS). Even without shared folder
> support you can access the virtual system from the host system via SSH
> etc.
> 

Nah - tried VMWare. For a PC user, MS Virtual PC is better / easier to 
manage, even in a shared dev environment.

The only time I would choose VMWare would be if someone had already 
created a specific appliance for you, or if the thought of installing 
Linux / Apache / MySQL etc was too scary. Don't bother with the shared 
folders - (requires tweaks on all the PC's running the virtual linux 
host), just plonk samba in and setup a "network" share.


my $0.02.

Jeff

Re: dev environment

Posted by Rolf Banting <ro...@gmail.com>.
On 11/5/07, Jeff Armstrong <mo...@aquabolt.com> wrote:
> Or even make yourself a virtual PC using MS Virtual PC and install a
> Linux / Apache / Modperl / Samba / MySQL / SVN etc into it (e.g. Debian
> is easy, or whatever you need for your prod).

Or:
1. use cygwin ( if you can get mod_perl2 to build. I couldn't.)
2. Pay up for VMWare Workstation.

With VMWare you can have virtual linux sessions running in Windows.
There's a free player and some free Linux virtual machines but if you
want to create your own virtual system you will need Workstation
(about 200 euro). With recent versions of the linux kernel you can
create virtual OS's that share folders with Windows (or the other way
round if you have Linux as your native OS). Even without shared folder
support you can access the virtual system from the host system via SSH
etc.

I've got mod_perl2 to fly on debian (woody) and RHEL3 virtual machines.

With a reasonable spec box you will hardly notice you are running a hosted OS.

VMWare is highly recommended. Check out these web sites:
http://en.wikipedia.org/wiki/VMware
http://www.vmware.com

Rolf

Re: dev environment

Posted by Jeff <mo...@aquabolt.com>.
-------- Original Message --------
Subject: Re:dev environment
From: Octavian Rasnita <or...@gmail.com>
To: Jeff Armstrong <mo...@aquabolt.com>, modperl <mo...@perl.apache.org>
Date: 05 November 2007 15:59:10

> Hi,
> 
> I have just installed MS Virtual PC, but I need to find out if the 
> virtual machines installed with it are as accessible as those created 
> with VMWare.

Hmmm - no graphics running on the virtual PC unless you install an 
xserver - maybe you can choose the font that windows uses to host the 
console?

> I have also tried with VMWare Workstation, and as a test I've installed 
> a Win XP Pro virtual machine under Win XP Pro, and the virtual OS was 
> very accessible (I am blind) but it worked a little slower than expected 
> (even though I have a Core 2 DUO at 3 GHz with 2 GB RAM and a 10000 RPM 
> HD).

Virtual XP and anything that required much graphics will be slower...

but a virtual Linux host dishing up dynamic Apache pages with MySQL etc 
stonks along on my desktop, and runs reasonably fast on my older type 
Laptop - provided you keep its memory max reasonable (I restrict to 
500MB for the virtual host on my 1.5GB RAM single core laptop)

> I wasn't able to use it because I didn't know how to set its share 
> directories and especially its network interface to be able to access 
> the internet from the virtual machine (if it is possible).

XP question (shares! argh) - but yes, the virtual host can access the 
internet and real network just like a normal host. Easy peasy if you are 
running a DHCP server, not too hard, even if you are not. You can 
restrict it if you want to block access to the real network etc.

> But MS Virtual PC might be a very good option... thank you for telling 
> me about it.
> 
> Will I be able to access the internet from the virtual Linux machine if 
> I need to connect to the internet only with a certain MAC address?

Should work fine - there are lots of options. The cleanest is if you can 
add your virtual boxs virtual MAC into your firewall etc, and treat it 
as if it were a completely separate host. If not, you can have your PC 
act as a mini-transparent-gateway for the virtual host.


Regards,
Jeff

Re: dev environment

Posted by Rolf Banting <ro...@gmail.com>.
On 11/5/07, Octavian Rasnita <or...@gmail.com> wrote:
> I wasn't able to use it because I didn't know how to set its share
> directories and especially its network interface to be able to access the
> internet from the virtual machine (if it is possible).

 1. You can access the internet from the virtual machine. It has its
own IP address so as far as the network is concerned it looks like a
different physical node.
2. Shared folders require installation of the vmware tools for the
guest operating system. Once installed the shares can be created via a
wizard accessible from the properties dialogue for the virtual
machine. When a share is created it shows up under /mnt/hgfs in Linux
virtual machines.

Rolf

Re: dev environment

Posted by Octavian Rasnita <or...@gmail.com>.
Hi,

I have just installed MS Virtual PC, but I need to find out if the virtual 
machines installed with it are as accessible as those created with VMWare.

I have also tried with VMWare Workstation, and as a test I've installed a 
Win XP Pro virtual machine under Win XP Pro, and the virtual OS was very 
accessible (I am blind) but it worked a little slower than expected (even 
though I have a Core 2 DUO at 3 GHz with 2 GB RAM and a 10000 RPM HD).

I wasn't able to use it because I didn't know how to set its share 
directories and especially its network interface to be able to access the 
internet from the virtual machine (if it is possible).

But MS Virtual PC might be a very good option... thank you for telling me 
about it.

Will I be able to access the internet from the virtual Linux machine if I 
need to connect to the internet only with a certain MAC address?

Thank you.

Octavian

----- Original Message ----- 
From: "Jeff Armstrong" <mo...@aquabolt.com>
To: "modperl" <mo...@perl.apache.org>
Sent: Monday, November 05, 2007 4:08 PM
Subject: Re: dev environment


> -------- Original Message --------
> Subject: Re:32 & 64 bit memory differences
> From: Mark Maunder <mm...@gmail.com>
> To: Octavian Rasnita <or...@gmail.com>
> CC: modperl@perl.apache.org
> Date: 05 November 2007 06:32:11
>
>> I wouldn't recommend doing dev on windows for a linux environment. Dual 
>> boot your machine with Ubuntu linux and use that instead. It'll save you 
>> a lot of time and headaches.
>
>
> Or even make yourself a virtual PC using MS Virtual PC and install a Linux 
> / Apache / Modperl / Samba / MySQL / SVN etc into it (e.g. Debian is easy, 
> or whatever you need for your prod).
>
> Put samba on the virtual linux box so you can edit code directly using 
> your fav PC editor. Each developer gets his own Linux environment, which 
> he can cart around on laptops etc, and can bounce apache without killing 
> anyone else etc. And once you have made one virtual Linux box, it is easy 
> to clone it.
>
> Jeff 


Re: dev environment

Posted by Issac Goldstand <ma...@beamartyr.net>.
For what it's worth, that's exactly how I handle my dev environments.
Samba share on a VMware machine configured the same as the server.  The
samba share is taken from subversion (eg, a local working copy) and I
can manage commits even from windows systems.  I also have the advantage
of having the same software installed as on the production server, so
less chances of different behavior on each end.  MySQL is kept up-do-dte
via replication from the live server.

  Issac

Jeff Armstrong wrote:
> -------- Original Message --------
> Subject: Re:32 & 64 bit memory differences
> From: Mark Maunder <mm...@gmail.com>
> To: Octavian Rasnita <or...@gmail.com>
> CC: modperl@perl.apache.org
> Date: 05 November 2007 06:32:11
> 
>> I wouldn't recommend doing dev on windows for a linux environment.
>> Dual boot your machine with Ubuntu linux and use that instead. It'll
>> save you a lot of time and headaches.
> 
> 
> Or even make yourself a virtual PC using MS Virtual PC and install a
> Linux / Apache / Modperl / Samba / MySQL / SVN etc into it (e.g. Debian
> is easy, or whatever you need for your prod).
> 
> Put samba on the virtual linux box so you can edit code directly using
> your fav PC editor. Each developer gets his own Linux environment, which
> he can cart around on laptops etc, and can bounce apache without killing
> anyone else etc. And once you have made one virtual Linux box, it is
> easy to clone it.
> 
> Jeff