LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2010, 09:56 AM   #1
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

Rep: Reputation: 18
need help virtualisaion


i have installed virtualbox on centos , and installed xp as a guest os.
my LAN is on 10.200.2.x/24 network
inorder to avoid conflict i have given centos ip as 10.200.2.191/24 and a virtual ip 192.168.56.4/24
my gateway is 10.200.2.1
i am able to ping from my guest os to host os the ip address but not the gateway inorder for internet connectivity
please help me with this


some of the configuration of virtual box

Display
Video Memory:

16 MB
3D Acceleration:

Disabled
2D Video Acceleration:

Disabled
Remote Display Server:

Disabled

Storage
IDE Controller


IDE Primary Master:

ms.vdi (Normal, 5.56 GB)
IDE Secondary Master (CD/DVD):

Host Drive Optiarc DVD RW AD-7170S (scd0)
Floppy Controller


Floppy Device 0:

Empty

Audio
Disabled



Network
Adapter 1:

PCnet-PCI II (Host-only adapter, 'vboxnet0')
 
Old 05-12-2010, 10:40 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi,

What version of CentOS are your running?
What are the specifications of your machine?
Have you setup a network bridge for your virtual interface for your VM?

Can you also post the output of:

Code:
#ifconfig -a
Is there a specific reason you're using VBox instead of Xen or KVM?

Cheers,
Yas
 
Old 05-12-2010, 11:01 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
The symptoms are expected using PCnet-PCI II (Host-only adapter, 'vboxnet0'). NAT (the default?) or Bridged would allow the guest to reach the gateway.

In the case of Bridged, the guest would have to be configured with an IP address on the LAN and would be visible on the LAN.
 
Old 05-13-2010, 08:14 AM   #4
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

Original Poster
Rep: Reputation: 18
the output of ifconfig -a

[root@demodb ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:30:05:E52:90
inet addr:10.200.2.191 Bcast:10.200.2.255 Mask:255.255.255.0
inet6 addr: fe80::230:5ff:fee5:d290/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1891815 errors:0 dropped:0 overruns:0 frame:0
TX packets:2723824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:227996882 (217.4 MiB) TX bytes:3299965319 (3.0 GiB)
Interrupt:217 Base address:0xc000

eth0:1 Link encap:Ethernet HWaddr 00:30:05:E52:90
inet addr:192.168.56.4 Bcast:192.168.56.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:217 Base address:0xc000

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:15126 errors:0 dropped:0 overruns:0 frame:0
TX packets:15126 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:75106122 (71.6 MiB) TX bytes:75106122 (71.6 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vboxnet0 Link encap:Ethernet HWaddr 0A:00:27:00:00:00
inet addr:192.168.56.1 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:293 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:55580 (54.2 KiB)


i have now changed the connection to bridge more but am not able to ping my host from the guest
please help me rectify this problem
 
Old 05-13-2010, 09:31 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by fernfrancis View Post
i have now changed the connection to bridge more but am not able to ping my host from the guest
Did you change the guest to a 10.200.2.x/24 IP address and netmask too?
 
Old 05-16-2010, 12:42 AM   #6
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

Original Poster
Rep: Reputation: 18
no my guest has ip in the range 192.168.56.X , i can give ip in the range of 10.200.2.X coz there are limited ip in out company network , if i give any ip the it would conflict. so i thousht of giving ip in the range of 192 and then do some NAT or redirect
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need documentation for virtualisaion sgurmit01 Red Hat 2 11-11-2009 06:43 AM


All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration