Showing posts with label x86. Show all posts
Showing posts with label x86. Show all posts

Friday, September 16, 2011

Solaris 10 8/11 released

Solaris 10 8/11 (update 10) has now been released and is available for download.

A short summary of some of the changes since last update besides support for the SPARC T4:
  • Support for Two-Terabyte Memory Systems
  • You can install Oracle Solaris on systems with more than 2 TB of memory.
  • ZFS Enhancements such as ZFS diff, ZIL synchronicity, RADIZ/mirror hybrid allocator and read-only import.
  • diskinfo Utility
  • The diskinfo command-line utility enables system administrators to see the relationship between logical disk names (cXtYdZ) and bays in a JBOD or blade chassis.
  • Shared Memory Enhancements
  • Changes in creating, locking, unlocking, and destroying Intimate Shared Memory (ISM) and Dynamic Intimate Shared Memory (DISM) have resulted in significant performance improvement in the startup and shutdown of the Oracle database.
  • SPARC: Support for Fast Reboot
  • The integration of the Fast Reboot feature of Oracle Solaris on the SPARC platform enables the -f option to be used with the reboot command to accelerate the boot process by skipping certain POST tests.
  • libmtmalloc Improvements
  • libmtmalloc has undergone a performance improvement that specially targets 64-bit applications with a large number of threads.
  • LDAP Name Service
  • This section summarizes enhancements that have been made to the LDAP name service in this release. LDAP name service stand-alone support – This enhancement enables the LDAP name service tools ldapclient, ldapaddent, and ldaplist to populate and test an LDAP directory without having to configure the name service switch to use LDAP.
  • Samba Upgrade to Version 3.5.8
    Samba, which provides file and print services to SMB/CIFS (Server Message Block/Common Internet File System) clients, has been upgraded to version 3.5.8.

Update: This release could provide better ZFS performance besides the new features, around 7-20% for reads and 10-15% for writes. The tests where done with a few simple dd(1) instances but interesting anyway, read more here.

What's New in the Oracle Solaris 10 8/11 Release
Oracle Solaris Downloads
Solaris 10 update 10 ZFS refresh
Solaris 10 update 10 update
Solaris 10 update 10

Thursday, September 15, 2011

Solaris 11 EA

A much updated pre-release of Solaris 11 is now available on OTN, it is supposed to contain all the final functionality of Solaris 11. Text installer for SPARC/X64 is available. live-CD for X64 as well as repository images.

This release should work all the same (64-bit) X86 systems as Solaris 11 Express, but on for SPARC you must have a T or M-series class machine, support for older UltraSPARC based system has been removed.

Thanks to Craig S. Bell for pointing this out in previous comments, I did not expect any new release before Oracle World.

Update: The build of this release is snv_171, the Solaris 11 Express release was based on snv_151a.

Solaris 11 Early Adopter Program

Monday, August 15, 2011

First impressions of SmartOS/illumos KVM

A live image of SmartOS from Joyent with KVM was released today together with the source for the whole illumos KVM implementation. Much effort have been put into this by the Joyent team and the illumos community is blessed to have such great contributors. This is the first major feature that stands out from OpenSolaris/Solaris 11 Express.

This does not only makes illumos capable of running various fully virtualized guests, it also provides several other unique features for the guest compared to other virtualization hosts. First the security is better than vanilla KVM since there is a specific zone brand for KVM instances that also isolates it inside a zone even if a bug is exploited in KVM. Add to that the fully virtualized network stack with QOS that crossbow provides, all the features of ZFS (with bandwidth throttling in SmartOS) and DTrace!

This will bring most of the features of natives zones on illumos to a variety of other guest operating systems running under KVM and all common operating systems are already working including Windows, FreeBSD and Linux.

Have a look at Bryans slides from the presentation at KVM summit 2011, especially those with visualized DTrace statistics from KVM instances! There are also some screenshots of various guests running under KVM.

smartos.org
SmartOS (Live ISO image)
KVM on illumos

KVM for illumos getting closer

illumos has very powerful virtualization for network with crossbow, storage with ZFS and workloads with zones. Using these technologies together with XEN (xVM) in OpenSolaris had several synergies and allowed virtualization of other operating systems than Solaris. That project was sadly abandoned even before Oracle closed the OpenSolaris source.

