OpenSolaris on VirtualBox, small tip to make network to work on XP host
By jeanfrancoisdenise on Jun 16, 2008
This week I will do a presentation on JDK 6 Monitoring, Management and Troubleshooting. It takes place during The ServerSide Java Symposium in Prague.
In 10 clicks (and a bit of patience to make OpenSolaris to install), I was able to run JDK 6 u6 on OpenSolaris from my little XP Laptop. Everything worked well except the network... very sad when you need to download 300+ Megs of tools and runtime...
What went bad? I simply chose all the default values from the installer. Nothing special. Doing so, you get OpenSolaris guest running behind a NAT. This is the best choice when you don't want your guest to be known from your network. So what was wrong?
Default DNS configuration... Simple to fix, difficult to find (when you are not installing OS every day).
To fix it:
- You must be root. Switching to this user should be no problem. You installed the machine. So you know the root password.
- Save the existing /etc/nsswitch.conf
- Edit /etc/nsswitch.conf file
- Replace the line ipnodes: files by ipnodes: files dns mdns
- Replace the line hosts: files by hosts: files dns mdns
And you are done. No need to reboot. Just access to the WEB and it will work.
BTW, if you want to read the best paper ever written on JDK 6 troubleshooting, please read this one. AWESOME!
The entry point for JDK 6 troubleshooting is this URL : http://java.sun.com/javase/6/webnotes/trouble/
See you in Prague!