Page 1 of 1

Fresh Solaris install, internet not working

Posted: 15. Dec 2010, 00:38
by schw0060
Host system: Windows XP
Guest System : Solaris 10 (x86)
Virtual Box version : 3.2.12 r68302

Hello forum,

I just recently installed VirtualBox with all of the default settings.
Created a new VM, and installed Solaris 10 as a guest OS.
Then installed guest additions.

I have a hardwired ethernet connection.
I am connected to our internet through a switch, along with 3 other users.

To be quite honest, after researching how to set it up on google, I didn't really find anything useful.
I tried adjusting the settings to pretty much everything and rebooting, and nothing worked.
I'm pretty much stuck where I'm at, and our IT guy does not know anything about VirtualBox.
Can you guys help me out?

Re: Fresh Solaris install, internet not working

Posted: 15. Dec 2010, 01:31
by sej7278
you sure its a virtualbox problem - did you add nameservers to /etc/resolv.conf ?

when you say "the internet" do you mean the lan doesn't work either - can you ping the host, can you ping your gateway, can you ping 4.2.2.6 ?

are you using bridged networking or nat?

which version of solaris 10?

what does "netstat -rn" show?

are you using static ip or dhcp?

i'm pretty sure this isn't a vbox issue.

Re: Fresh Solaris install, internet not working

Posted: 15. Dec 2010, 20:51
by schw0060
I apologize for being a complete newb to VirtualBox.
I am not sure if this is a virtualbox issue or a me issue.
I'm leaning to the latter, but I could use some help.

For the settings in virtual box, I used the default settings.

The VirtualBox Host only adapter is configed to
IPv4 Address -- > 192.168.56.1
IPv4 Network Mask -- > 255.255.255.0

DHCP is enabled, DHCP server is configed
Server Address --> 192.168.56.100
Server Mask --> 255.255.255.0
LA Bound -- > 192.168.56.101
UA Bound -- > 192.168.56.254

The VM network adapter config according to my coworker who has a working copy of Solaris is
Enabled is checked.
Bridged adapter
Intel Gigabit Network Adapter
Adapter Type: Intel Pro/1000 MT Desktop
MAC Address is the default.

I don't have any bridged networks though, so I am confused on that one.

"ping 4.2.2.6" results in

ICMP Host Unreachable from gateway localhost (127.0.0.1)
for icmp from localhost (127.0.0.1) to 4.2.2.6
no answer from 4.2.2.6

"ping 192.168.56.1" results in

ICMP Host Unreachable from gateway localhost (127.0.0.1)
for icmp from localhost (127.0.0.1) to 192.168.56.1
no answer from 192.168.56.1

"ping 192.168.56.100" results in the same thing.

"ping 127.0.0.1" results in

127.0.0.1 is alive

netstat -rn results in

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
224.0.0.0 127.0.0.1 U 1 0 lo0
127.0.0.1 127.0.0.1 UH 8 323 lo0

Re: Fresh Solaris install, internet not working

Posted: 15. Dec 2010, 20:53
by schw0060
I have not manually added anything to any files, nor do I really know how to do that.
I have just tried to change the settings in Virtual Box, and that is about as far as I got.

Re: Fresh Solaris install, internet not working

Posted: 16. Dec 2010, 06:19
by sej7278
host only networking is the problem, as the name suggests you can only connect to the host.

you need bridged networking.

also having your gateway set to localhost isn't going to get you anywhere - it must be set to your router.

Re: Fresh Solaris install, internet not working

Posted: 16. Dec 2010, 11:37
by tullio
I am using NAT on my VB 3.2.12 and networking works. See next Thread.

Re: Fresh Solaris install, internet not working

Posted: 17. Dec 2010, 18:01
by schw0060
I cannot find the resolv.conf file, and in the hosts file it only mentions ::1 as a local host location.
Where would I change the 127.0.0.1 to my IP address?

Re: Fresh Solaris install, internet not working

Posted: 17. Dec 2010, 19:11
by sej7278
schw0060 wrote:I cannot find the resolv.conf file, and in the hosts file it only mentions ::1 as a local host location.
Where would I change the 127.0.0.1 to my IP address?
its definitely not a virtualbox problem, you need to get your IT guy to setup your solaris properly, for a start you want something like "nameserver 4.2.2.6" in /etc/resolv.conf and your router/gateway ip in /etc/defaultrouter like "192.168.1.1"

Re: Fresh Solaris install, internet not working

Posted: 18. Dec 2010, 18:34
by tullio
This is what I have in /etc/resolv.conf:
domain homenet.telecomitalia.it
nameserver 192.168.1.1
/etc/defaultrouter does not exist in my Solaris Express.

Re: Fresh Solaris install, internet not working

Posted: 6. Jan 2011, 21:23
by rdhalstead
You must create /etc/defaultrouter:
192.168.1.1

is the address of my router.

--ron

Re: Fresh Solaris install, internet not working

Posted: 24. May 2011, 16:57
by dcbecker
I've got the same problem still. I dont think the problem is simply a missing default router. if you cant ping that gateway address, adding a default router entry for that is not going to help either. I still suspect a missing ethernet device. But as far as I can tell, the guest host isnt even being assigned an ip address, so I wouldnt know what address to assign to a newly plumbed interface.

Dan

Re: Fresh Solaris install, internet not working

Posted: 3. Mar 2014, 07:39
by brijesh2289
I also got d same problem .As i have installed solaris 11 (*86 version) on virtualbox with the default settings but internet not working.
I am using bridged connection in vb.
I'm using LAN connection for internet with static IP=172.31.134.16 and gateway=172.31.134.1 and mask=255.255.0.0 .
>>#netstat -rn
Routing Table:IPv4
Destination Gateway Flag Ref use Interface
default 172.31.134.1 UG 1 67
127.0.0.1 127.0.0.1 UH 2 210 lo0
172.31.0.0 172.31.134.16 U 3 263 net0


>>#ipadm show-if net0
IFNAME CLASS STATE ACTIVE OVER
net0 ip ok yes ---

>>#ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPV4,VIRTUAL>MTU 8232 INDEX 1
inet 127.0.0.1 netmask ff000000
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPV4>MTU 1500 INDEX 5
inet 172.31.134.16 netmask ffff0000 broadcast 172.31.255.255
ether 0:c:29:56:57:f0
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPV4,VIRTUAL>MTU 8252 INDEX 1
inet 6::1/128

net0 :flags=20002000840<RUNNING,MULTICAST,IPV6>MTU 1500 INDEX 5 ipv6>mtu 1500 index 5
inet 6::/0
ether 0:c:29:5b:57:f0

Re: Fresh Solaris install, internet not working

Posted: 3. Mar 2014, 07:42
by brijesh2289
sej7278 wrote:host only networking is the problem, as the name suggests you can only connect to the host.

you need bridged networking.

also having your gateway set to localhost isn't going to get you anywhere - it must be set to your router.


Sir please explain something more

Re: Fresh Solaris install, internet not working

Posted: 21. Mar 2014, 08:02
by brijesh2289
When i installed initially solaris 11 on virtualbox internet working fine but when closed the virtualbox and again open it then internet is not working .What to do

Re: Fresh Solaris install, internet not working

Posted: 24. May 2014, 07:44
by brijesh2289
Is virtualization manager and the virtual machine monitor is same ??? i know its very basic bt as i'm beginner i want to know....Thanks in advance