Page 1 of 1

Solaris 11 is much different from previous versions

Posted: Fri Mar 30, 2012 2:30 pm
by cah
Since the old hardware failed, I got the 3-core system from Ping a couple of weeks ago.
I finally got time to work on it after uncle left for Taiwan.
Since Solaris 10 couldn't find the NICs, I decided to give Solaris 11 a try. Surprisingly, it found both NICs.

It first uses the DVD to boot into GUI environment with a default user "jack". Default root user password is "solaris" in this image but it won't matter when Solaris gets installed. The root will become a role and users need to run sudo to become root. Hence, installer's password is used in sudo.

On the desktop, there's an icon named "Install Oracle Solaris".
Double-click on it will start the real installation process.
It asks the installer's information and user credential before it starts.

Yesterday, I was tryinto change from DHCP to static IP on the server. The process is much different from any previous versions.

Code: Select all

netadm enable -p ncp DefaultFixed
ipadm create-ip net1
ipadm create-addr -T static -a local=192.168.1.225/24 net1/addr
route -p add default 192.168.1.1
When I tried to download package from Sun/Oracle, I saw unknown host. I then tried 'ping' and 'traceroute' and both showed me unknown host error. I knew it is not using dns to check. Manually modifying /etc/nsswitch.conf for "hosts: files dns" did not work.

I then checked nsswitch.conf man page and realized /etc/nsswitch.conf is obsolete and it is generated by SMF.
The new svc for nsswitch.conf is "svc:/system/name-service/switch".

svccfg is the command for all svc.

Code: Select all

svccfg -s svc:/system/name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: "files dns"
svc:/system/name-service/switch> exit
svcadm refresh name-service/switch
Then, the /etc/nsswitch.conf was regenerated with dns for hosts:

Code: Select all

hosts:  files dns
ipnodes:        files dns
There are a lot more to learn in this new OS....