November 21, 2024, 12:27:52 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Win7 - VirtualBox - CentOS6  (Read 15169 times)

Offline jtt89

  • Linux Noob !
  • *
  • Posts: 8
Win7 - VirtualBox - CentOS6
« on: November 20, 2011, 10:12:42 PM »
VB Network settings (info from VB support forum):
2 separate adapters: 1 - Host-only Adapter (to connect CentOS on VB to Win7) and 2 - NAT (to enable Internet access for CentOS).

HOST-ONLY ADAPTER:

"With host only networking virtual machines can talk to each other and the host as if they were connected through a physical ehternet switch. Similarly, as with internal networking however, a physical networking interface need not be present, and the virtual machines cannot talk to the world outside the host since they are not connected to a physical networking interface."

NAT:

"A virtual machine with NAT enabled acts much like a real computer that connects to the Internet through a router. The “router”, in this case, is the VirtualBox networking engine, which maps traffic from and to the virtual machine transparently. The disadvantage of NAT mode is that, much like a private network behind a router, the virtual machine is invisible and unreachable from the outside internet; you cannot run a server this way unless you set up port forwarding."

I looked at some tutorials, but I am stil wondering about few things:

1) Do I need to change the hostname in Linux and assign it a FDQ name etc
2) What configuration changes should I make to /etc/httpd/confg/httpd.confg and /etc/sysconfig/network

I am gonna make MySQL and Apache start after every boot, but then

3) What address am I gonna use in, lets say IE browser on Win to access Apache on Virtual Box
4) How is it gonna work with SHH (what address, do I need ports etc)

5) What are the other settings involved.

There is some info about it on the net, but it's kind of hard to get it all together.
Thank you.

Offline jtt89

  • Linux Noob !
  • *
  • Posts: 8
Re: Win7 - VirtualBox - CentOS6
« Reply #1 on: November 20, 2011, 10:54:04 PM »
Here is some additional info:

CENTOS:

[root@localhost ~]# ifconfig eth0 Link encap:Ethernet HWaddr 08:00:27:2B:94:89
 inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe2b:9489/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:138 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:17657 (17.2 KiB) TX bytes:6173 (6.0 KiB)

eth1 Link encap:Ethernet HWaddr 08:00:27:2B:FC:6D
 inet addr:10.0.3.15 Bcast:10.0.3.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe2b:fc6d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2167 errors:0 dropped:0 overruns:0 frame:0 TX packets:2091 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:943172 (921.0 KiB) TX bytes:194809 (190.2 KiB)

lo Link encap:Local Loopback
 inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)



WIN7

C:>ipconfig

Windows IP Configuration

Ethernet adapter Local Area Connection:

IPv4 Address: 62.21.38.13 Subnet Mask: 255.255.254.0 Default Gateway: 62.21.32.1

Ethernet adapter VirtualBox Host-Only Network:

IPv4 address: 192.168.56.1 Subnet Mask: 255.255.255.0 Default Gateway: (empty)

Offline jtt89

  • Linux Noob !
  • *
  • Posts: 8
Re: Win7 - VirtualBox - CentOS6
« Reply #2 on: November 21, 2011, 12:41:20 AM »
I'd rather edit the first post, but...

http://192.168.56.101/ works from withing Linux (it goes to the default Apache page), but not from Windows. http://192.168.56.1/ does not work anywhere

I can ping both 192.168.56.1 and 192.168.56.101 from Win cmd and get results...

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Win7 - VirtualBox - CentOS6
« Reply #3 on: December 22, 2011, 12:56:33 AM »
I didnt get what you are trying to do.

You would be able to open  apache page if its configured. If you configured apache on linux box then you should able to open page using linux box ip. It doesnt matter from where u access the apache i.e linux or windows. So if u configured apache in linux then u should able to open using  http://192.168.56.101  from any browser/box ( linux or windows)

Offline AaronSkido

  • Linux Noob !
  • *
  • Posts: 15
Win7 VirtualBox CentOS6
« Reply #4 on: September 10, 2017, 08:07:52 PM »
My wife uses Win 7 at work so having that familiarity can only help.  She hates computers, haha.