Showing posts with label Sun. Show all posts
Showing posts with label Sun. Show all posts

Thursday, July 24, 2008

Sun announced intentions to release SunWebServer under BSD license

Sun will opensource part of their web stack under a BSD license.

"Sun announced
that it is open sourcing the core components of the Sun Java(TM) System Web Server 7.0 and Sun Java(TM) System Web Proxy technologies under a BSD (Berkeley Software Distribution) license in the Web Stack sub-project of the OpenSolaris community. The Web and Proxy source code will be available in CY08Q3."

http://www.opensolaris.org/os/project/webstack/

"We're pleased to announce that the Web Stack project will be taking on the Open Source releases of the Sun Web and Proxy Server.... under a BSD license. Read about this and other plans in the Sun press release"

Monday, June 09, 2008

ZFS Root in Solaris Express Community Edition - SXCE 90

Solaris Express Community Edition now supports ZFS root. Pick Solaris Express Developer in the grub menu, exit the X gui installer (Ctrl - Alt - Backspace) and use the text mode installer (install-solaris from the console). Now select "ZFS root" :-).

You should now have a default ZFS rpool.

It also supports JumpStart:

http://opensolaris.org/os/community/zfs/boot/zfsbootFAQ/

Saturday, May 24, 2008

Disable OpenSolaris Network Auto-Magic (NWAM)

NWAM is now enabled by default, but it has some limitations (only one NIC is enabled, etc). Personally, I like to configure the network interfaces myself.

To disable Network Auto-Magic on SXCE (Solaris Express Community
Edition) or Indiana (OpenSolaris):

# svcadm disable svc:/network/physical:nwam

Sunday, May 11, 2008

Dirty Java makes 70 people sick

At a Sun JavaOne conference in San Francisco apparently got infected with a norovirus that causes nausea, vomiting and diarrhea...
Bummer.

Monday, April 28, 2008

Solaris SnapUpgrade - LiveUpgrade replacement for ZFS root.

Apparently, LiveUpgrade won't be opensourced, or included in "Indiana", but there is a ZFS aware replacement in the works:

BE Utility for Snap Upgrade

The BE utility is the user interface for managing Boot Environments and is the replacement for the Live Upgrade commands (luupgrade(1M), lucreate(1M)...) This utility is intended to be used by System Administrators who want to manage multiple Solaris Instances on a single system. The BE utility will be implemented with ZFS support only, however a migration path from UFS to ZFS will also be supported but not in the Spring release.

Thursday, April 17, 2008

Solaris 10 update 5 Released

Solaris 10 5/08 has been released.

Tuesday, March 18, 2008

Sound Drivers on Solaris 10

If you need audio on your Solaris 10 workstation, you can install OSS - Open Sound System.

# pkgadd -d oss-solaris-v4.0-1014-i386.pkg
all
Open Sound System installation complete
# osstest
Sound subsystem and version: OSS 4.0 (b1014/200802281506) (0x00040003)
Platform: SunOS/i86pc 5.10 Generic_127112-10

*** Scanning sound adapter #-1 ***
/dev/oss/ich0/pcm0 (audio engine 0): Intel ICH7 (27DE)
- Performing audio playback test...
OK OK OK

*** All tests completed OK ***

You may need to log out of JDS and log in again to get the mixer working (or just restart the widget).

Mounting Linux NFS shares in Solaris 10

First, export a filesystem on your Linux box (add it to the exports file, and exportfs). Make sure the kernel-nfs server service is started.

# /etc/init.d/nfs-kernel-server start
Edit your exports file:
# ed /etc/exports
i
/home/cmihai 192.168.1.13/24(rw,no_root_squash,subtree_check,async)
w
q
Export the filesystem:
# exportfs
/home/cmihai 192.168.1.13/24
# showmount -e
Export list for loonix:
/home/cmihai 192.168.1.13/24