Joyent are however developing KVM for illumos that could fill the gap. Signs of the implementation have can now be found in the illumos source and more in the Joyent branch which has a KDM brand for zones.

Bryan Cantrill will hold a presentation at KVM forum 2011 today named "Experiences porting KVM to SmartOS" (SmartOS is based on illumos) and he had a KVM related post on his blog a few days ago that was protected by a password. I'm sure more information will be available in the coming weeks.

Update:
Bryan have now posted the KVM entry in his blog publicly: KVM on illumos, the source is also available and there are SmartOS live images to try. I will post write another post when I get a spare hour to look at all this.

Feature #1362 add kvmstat for monitoring of KVM statistics
KVM Forum 2011
[HVM-556] add cores dataset to kvm brand zones and size based on VM RAM.

Friday, July 30, 2010

Continued Solaris support on HP/Dell

After some time of uncertainty Oracle have have now announced that Oracle Solaris will continue to be supported on HP and Dell system:

Oracle press release:
"Oracle today announced Dell and HP will certify and resell Oracle Solaris, Oracle Enterprise Linux and Oracle VM on their respective x86 platforms.

Customers will have full access to Oracle’s Premier Support for Oracle Solaris, Oracle Enterprise Linux and Oracle VM running on Dell and HP servers. This will enable fast and accurate issue resolution and reduced risk in a company’s operating environment.

Customers who subscribe to Oracle Premier Support will benefit from Oracle’s continuing investment in Oracle Solaris, Oracle Enterprise Linux and Oracle VM and the resulting innovation in future updates."

Tuesday, June 29, 2010

New Sun volume servers from Oracle

Yesterday Oracle released an overhaul of their volume server (x86) line. The flagship X4800 looks looks really impressive for an x86 system, eight sockets, up to 1TB memory and hot swappable IO. Equipped with Xeon X7560 CPUs it will fully loaded have 64 cores and a total of 128 thread. All PCI boards and power supplies are hot-pluggable and the four CPU modules look fairly hot-pluggable. One can wounder if support for CPU hot-plug come later future since Intel 7500 was the aim for CPU and Memory hot-plug discussed here earlier.

Oracle’s Sun Fire X4800 Server Architecture
Sun Fire X4800 server Data Sheet

Tuesday, April 20, 2010

New Sun T4 server?

Recently some references to a T4 server have showed up, it looks like it's Intel based and that it will at least be used as head in the 7000 series of storage appliance. It world be a bit confusing if this will be the final name for the server, since there are already a SPARC(R) chip with the name T2 with a T3 successor in the works. But this would indeed be to carrying on a Sun tradition, Sun had X64 workstations introduced in the Ultra-line with was based on SPARC(R) Ultra processors. We all love marketing don't we?

There are currently not much more information available, we have to wait and see both on what kind of server it is and what the final name will be.

Friday, March 26, 2010

OpenSolaris CPU Hot-plug for X86

I've always said that a real computer must be able to replace CPU/memory during operation. This has been possible for quite some time with a subset of the SPARC systems available from Sun and Fujitsu. Intel has this hardware feature available with their QuickPath architecture and AMD have had it since the introduction of HyperTransport 3.0.

Today Hot-plug support for CPU and memory for the Xeon 7500 platform was added to the OpenSolaris source.

It will certainly be of good use as X86 systems gets larger and more powerfull, one day they might even be used as mission critical enterprise servers. I sure hope that the current type of BIOS has been replaced by that day so that they can be managed directly over RS-232 or ethernet without the need for a graphical console. I know some X86 servers are managed over ethernet, but the still use graphics as the console, only sending it over the network.

PSARC/2009/104 Hot-Plug Support for ACPI-based Systems
6862510 provide support for cpu hot add on x86

HyperTransport 3.0 Press Release
Whitepaper Intel Nehalem

Update:
The heads-up is here:
"Introduces support for hot-adding cpus and memory to a running Xeon 7500
platform. See your OEM platform documentation to determine whether your
system supports this functionality."

Monday, January 4, 2010

Looking back a decade, part 3

This is the last part in the series, bare with me, i'm back to my ordinary posts after his. We are now looking at the time from 2008 to present.

