Fresh Solaris install, internet not working

Discussions about using Solaris guests in VirtualBox.

Fresh Solaris install, internet not working

Postby schw0060 » 15. Dec 2010, 00:38

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?
schw0060
 
Posts: 4
Joined: 14. Dec 2010, 19:44
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Solaris 10

Re: Fresh Solaris install, internet not working

Postby sej7278 » 15. Dec 2010, 01:31

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.
sej7278
Volunteer
 
Posts: 991
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD

Re: Fresh Solaris install, internet not working

Postby schw0060 » 15. Dec 2010, 20:51

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
schw0060
 
Posts: 4
Joined: 14. Dec 2010, 19:44
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Solaris 10

Re: Fresh Solaris install, internet not working

Postby schw0060 » 15. Dec 2010, 20:53

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.
schw0060
 
Posts: 4
Joined: 14. Dec 2010, 19:44
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Solaris 10

Re: Fresh Solaris install, internet not working

Postby sej7278 » 16. Dec 2010, 06:19

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.
sej7278
Volunteer
 
Posts: 991
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD

Re: Fresh Solaris install, internet not working

Postby tullio » 16. Dec 2010, 11:37

I am using NAT on my VB 3.2.12 and networking works. See next Thread.
tullio
 
Posts: 39
Joined: 7. Aug 2010, 05:29
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: OpenSolaris

Re: Fresh Solaris install, internet not working

Postby schw0060 » 17. Dec 2010, 18:01

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?
schw0060
 
Posts: 4
Joined: 14. Dec 2010, 19:44
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Solaris 10

Re: Fresh Solaris install, internet not working

Postby sej7278 » 17. Dec 2010, 19:11

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"
sej7278
Volunteer
 
Posts: 991
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD

Re: Fresh Solaris install, internet not working

Postby tullio » 18. Dec 2010, 18:34

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.
tullio
 
Posts: 39
Joined: 7. Aug 2010, 05:29
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: OpenSolaris

Re: Fresh Solaris install, internet not working

Postby rdhalstead » 6. Jan 2011, 21:23

You must create /etc/defaultrouter:
192.168.1.1

is the address of my router.

--ron
rdhalstead
 
Posts: 52
Joined: 26. Feb 2008, 18:58
Location: Las Vegas

Re: Fresh Solaris install, internet not working

Postby dcbecker » 24. May 2011, 16:57

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
dcbecker
 
Posts: 4
Joined: 24. May 2011, 16:17
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 7

Re: Fresh Solaris install, internet not working

Postby brijesh2289 » 3. Mar 2014, 07:39

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
brijesh2289
 
Posts: 4
Joined: 1. Mar 2014, 08:40

Re: Fresh Solaris install, internet not working

Postby brijesh2289 » 3. Mar 2014, 07:42

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
brijesh2289
 
Posts: 4
Joined: 1. Mar 2014, 08:40

Re: Fresh Solaris install, internet not working

Postby brijesh2289 » 21. Mar 2014, 08:02

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
brijesh2289
 
Posts: 4
Joined: 1. Mar 2014, 08:40

Re: Fresh Solaris install, internet not working

Postby brijesh2289 » 24. May 2014, 07:44

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
brijesh2289
 
Posts: 4
Joined: 1. Mar 2014, 08:40


Return to Solaris Guests

Who is online

Users browsing this forum: No registered users and 2 guests