On your Solaris 10 box, run:
# showmount -e loonix
export list for loonix:
/home/cmihai 192.168.1.13/24
It should give you results consistent with the results you got on your Linux machine.
Trying to mount the share as NFSv4 will fail (Linux NFSv4 isn't compatible with Solaris NFSv4).
# mount loonix:/home/cmihai /storage
nfs mount: mount: /storage: Not owner
So we're going to mount the share as NFSv3:
# mount -o vers=3 loonix:/home/cmihai /storage
# mount
/storage on loonix:/home/cmihai remote/read/write/setuid/devices/vers=3/xattr/dev=4840010 on Tue Mar 18 14:59:06 2008

Monday, March 17, 2008

BrandZ - Linux Branded Zones in your Solaris 10 Containers



You can easily create a Linux branded container and install Debian, CentOS or some other Linux distribution inside your Solaris container.

# zonecfg -z loonix
loonix: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:loonix> create -t SUNWlx
zonecfg:loonix> set zonepath=/export/loonix
zonecfg:loonix> add net
zonecfg:loonix:net> set address=192.168.21.73/24
zonecfg:loonix:net> set physical=bge0
zonecfg:loonix:net> end
zonecfg:loonix> commit
zonecfg:loonix> exit


We can install from a tar image, a CD or DVD or even a .iso file.

# zoneadm -z loonix install -d /export/home/cmihai/Desktop/centosimg/centos_fs_image.tar
Installing zone 'loonix' at root directory '/export/loonix'
from archive '/export/home/cmihai/Desktop/centosimg/centos_fs_image.tar'

This process may take several minutes.

Setting up the initial lx brand environment.
System configuration modifications complete.
Setting up the initial lx brand environment.
System configuration modifications complete.

Installation of zone 'loonix' completed successfully.

Details saved to log file:
"/export/loonix/root/var/log/loonix.install.4649.log"

# zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- loonix installed /export/loonix lx shared

# zoneadm -z loonix boot
# zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 loonix running /export/loonix lx shared

# zlogin loonix
[Connected to zone 'loonix' pts/9]

Welcome to your shiny new Linux zone.

- The root password is 'root'. Please change it immediately.

- To enable networking goodness, see /etc/sysconfig/network.example.

- This message is in /etc/motd. Feel free to change it.

For anything more complicated, see:
http://opensolaris.org/os/community/brandz/

You have mail.
-bash-2.05b#

-bash-2.05b# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

-bash-2.05b# ed /etc/sysconfig/network
1d
1i
NETWORKING="yes"
HOSTNAME=loonix
.
w
q

Now we can ssh in :-).


Back in the global zone, a simple prstat -Z 1 1 reveals memory usage:

0 87 466M 568M 14% 0:40:04 5.7% global
1 11 7724K 12M 0.3% 0:00:00 0.0% loonix


As you can see, Solaris Zones are *very* lightweight.

There is also a Linux 2.6 BrandZ project, so we can easily run RHEL 5 or any other Linux distribution of our choice (with a bit of work).

Tuesday, March 11, 2008

SeamlessRDP - Using Two Systems and the Same Time - Solaris and Vista

Here is a demo of SeamlessRDP, using tsclient on Solaris to connect to a Vista desktop machine.



This is the Blastwave package. A simple "/opt/csw/bin/pkg-get install rdesktop" will do the trick.

Friday, February 29, 2008

Solaris, Serial Consoles, Cisco Firewalls and TFTP

Using a serial console + tftp server on Solaris:

% screen /dev/term/b 9600
or
% cu -s 9600 -l /dev/term/b
or
% tip hardwire
Where you have hardwire defined in /etc/remote:
hardwire:\
:dv=/dev/term/b:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:

Configuring a TFTPD server in Solaris 10:

# mkdir /tftpboot
# echo "tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot" > /etc/inetd.conf
# /usr/sbin/inetconv
# svcs network/tftp/udp6
# svcadm restart network/tftp/udp6
Now we can dump some new images in the ftpdir, and upgrade our firewall :-).

# copy tftp: flash:

Address or name of remote host []? 192.168.21.35

Source filename []? asa803-k8.bin

Destination filename [asa803-k8.bin]?

Accessing tftp://192.168.21.35/asa803-k8.bin

14635008 bytes copied in 32.260 secs (457344 bytes/sec)


# copy tftp: flash:

Address or name of remote host [192.168.21.35]?

Source filename [asa803-k8.bin]? asdm-603.bin

Destination filename [asdm-603.bin]?

Accessing tftp://192.168.21.35/asdm-603.bin

Tuesday, February 26, 2008

Can you say "death by server"?



http://www.flickr.com/photos/64856052@N00/894127714/sizes/o/

Wednesday, February 13, 2008

VirtualBox on Solaris - Virtualization Software - Installing VirtualBox on Solaris 10

While qemu + kqemu was sufficient for most tasks on Solaris hosts, VirtualBox tends to be faster and simpler to use.

Sneak peak and what VirtualBox can do for you:



VBox in seamless mode.



You get mouse integration, seamless mode, snapshots, shared clipboard and folders, Alt-Tabbing to Windows apps... Virtualbox has it all.