The last year of the decade where very challenging for Sun, forcing more cutbacks and changes, the profit and stock price was no way near where it should be. Sadly, while Sun have had many good technical solutions and technologies they often have failed to profit from them. The crown jewel, Solaris also faced increased competition mainly from open source operating systems forcing it to evolve and change more rapidly.

A few years after Solaris 10 was released, Sun created a new distribution of OpenSolaris, this effort was named Project Indiana. The aim was to create a new packaging system and to make OpenSolaris more user friendly with a new graphical installer. The user environment was also to be updated to make it more similar to what other open source operating systems provided.

So after all the years of success in the nineties and early 2000 why did Solaris need to change except for opening the source? Solaris 10 was solid and combined an unique feature set with good performance, what problems initiated this new project? As I see it there have been three main areas that other operating systems have done better in than Solaris, all impacting new users acceptance of the platform:

Packaging
While SYSV packages have worked well for a long time (sort of) it lacks any function to install software from central repositories and to resolve dependencies between packages. This makes it harder for new users to get their software on the platform. It's not so much of a problem for large deployments where every package is controlled and well tested, but for developers, small companies and hobbyist it can be a bit of a challenge. The old system with patches was equally hard for new users, there where no built-in function in the patching system to find and apply new updates.

Software
Acceptance and integration of free software have been slow in Solaris, other operating systems have had a wider and more current base of packages available for installation in their repositories.

Hardware
Hardware support on the X86 platform have been limited, especially for home assembled systems that might use hardware that is not common in severs or finished systems from larger vendors.

On the bright side, all three points have been improved drastically. Project Indiana (what is now OpenSolaris 20xx.xx) addressed the first two points, the new packaging system IPS support central repositories and much more software is now available that can be directly installed with a simple command, including updates. It also comes with a brand new graphical (and soon text based) installer that makes the installation experience easier and prettier.

Hardware support for X86 platforms have also improved. Sun have developed more drivers and begun to support a wider range of x86 hardware, other vendors such as Intel and AMD have also contributed. There is support for laptops, WiFI chipsets, power management including suspend/resume and pretty all the latest CPUs from ADM and Intel. There is also support for the latest and greatest graphic cards from NVidia.

Solaris have several unique features not matched by any other operating system today, but the three above points have probably made it harder for new users to adapt the platform. Especially in recent years when users have became custom to easy software installation by a single click. In the good old days it could take days of compiling and patching to get any software installed ;)

As happened with many other of Suns inventions such as VFS, NFS, PAM, loadable kernel modules and RPC, the good ones have continued to spread from Solaris to other operating systems. MacOS X now has DTrace (almost got ZFS too) and FreeBSD has successfully ported ZFS.

Beginning with the integration of ZFS Sun became involved in the storage market, Solaris today contains a complete storage stack with ZFS, iSCSI, CIFS, NDMP, FCOE and NFS. This lead to (or probably been driven by) the amber road storage appliance in 2008. OpenSolaris was used as the base for this appliance system, leveraging DTrace and ZFS to the end user with a simple and powerful web user interface, by far the best graphical interface Sun has ever made. Amber road is based on ordinary X64 servers produced by Sun tied together with OpenSolaris and a custom built interface. This is a quite impressive product, and much thanks to that it uses both general propose hardware and most of the Software it's very competitively priced. I've thought we would see more of this, a similar for the MySQL databases for example.

The next challenge for Solaris will be the transformation from Solaris 10 to what today is OpenSolaris. This will not only be a new major release, it will also switch to the new packaging and installation system, both interactive and the succeeder to jumpstart named AI. OpenSolaris still needs some time to mature before it can be the source of the Solaris 11 or what marketing decides to name it. But it's getting closer, especially with the 2010.03 release, especially if it gets all its promised console based installation features.

On the hardware side Sun begun to partner with Intel from previously mainly working with AMD. The long awaited new Rock CPU was canceled in the last minute mid 2009, the launch was probably not long away since even Solaris 10 updates available to customers included some support for Rock. But the following bugid put an end to that: "6858457 Remove Solaris support for UltraSPARC-AT10 processor". Sun now have the Niagara line of CMT processors for throughput computing, but relies on Fujitsu for single thread performance, Rock should have made this gap smaller, delivering CMT with better performance per thread. The current M-class of servers are performing well, the SPARC64-VII processors from Fujitsu have seen several updates in the least years. They will probably continue be competitive for some time to come but SPARC customers need to to be assured with plans and commitment for future generations.

