Setup LAMB VirtualBox, Linux, Networking

November 20, 2011 at 05:06:32
Specs: Windows 7, 12.0MB
I want to set up LAMP on Virtual Box on Windows7. I am wondering if it is possible to (regular cable modem from ISP connected to desktop through ethernet port, dynamic IP)

1) Connect from Windows7 to Linux (Apache, MySQL-server, etc...)
2) Connect from Linux to the Internet
3) Connect from Windows 7 to the Internet

...all at the same time?

Thank you.


See More: Setup LAMB VirtualBox, Linux, Networking

Report •


#1
November 20, 2011 at 14:23:54
I believe a router is needed besides a modem.

How do you know when a politician is lying? His mouth is moving.


Report •

#2
November 20, 2011 at 17:42:02
I dont need a router, and there are different options, even like having 5 different Linux distributions connected to each other within Windows and to Windows and to the Internet at the same time, but it takes a while to figure it out.

Report •

#3
November 20, 2011 at 19:11:27
Ok, I'm sure someone will be able to help you with the config.

How do you know when a politician is lying? His mouth is moving.


Report •

Related Solutions

#4
November 21, 2011 at 01:27:08
With a router this is simple. You just set the VM guests for bridged networking and each will get it's own IP address. But as you do not have a router, and are connecting directly to the modem, there are no available IP addresses to use.

The only solution in that case is to use NAT for the network mode and port forward any services that you require from the guests. This means, of course, that you can only have one web server on port 80, etc.

The help file tells you how to set up port forwarding with NAT networking.


Report •

#5
November 21, 2011 at 13:01:47
I didn't understand why he didn't want a router.

How do you know when a politician is lying? His mouth is moving.


Report •

#6
November 21, 2011 at 15:17:00
I am trying to stick to the option of Host-only Adapter + NAT (as suggested on VB support forum), but I cant get it to work at all. I got some pictures here: http://www.joliett89.comli.com/

Report •

#7
November 21, 2011 at 23:43:22
Ah, I hadn't thought of using two interfaces. That should certainly work. It looks like the problem that you have now is one of XAMPP configuration rather than a network problem. The message is saying that it is configured only to respond to the loopback interface.

Have a look at: http://www.apachefriends.org/f/view... .


Report •

#8
November 22, 2011 at 05:29:51
I read that the idea of "virtual" was to eliminate the need for extra interfaces.

How do you know when a politician is lying? His mouth is moving.


Report •

#9
November 22, 2011 at 07:20:22
'I read that the idea of "virtual" was to eliminate the need for extra interfaces.'

No. Where did you read that?


Report •

#10
November 22, 2011 at 12:46:35
I read that in a much more advanced forum than this one. I say more advanced because all the members are IT professionals, in much more advanced settings. I had the least experience which was running a single server with 16 workstations.

It sounds correct to me that having a NIC for each "virtual machine" defeats the purpose of "virtual".

How do you know when a politician is lying? His mouth is moving.


Report •

#11
November 22, 2011 at 13:27:06
The NICs are, of course virtual also. :)

I'm sure that you are correct that your experience was less than that of the other members on the forum you refer to. I looked after a network of 50+ servers and 1000+ workstations situated on several sites in several countries. I've no idea how that fits in your level of experience.

I take it from your posts that you are not familiar with VM software.


Report •

#12
November 22, 2011 at 13:52:27
You are correct. I have limited experience with VM software. However, no one mentioned virtual NICs before so I assumed they meant hardware interfaces.

How do you know when a politician is lying? His mouth is moving.


Report •

#13
November 22, 2011 at 16:36:24
I finally got it to work. I have Adapter 1 as Host-only and Adapter 2 as NAT. I am able to ping in both direction as long as the Windows Firewall is turned off.

Another thing is that I need to install things like httpd, mysgl-server, php php-pear php-mysql and vsftpd and then try to get it all connected with Windows, which is probably another task on its own (being able to ping does not mean being able to connect to http or ftp for example).

I already have all these programs installed, but if somebody could write a few points of what I am gonna be looking next that would make it a lot easier.

Overall I want to setup LAMP and emulate real server and connect to it with ftp, and IE or something like that so I can test and work on some websites (video site script, which is also gonna be another headache to get going, I think)


Report •


Ask Question