Grab the VirtualBox-opensolaris-amd64-1.5.51-r28040-beta.gz package, gunzip it and install the package as root:

# pkgadd -d VirtualBox-opensolaris-amd64-1.5.51-r28040-beta1
Of course, you'll need to add some libraries to your LD_LIBRARY_PATH:
solaris% ldd /opt/VirtualBox/VirtualBox | grep not
VBoxKeyboard.so => (file not found)
libqt-mt.so.3 => (file not found)
VBoxRT.so => (file not found)
VBoxREM.so => (file not found)
VBoxVMM.so => (file not found)
libX11.so.4 (SUNW_1.1) => (version not found)
VBoxXPCOM.so => (file not found)
Just grep the installed package contents database for the proper path, and export LD_LIBRARY_PATH
solaris% grep VBoxKeyboard.so /var/sadm/install/contents
/opt/VirtualBox/VBoxKeyboard.so f none 0755 root bin 57552 64233 1202698345 INNOvbox
solaris% ldd * | grep "not found"
[...]
solaris% LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/VirtualBox:/opt/VirtualBox/qtgcc/lib:/lib:/opt/sfw/lib
solaris% export LD_LIBRARY_PATH



Problem 1: the VBox.sh script relies on /bin/bash, change to /usr/bin/bash or /usr/bin/ksh.
Problem 2: VBoxDD.so needs a 64 bit libdlpi.so, but that's only been updated in OpenSolaris:

On Solaris 10 u4:
solaris% file /lib/libdlpi.so.1
/lib/libdlpi.so.1: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available
solaris% grep libdlpi.so.1 /var/sadm/install/contents
/lib/libdlpi.so.1 f none 0755 root bin 49784 28431 1168280598 SUNWcslr
solaris% pkginfo | grep SUNWcslr
system SUNWcslr Core Solaris Libraries (Root)
Easy fix :-). We download it from Nexenta!

http://archive.nexenta.org/elatte-unstable/base/sunwcslr

solaris% /usr/xpg4/bin/ar x sunwcslr_5.11.82-1_solaris-i386.deb
So we file the libs in data.tar - 64 bit:

solaris% tar -tf data.tar | grep libdlpi.so
./lib/amd64/libdlpi.so.1
./lib/libdlpi.so.1
./lib/amd64/libdlpi.so symbolic link to libdlpi.so.1
./lib/libdlpi.so symbolic link to libdlpi.so.1
solaris% tar xvf data.tar

solaris% file ./lib/amd64/libdlpi.so.1
libdlpi.so.1: ELF 64-bit LSB dynamic lib AMD64 Version 1 [CMOV], dynamically linked, not stripped, no debugging

Now we can start VirtualBox and run Vista on Solaris using virtualization :-).




If you want sound, install OSS.





As you can see, apart from the poor graphical performance (as expected from Virtualization software), performance is very good. Especially disk I/O.



And for all the people who wish to convert their VMware and QEmu virtual machines to Solaris / VirtualBox, read this.

Expect a FreeBSD version of VirtualBox soon.

Running Windows 2008 Enterprise and Vista Ultimate on VirtualBox:




If you want VirtualBox Guest Additions, just download a debian package or whatever, and use ar -x to unpack it. Grab the ISO and mount it in the virtual machine. You need them for AMD PCNet drivers (networking) on Vista and 2008 for example.


And, once VBoxGuest Additions are installed, you can work in seamless mode. It basically means the host and the guest Windows both appear on the same host desktop:






Shared folders:



Want to have some fun? Use VirtualBox virtual machines on ZFS with compression and snapshots :-). You'll get at least 1.5x compression with virtually no performance hit (less data to transfer == faster with a minor hit on CPU for compression / decompression).

Note: VirtualBox also released a 32 bit package for 32 bit x86 Solaris systems.

Tuesday, February 12, 2008

Sun buys Innotek - makers of VirtualBox

First MySQL, now Virtualbox. Sun loves paying money for GPLware.
Sun grabs Innotek. Containers, xVM, LDOMS... virtualization hype ftw.
http://www.theregister.co.uk/2008/02/12/sun_innotek_virtualization/

Schwartz takes another spin on the strategy wheel...



Image from Ars Technica

Good news is you can now run VirtualBox on Solaris x86. There's a beta of Virtualbox for (Open)Solaris x86-64.

Tuesday, February 05, 2008

Solaris Package Companion - Cool Solaris Tool

Cool little ksh script to manage Solaris packages and (meta) clusters:
http://opensolaris.org/os/project/svr4_packaging/package_companion/