In the last year of the decade it was announced that Oracle intended to buy Sun, and while the deal is not finished, anything else is pretty much unthinkable by now. I think it wold have been better if Sun could have remained independent, but Sun needed increased profit, it's was becoming clear that this downward spiral was nothing Sun could get out of on it's own. The offer discussed right before the Oracle deal was that IBM where to buy Sun, this would most likely have been a disaster for most of Sun products. IBM would have piked the the best parts and then assimilated the rest. And there are several technologies and products from Sun that have a great value besides Solaris, SPARC, Unified Storage, MySQL and Java, for example VirtualBox, NetBeans and SunRay, to name a few.

Solaris and several other products have a good foundation to stand on, but the limbo caused by the Oracle deal is making Sun bleed, the acquisition should have been completed many month ago. OpenSolaris is off to a good start as the base of the next Solaris but more resources are needed in the project. Hopefully Oracle will keep it's promise and continue to invest in Solaris to a even greater extent than Sun has been able to do the last years. The same applies to the hardware, Oracle needs to deliver on it's promise to invest more in SPARC and show a new roadmap, otherwise the future of Solaris will only be on X64 in a few years. This might sadly be the case in the long run anyhow, it looks like we are on a road towards an single desktop and server architecture. If this is the case, please at least include OBP on these servers...

The next month will probably reveal more of the future for Sun and it's products, it will be interesting to see Oracles true intentions once the deal is finished and how Sun will be incorporated into big red.

Friday, January 1, 2010

Looking back a decade, part 2

I've found out that this takes much time and it's hard to sort of the important things out of everything you would want to cover and not going into any depth. But three parts where promised so here's what have had time to write. The events will be dated around 2004-2006.

In the end of January 2005 "s10_74L2" a was finished, the release build of Solaris 10, which still is the active and supported major version. It had several features that changed the way we work with Unix systems. It was also the larges update to Solaris since the move to SVR4 in 2.0. The main focus was on performance but there where also huge improvements in virtualization, fault management and observability.

Previous Solaris releases was sometimes bashed with names such as "slowlaris", especially when run on workstation class machines. Solaris had overhead that needed to be removed and other operating systems did some things faster. The slogan "if another OS is faster, it is a Solaris bug" was used during development and it payed of making Solaris 10 substantially faster than in predecessors. One thing developed to improve performance was a library for microbenchmarking of system calls, libmicro. With performance data on every system call the ones which where slow could be fixed and compared to other operating systems. Another area of improvement was the networking stack, much of this was delivered by two projects, FireEngine for better TCP performance and Yosemite (in update 2) which did the same for UDP.

Solaris 10 was also the first release to contain light weight virtualization in the form of Solaris zones for both security and workload separation. While the initial release had several flaws when upgrading, it was fixed and many more features added in subsequent update releases.

DTrace, Service Management Facility and Fault Manager Daemon was other important additions, especially DTrace which really was, and still is, groundbreaking for debugging and performance tuning. ZFS which was much needed solution for an own modern volume manager and filesystem for Solaris was often mentioned as a major feature long before Solaris 10 was released, for example in the "Ten moves ahead" campaign. But ZFS was not released until over a year later with the second update, Solaris 10 6/06.

All this was crucial for Solaris to survive the competition and Solaris 10 delivered, albeit with somewhat slow adaptation in the beginning due to the large amount of changes. Without all the work put into this release Solaris would probably have lost it's competitive edge and faded away. The improved performance was required for Solaris to continue to be a competitive OS, the improved security and virtualization where needed additions, but what made most impact was probably DTrace and ZFS which both broke new ground.

Something worth a notice is that Oracle did chose Solaris 10 as it's preferred open source 64-bit developer platform in November 2006. So even if the bounds between Sun and Oracle had been stronger, it did still exist.

2005 was not only the year Solaris 10 was released, it was also the year it became free and open, Solaris 10 was made available freely for download and the source was released. As discussed in the first part, this might have been a bit late, especially the free for use bit, the source was probably even harder to rush, but giving people a chance to test Solaris for free should have been given long before Solaris 10, at least on the X86 side.

