..aka how to spend a magnificent Sunday-Monday in SUN’s company :)
If your applications run on Windows™ and you need a MySQL™ Cluster for testing purposes you can use Virtual Box to install SUN Solaris™ 10 and set up the Database Cluster creating 4 Solaris™ Zones (4 IP are required for a minimal Cluster setup).
It’s an interesting scenario.
You will need:
You can create the Solaris™ Zones manually or you can create them at once using a script file.
Note that you don’t need to install 4 Operating Systems. You’ll install 1 Solaris™ 10 and then 4 Zones, each with a different IP: one for the MGT Node, one for the SQL Node, one for the Data Node 1 and one for the Data Node 2.
To get started with Solaris™ Zones, I followed a very useful article by a Sun blogger - “Setting up MySQL Cluster using Solaris Zone”.
Unfortunately, after setting up Solaris™ 10 and the Database Cluster I was not able to connect through SSH to the SQL Node from my Vista™ machine, thus my Cluster was up, running but isolated and unreachable as well :(
After a long pause I got the idea for the solution of the issue (it’s typical): I forgot the configuration of port forwarding with NAT in the Solaris™ 10 Guest System.
…The disadvantage of NAT mode is that, much like a private network behind a router, the virtual machine is invisible and unreachable from the outside internet; you cannot run a server this way unless you set up port forwarding..
ummh.. always RTFM (and check it again, and again…)!
I set up the port forwarding with the commands:
C:\Program Files\Sun\xVM VirtualBox>VBoxManage.exe setextradata “Solaris-10″ “VB
oxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol” TCP
VirtualBox Command Line Management Interface Version 1.6.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
C:\Program Files\Sun\xVM VirtualBox>VBoxManage.exe setextradata “Solaris-10″ “VB
oxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort” 22
VirtualBox Command Line Management Interface Version 1.6.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
C:\Program Files\Sun\xVM VirtualBox>VBoxManage.exe setextradata “Solaris-10″ “VB
oxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort” 2222
VirtualBox Command Line Management Interface Version 1.6.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
However since making this change the Solaris™ Guest did not start anymore and I got the following error:
Configuration error: Failed to get the “MAC” value.
VBox status code: -2103 (VERR_CFGM_VALUE_NOT_FOUND).
I found some posts - like this - but they didn’t help me.
Conclusion: it’s 4:20 am and I am still looking for a solution to get my Cluster reachable, wondering why I want to use Solaris™ before attending an intensive SUN Training ;-)
I really want to figure out why if I set up the port forwarding for SSH Connections the Guest does not start.. but.. I’d go to bed ;-)
I’ll try to comment in the next days after getting help from VB guru :)