Saturday, January 19, 2008

Sun buys MySQL: So far, so good... so what?

Sun Microsystems Inc. CEO Jonathan Schwartz answered some questions on his blog regarding Sun's future involvement with PostgreSQL, JavaDB Oracle relations and their plans with MySQL.

Sun also release a "Press Kit" on their webpage.

Some people on the other hand aren't too excited about the Sun - MySQL AB deal. Some even think this is a plot mastered by Larry Ellison to destroy MySQL (tinfoil hat, anyone?). Here's what Marketwatch has to say on the subject:

"BERKELEY, Calif. (MarketWatch) -- Sun Microsystems Inc. gobbling up MySQL is perhaps the worst single event I have ever witnessed in the history of tech mergers and acquisitions."

Wednesday, January 16, 2008

Sun Microsystems buys MySQL for 1 billion USD


" We announced big news today - our preliminary results for our fiscal second quarter, and as importantly, that we're acquiring MySQL AB." - Jonathan Schwartz - CEO of Sun Microsystems, Inc.

Read more here. Sun & MySQL AB press conference here.

I'm also not quite sure on how will this impact Sun's long term policy on PostgreSQL. Sun offers PostgreSQL support (PostgresSQL on Solaris even has native DTrace probes), and was a big contributor to the project. I don't think they would drop PostgreSQL support though. Maybe port PostgreSQL to MySQL as a storage engine? :-).

I'd still like to know how Sun expects to make money off MySQL. Well, enough money to justify the 1 billion investment. Sun does tend to make money off support contracts, services, hardware and all that, but MySQL AB hardly managed to pull in $50 million last year. And they have around 350 employees. And besides, nothing stopped Sun from selling MySQL support and all that before.

http://finance.google.com/finance?q=NASDAQ:JAVA

Sun Microsystems also released the Preliminary Results for Second Quarter Fiscal Year 2008 Report:

"Sun expects to report revenues for the second quarter of fiscal 2008 of approximately $3.60 billion, an increase of approximately 1 percent as compared with $3.57 billion for the second quarter of fiscal 2007. Net bookings for the second quarter of fiscal 2008 were approximately $3.85 billion, an increase of approximately 7% year over year."

I'm waiting to see how Oracle (who already bought Open Source databases Berkeley DB2 and the MySQL InnoDB engine) will react to this one. Remember what Oracle did when RedHat bought JBoss? Shortly after, Oracle "Unbreakable" Enterprise Linux (based on RHEL sources) "just happened". What now? OracleSolaris? :-). Oracle also tried to buy MySQL AB before.

On a side note, Oracle bought BEA today, for $8.5 billion, after BEA turned down their original offer of $6.7 billion. Here's the Oracle Press Release. A nice addition to their "strategic acquisition" list, which already gathered almost 40 entries since 2005.

Wednesday, January 09, 2008

Latest ZFS binaries and source code for MacOS available

The latest binaries and source code of the Zettabyte Filesystem for MacOS are now available:
http://zfs.macosforge.org/

Wednesday, January 02, 2008

Sun Project Caroline - load balanced VMs connected to a backend database

Sun Project Caroline is an interesting research project:

"Provides a dynamic virtualized grid of language-level virtual machines (VMs), networks, and storage. The principal VM is the Java Virtual Machine (JVM), but others can also be supported, such as for Perl, Python, and Ruby."

"The system makes use of multiple features of the Solaris Operating System (Solaris OS): Zones are used for VM isolation and network binding control. Resource pools and the Fair Share Scheduler are used to manage processor allocations. IP Filter is used in network connectivity control. Extended accounting facilities are used to account for CPU time and network traffic. ZFS file system features such as snapshots and clones are available to developers."
(Sun)

Saturday, December 22, 2007

6000 CPU Linux Cluster in a single 20KW machine

"SiCortex 5832 is a 5-teraflop single-unit supercomputer."
Bet that got your attention.

"It uses low-power, custom 64-bit MIPS-processor packages, which are basically entire computers on a single chip. 5832 processor cores and 8TB of RAM in one chassis, which draws less than 20 kilowatts of power."



"The SiCortex systems are completely open source, even down to the microcode."

They even say it runs a modified version of *cough* Gentoo Linux and the (now Sun) Lustre Filesystem.

SiCortex also offers a 72 CPU desktop machine that's as big.. well, as a desktop machine :-).

Say hell yes to Desktop HPC:



Read more about their Kautz digraph based fabric and implementation here:
http://www.sicortex.com/products/white_papers