On the hardware side the dual-core UltraSPARC IV "Jaguar" was in the heart of most SPARC servers shipped. Sun and Fujitsu formed a partnership to develop future SPARC64 systems together. This resulted in Sun canceling it's own UltraSPARC V processor "Millennium" and shifted its focus on developing Chip MultiThreading processors with technology acquired when buying Aftra Websystems. The first CMT processor was released in November 2005, the UltraSPARC T1 with 8 cores and 4 hardware threads per core. Sun also hinted on a much more advanced CMT processor that was under development, named Rock, or the UltraSPARC RK, which would include features such as transactional memory and higher thread performance than the T1. The Fujitsu partnership helped Sun a lot, both by ending the head-on competition with Fujitsu and by giving Sun the CPU they needed for single thread performance while developing it's own line of CMT processors.

In the X86 space Sun bought Kealia which was started by one of the Sun founders, Andy Bechtolsheim. Kealia focused on developing 64-bit AMD opteron servers and became the foundation for the next generation of X86 servers including the 4 unit, 48 disk storage server x4500 "Thumper".

To summarize, Sun spent lots of resources on making Solaris more competitive and making if free, forming a alliance which cut the R&D spending on current SPARC systems while developing the next generation of system based on CMT. This was also the time when the real commitment to X86 servers began, with Kealia.

Thursday, December 17, 2009

New and improved CPU support

OpenSolaris 2010.03 will support for two new generations of processors, one SPARC and one AMD X86. Fault management will also be enhanced for the upcoming Intel Nehalem EX.

Rainbow falls or perhaps "UltraSPARC T3"
Support for the next generation of CMT processors from Sun planned for 2010 was added to build 131. This new chip will have 16 cores with 8 (or even 16?) threads each. No public PSARC or bugid is available, but here is the putback:
PSARC 2009/177 Solaris support for Rainbow Falls platforms
Here is a presentation of the CPU from the hotchips conference:
Sun's Next Generation CMT Processor

AMD Magny-Cours processor
A 8-12 core CPU that should appear in 2010, the following changes was integrated into build 128:
6843035 Need support for Magny-Cours processors
6860401 FMA CPU Topology & Memory Topology needs to support Magny Cours (Multi chip Module)

Intel Nehalem EX
Intel next Xeon CPU with 8 cores, 2 threads per core. Is also supported in OpenSolaris 2009.6 but FMA was added in b127:
FMA for Intel Nehalem EX
There is also a whitepaper on Nehalem support in OpenSolaris, worth a read:
The Solaris OS and Intel Nehalem EX

Wednesday, December 2, 2009

OpenSolaris Text based installer update

There are finally some characters on the screen for the Text based installer project, the project pages have been updated. There is now access information for the project gate, build instructions and links to a code review (which does not seem to work right now).

The text installer is a essential part for bringing OpenSolaris into the datacenter, especally for the SPARC server which seldom have any framebuffers. Today the only installation option for OpenSolaris on SPARC is the Automatic Installer (AI) which requires DHCP service, a installation server and either access to external package repositories or a internal mirror.

This project will make it much easier to deploy single instances of OpenSolaris on your SPARC. X86 will also benefit from this, especially when installing inside xVM domains which today requires setup of VNC to perform a graphical installation.

A prototype for X86 was created this summer, read more here. The option for a interactive installation on SPARC have been promised for the next OpenSolaris release.

Tuesday, December 1, 2009

Installing the new Oracle 11g on OpenSolaris

I've already mentioned that Oracle 11g release 2 is now available for Solaris 10 on the X64 platform. I tried to install this release on the latest OpenSolaris development build (b127), it did initially fail but i found a quick workaround. This is of course not suitable to anything else than for pure testing and fun since it's currently only certified for Solaris 10 (Update 6 and later).

The helpful error massage from the installer was "Error in invoking target 'all_no_orcl' of makefile", but the log file shows what have gone wrong: "INFO: ld: fatal: library -lcrypto: not found"

The problem is that the OpenSSL libraries have moved out of /usr/sfw/lib in OpenSolaris, they are now located under /lib. The Oracle installer supplied the linker with the old location "-L/usr/sfw/lib/amd64" thous it failed.

A quick and very dirty fix to this is to provide a link to the library at the old location:
# ln -s /lib/amd64/libcrypto.so /usr/sfw/lib/amd64
Please drop a comment if there is a way of redirecting Oracle instead, but this was good enough for my little test.

After this I got the RDBMS up and running, including the web based Oracle Enterprise Manager if that's your thing.

As with Solaris 10 Oracle works fine inside zones, but in OpenSolaris zones are by default only a bare minimum of packages, therefore the following must be installed in the zone before Oracle:
# pkg install SUNWsprot SUNWmfrun SUNWuiu8 SUNWunzip SUNWbtool

Wednesday, November 25, 2009

A little news summary

All this is available in other blogs at blogs.sun.com, but here's a summary of some Solaris related news.

Oracle 11g Release 2 is released for Solaris 10 X64, a download is available here. It's nice to see even more Solaris commitment from Oracle.

VirtualBox 3.1 Beta 3 is also available, more details here. VirtualBox 3.1 comes with new features such as live migration between hosts, enhanced USB support in OpenSolaris, better snapshot functionality, faster 2D acceleration and support for EFI.

US Senators Go to Bat for Oracle, Sun Merger: 59 senators also thinks it's about time to let the Oracle-Sun deal proceed.

While I'm at it, a beta of NetBeans 6.8 is available, sadly they do not seem to put any effort into the Python parts. Support for interpreted languages in NetBeans is mostly for Ruby and PHP . More focus on python would have been nice, it seems like python is the interpreted language of choice in OpenSolaris, the Image Packaging System, IPS is built with python. That said there is a python module available for NetBeans, but it doesn't get the same development attention.

Wednesday, October 7, 2009

Solaris 10 10/09 (Update 8) available

Solaris 10 10/09 is now available for download but it is yet to be announced and have all download links updated.

Anyway, here is a working link. New documentation is also available on docs.sun.com, including the What's New in the Solaris 10 10/09 Release.

The changes are pretty much in line with my earlier predictions.

Update: Joerg Moellenkamp has nice summary of what's new.

Monday, August 3, 2009

OpenSolaris text based installer

After six weeks four interns have created a prototype of a text based installer for OpenSolaris. It's currently only for the X86 architecture, but it will probably be ported to SPARC® soon, it is planed to be included in the 2009.02 release.

The video presentation.

And I managed to find the ISO they created:
http://dlc.sun.com/osol/install/downloads/text_install/kingston/OpenSolaris-TextInstaller-2009.06.iso

Wednesday, June 3, 2009

Virtualization in 2009.06 (Part 2, VirtualBox)

To continue the "getting started" tutorials on virtualization on OSOL 2009.06 we will take a look at VirtualBox. VirtualBox might be a good Solution for remote desktop installations, fully virtualized machines with graphical console over the network. As with the previous posts this one will be focused on how to deploy it on your server. If you run virtualbox on your desktop it is probably easier to use the supplied GUI, which is on pair with the VMWare workstation GUI.

VirtualBox only supports full virtualization, so the performance will not be as good as a paravirtualized xVM domain or Solaris zone, but it works good for graphical access to virtual machines over network with lighter workloads.

Install VirtualBox

VirtualBox is not hosted in the standard OSOL repositories, it is in the extra repository (along with flash, JavaFX SDK and others). There is some minor hassle to get access to this repository, you will ned to register an account with sun then download and install certificates. You can register here and download the certificate, there are install instructions on the site, but here is the procedure:
$ pfexec mkdir -m 0755 -p /var/pkg/ssl
$ pfexec cp -i ~/Desktop/OpenSolaris_extras.key.pem /var/pkg/ssl
$ pfexec cp -i ~/Desktop/OpenSolaris_extras.certificate.pem /var/pkg/ssl
$ pfexec pkg set-authority \
-k /var/pkg/ssl/OpenSolaris_extras.key.pem \
-c /var/pkg/ssl/OpenSolaris_extras.certificate.pem \
-O https://pkg.sun.com/opensolaris/extra/ extra
Now install VirtualBox:
$ pfexec pkg install virtualbox virtualbox/kernel
Create virtual machines

Create and install a virtual machine:
$ cd /opt/VirtualBox
$ VBoxManage createvm --name "WinXP" --register
$ VBoxManage modifyvm "WinXP" --memory "512MB" \
--acpi on --boot1 dvd --nic1 nat
$ VBoxManage createhd --filename "WinXP.vdi" \
--size 5000 --remember
$ VBoxManage modifyvm "WinXP" --hda "WinXP.vdi"
$ VBoxManage controlvm "WinXP" dvdattach \
/path_to_dvd/winxp.iso
$ VBoxHeadLess --startvm "WinXP"

Connect to the server with an RDP client and perform the installation. There are free RDP Clients available for most Operating systems:
Solaris/OpenSolaris/*BSD: rdekstop (pkg install SUNWrdesktop)
MacOS X: Remote Desktop Connection
After the installation is done, the guest can be controlled with VBoxManage. VBoxManage can control all aspects of the guest, snapshots, power, USB sound. Here are a few basic commands:
Start: VBoxHeadLess -s winxp
Poweroff: VboxManage controlvm WinXP poweroff
Reset: VboxManage controlvm WinXP reset
If you want to install the VirtualBox Guest additions, just inject the DVD:

$ VBoxManage controlvm "WinXP" dvdattach \
/opt/VirtualBox/additions/VBoxGuestAdditions.iso


Tuesday, June 2, 2009

Virtualization in 2009.06 (Part 1, xVM)

Install xVM

It seems that i have started a little tutorial trail for working with OSOL 2009.06. A few of my friends are about to install this release, so i thought i might as well make it a few blog entries, there are probably other people out there that want some help to get a quick start of OSOL 2009.06.

This will be the first entry about virtualization, first we get xVM running, later entries will describe some basic setup of Solaris zones and VirtualBox.

Install the xVM packages:
pfexec pkg install xvm-gui SUNWvdisk
Edit /rpool/boot/grub/menu.lst, copy your current entry and modify it to something similar to this:
title OpenSolaris 2009.06 xVM
findroot (pool_rpool,1,a)
bootfs rpool/ROOT/opensolaris
kernel$ /boot/$ISADIR/xen.gz
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=text
module$ /platform/i86pc/$ISADIR/boot_archive
Reboot into this grub entry and if everything works set this as your default boot entry:
$ bootadm list-menu
the location for the active GRUB menu is: /rpool/boot/grub/menu.lst
default 0
timeout 30
0 OpenSolaris 2009.06
1 OpenSolaris 2009.06 xVM

$ bootadm set-menu default=1
Enable the xVM services

If you want to be able to connect to VNC over the network to perform the installation, make xen listen on external addresses for VNC connections:
$ pfexec svccfg -s xvm/xend setprop config/vnc-listen = astring: \"0.0.0.0\"
Enable the xVM services and set a password for VNC connections:
$ pfexec svccfg -s xvm/xend setprop config/vncpasswd = astring \"yourpass\"
$ pfexec svcadm refresh xvm/xend
$ pfexec svcadm enable -r xvm/virtd
$ pfexec svcadm enable -r xvm/domains
( Ignore messages about multiple instances for dependencies )

Installing domains

Now we should be able to create our domU instances, First we create a zvol to be used as disk for the domU:
$ pfexec zfs create -o compression=on -V 10G zpool01/myzvol
Install a paravirtualized domain e.g. OSOL 2009.06:
$ pfexec virt-install --nographics -p -r 1024 -n osol0906 -f /dev/zvol/zpool01/myzvol -l /zpool01/dump/osol-0906-x86.iso
Connect to the console and answer the language questions:

$ pfexec xm console osol0906

Back on dom0 get the address, port and password for the VNC console for the OSOL installation, first get the domain id:

$ pfexec virsh domid osol0906

Get the address, port and password using the domain id:
$ pfexec /usr/lib/xen/bin/xenstore-read /local/domain//ipaddr/0
$ pfexec /usr/lib/xen/bin/xenstore-read /local/domain//guest/vnc/port
$ pfexec /usr/lib/xen/bin/xenstore-read /local/domain//guest/vnc/passwd

Connect with a VNC client to address and port, authenticate using the password.

Install an OS without support for paravirtualization, e.g. Windows:
$ pfexec virt-install -v --vnc -n windows -r 1024 -f /dev/zvol/dsk/zpool01/myzvol -c /zpool01/dump/windows.iso --os-type=windows
Connect to the xVM VNC console using the password provided earlier with svccfg/vncpasswd.

When installation is done domains can be listed with xm list and started with xm start.