AdSense Mobile Ad

Thursday, January 22, 2009

Sun Microsystems releases Sun xVM VirtualBox v. 2.1.2

My post@reacciona.es.

On January 21, 2009, Sun Microsystems announced the release of Sun xVM VirtualBox v. 2.1.2.

This is a minor releases with stability improvements and bug fixes. The list of changes from the official changelog is:
  • USB: improved support for recent Linux hosts
  • VMM: fixed guru meditation for PAE guests on non-PAE hosts (AMD-V)
  • VMM: fixed guru meditation on Mac OS X hosts when using VT-x
  • VMM: allow running up to 1023 VMs on 64-bit hosts (used to be 127)
  • VMM: several FreeBSD guest related fixes (bugs #2342, #2341, #2761)
  • VMM: fixed guru meditation when installing Suse Enterprise Server 10U2 (VT-x only; bug #3039)
  • VMM: fixed guru meditation when booting Novell Netware 4.11 (VT-x only; bug #2898)
  • VMM: fixed VERR_ADDRESS_TOO_BIG error on some Mac OS X systems when starting a VM
  • VMM: clear MSR_K6_EFER_SVME after probing for AMD-V (bug #3058)
  • VMM: fixed guru meditation during Windows 7 boot with more than 2 GB guest RAM (VT-x, nested paging only)
  • VMM: fixed hang during OS/2 MCP2 boot (AMD-V and VT-x only)
  • VMM: fixed loop during OpenBSD 4.0 boot (VT-x only)
  • VMM: fixed random crashes related to FPU/XMM with 64 bits guests on 32 bits hosts
  • VMM: fixed occasional XMM state corruption with 64 bits guests
  • VMM: speed improvements for real mode and protected mode without paging (software virtualization only)
  • GUI: raised the RAM limit for new VMs to 75% of the host memory
  • GUI: added Windows 7 as operating system type
  • VBoxSDL: fixed -fixed fixedmode parameter (bug #3067)
  • Clipboard: stability fixes (Linux and Solaris hosts only, bug #2675 and #3003)
  • 3D support: fixed VM crashes for certain guest applications (bugs #2781, #2797, #2972, #3089)
  • LsiLogic: improved support for Windows guests (still experimental)
  • VGA: fixed a 2.1.0 regression where guest screen resize events were not properly handled (bug #2783)
  • VGA: significant performance improvements when using VT-x/AMD-V on Mac OS X hosts
  • VGA: better handling for VRAM offset changes (fixes GRUB2 and Dos DOOM display issues)
  • VGA: custom VESA modes with invalid widths are now rounded up to correct ones (bug #2895)
  • IDE: fixed ATAPI passthrough support (Linux hosts only; bug #2795)
  • Networking: fixed kernel panics due to NULL pointer dereference in Linux kernels <>
  • Networking: fixed intermittend BSODs when using the new host interface (Windows hosts only; bugs #2832, #2937, #2929)
  • Networking: fixed several issues with displaying hostif NICs in the GUI (Windows hosts only; bugs 2814, #2842)
  • Networking: fixed the issue with displaying hostif NICs without assigned IP addresses (Linux hosts only; bug #2780)
  • Networking: fixed the issue with sent packets coming back to internal network when using hostif (Linux hosts only; bug #3056).
  • NAT: fixed port forwarding (Windows hosts only; bug #2808)
  • NAT: fixed booting from the builtin TFTP server (bug #1959)
  • NAT: fixed occasional crashes (bug #2709)
  • SATA: vendor product data (VPD) is now configurable
  • SATA: raw disk partitions were not recognized (2.1.0 regression, Windows host only, bug #2778)
  • SATA: fixed timeouts in the guest when using raw VMDK files (Linux host only, bug #2796)
  • SATA: huge speed up during certain I/O operations like formatting a drive
  • SATA/IDE: fixed possible crash/errors during VM shutdown
  • VRDP: fixed loading of libpam.so.1 from the host (Solaris hosts only)
  • VRDP: fixed RDP client disconnects
  • VRDP: fixed VRDP server misbehavior after a broken client connection
  • VBoxManage showvminfo: fixed assertion for running VMs (bug #2773)
  • VBoxManage convertfromraw: added parameter checking and made it default to creating VDI files; fixed and documented format parameter (bug #2776)
  • VBoxManage clonehd: fixed garbled output image when creating VDI files (bug #2813)
  • VBoxManage guestproperty: fixed property enumeration (incorrect parameters/exception)
  • VHD: fixed error when attaching certain container files (bug #2768)
  • Solaris hosts: added support for serial ports (bug #1849)
  • Solaris hosts: fix for Japanese keyboards (bug #2847)
  • Solaris hosts: 32-bit and 64-bit versions now available as a single, unified package
  • Linux hosts: don’t depend on libcap1 anymore (bug #2859)
  • Linux hosts: compile fixes for 2.6.29-rc1
  • Linux hosts: don’t drop any capability if the VM was started by root (2.1.0 regression)
  • Mac OS X hosts: save the state of running or paused VMs when the host machine’s battery reaches critical level
  • Mac OS X hosts: improved window resizing of the VM window
  • Mac OS X hosts: added GUI option to disable the dock icon realtime preview in the GUI to decrease the host CPU load when the guest is doing 3D
  • Mac OS X hosts: polished realtime preview dock icon
  • Windows Additions: fixed guest property and logging OS type detection for Windows 2008 and Windows 7 Beta
  • Windows Additions: added support for Windows 7 Beta (bugs #2995, #3015)
  • Windows Additions: fixed Windows 2000 guest freeze when accessing files on shared folders (bug #2764)
  • Windows Additions: fixed Ctrl-Alt-Del handling when using VBoxGINA
  • Windows Additions Installer: Added /extract switch to only extract (not install) the files to a directory (can be specified with /D=path)
  • Linux installer and Additions: added support for the Linux From Scratch distribution (bug #1587) and recent Gentoo versions (bug #2938)
  • Additions: added experimental support for X.Org Server 1.6 RC on Linux guests
  • Linux Additions: fixed bug which prevented to properly set fmode on mapped shared folders (bug #1776)
  • Linux Additions: fixed appending of files on shared folders (bug #1612)
  • Linux Additions: ignore noauto option when mounting a shared folder (bug #2498)
  • Linux Additions: fixed a driver issue preventing X11 from compiling keymaps (bug #2793 and #2905)
  • X11 Additions: workaround in the mouse driver for a server crash when the driver is loaded manually (bug #2397)

Saturday, January 17, 2009

Perigean moon above the woods of Castilla

As usual, I was driving my car from Madrid to Segovia county taking my girlfriend home. Saturday and Sunday night were two fantastic full moon nights and we stopped our car at the Alto del León to observe the beauty of our satellite. Maybe it was the perfectly clear atmosphere, maybe it was the complete absence of other light sources, maybe it was just the magic of the moment, but the moon seemed really different, that night. Rarely I did see such a big and bright moon! When we stopped the car, the trees in the wood at night were casting shadows as if it were the evening. Impressive.

This morning I remembered the phenomenon and had a rapid check just to confirm the obvious: it was a perigean moon. As you (should) remember when you studied the Kerpler's laws of planetary motion, the orbit of a planet is an ellipsis with the sun at the focus. In the earth-moon problem, the moon's orbit is an ellipsis with the earth at the focus. Now, if you remember what an ellipsis is, it's clear that there exist two points in the orbit, called perigee and apogee, in which the distance earth-moon is, respectively, minimum and maximum.



Long story short: what we were observing Saturday night was a full moon at his perigee. Approximately 15% bigger and brighter! I think it was my first perigean moon and, moreover, I enjoyed it with the best company!

Which format do you archive your audio files with?

Good question. It used to be... No doubt that as time passes by, even if storage is order of magnitudes cheaper than it was 10 years ago, the most popular format is mp3. I remember when I started enconding mp3 files: my poor Pentium 133 could encode a standard audio CD in one night. I used the vintage Fraunhofer encoder at 128kbit/s. And the quality was obviously bad.

I get really angry when I hear or read the words "CD quality" associated with mp3. The possibilities are:
  • people just repeat what they hear without testing
  • people really don't have an idea of what they're speaking about
  • people don't even know what sampling and Shannon theorem is...
Whichever the reason, it's not that hard making a test to discover that it's not that hard to hear how it sounds different after an encoding. Even Apple's iTunes AAC codec is not that good, after all.

If you're interested to detail, you can check this. Or better, rip a dynamic CD such as a classical music CD and test various lossy encoders in their full range of options. You'll easily discover where the loss is.

Don't say no to good music, just use FLAC or another lossless codec of your choice.

Don't overlook largefile support when using Solaris 10

This is the typical thing you don't think about unless something you carefully planned fails unexpectedly. I was answering a post (yet another) in an Internet forum and it seems that people doesn't know/think about large files and large files support when issuing their commands.

Largefile

As man largefile states:

Standards, Environments, and Macros largefile(5)

NAME
largefile - large file status of utilities

DESCRIPTION
A large file is a regular file whose size is greater than or equal to 2 Gbyte ( 2^31 bytes). A small file is a regular file whose size is less than 2 Gbyte.

You're using Solaris, aren't you? So it's nothing strange the directory you're backing up (for example) contains some file with these characteristics. When in doubt, and before wasting precious CPU time, check:
  • if you need large file support
  • if the utilities you're going to use support large files
Both tasks are easy, and for the latter the already mentioned largefile man page is all you need.

pax, tar, cpio

As far as it concerns these utilities, their large file status is:
  • pax and cpio are large files aware, but have anyway a limit: they "only" support files up to 8 GB - 1 byte
  • tar has full large file support
That's the reason why I usually go with tar, always. And that's the reason I always use the e option (which stops tar in case of error) and usually never use the v option, which clutters the terminal with a flood of messages between which it's sometimes impossible to spot warning and errors. Remember the good old standard output and standard error redirection, if you really want to know if something has gone bad.

Backing up ZFS file systems

This is one of the good things ZFS has brought us. Backing up a file system is a ubiquitous problem, even in your home PC, if you're wise and care about your data. As many things in ZFS, due to the telescoping nature of this file system (using words of ZFS' father, Jeff Bonwick), backing up is tightly connected to other ZFS' concepts: in this case, snapshots and clones.

Snapshotting

ZFS lets the administrator perform inexpensive snapshots of a mounted filesystem. Snapshots are just what their name implies: a photo of a ZFS file system in a given point in time. Since that moment, the file system from which the snapshot was generated and the snapshot itself begin to branch and the space required by the snapshot will roughly be the space occupied by the differences between these two entities. If you delete a 1 GB file from a snapshotted filesystem, for example, the space accounted for that file will go in charge of the snapshot which, obviously, must keep track of it because that file existed when the snapshot was created. So far, so good (and easy). Creating snapshot is also incredibly easy: provided that you have a role with the required privileges you just issued the following command:

$ pfexec zfs snapshot zpool-name/filesystem-name@snapshot-name

Now you have a photo of the zpool-name/filesystem-name ZFS file system in a given point in time. You can check about its existence by issuing:

$ zfs list -t snapshot

which in this moment, in my machines, gives me:

$ zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
rpool/export/home/enrico@20081231 71.3M - 14.9G -
[...]

This means that the ZFS file system which hosts my home directory has been snapshotted and there's a snapshot named 20081231.

Cloning

Cloning is pretty much like snapshotting with the difference that the result of the operation is another ZFS file system, obviously mounted in another mount point, which can be used like whichever file system. Like snapshots, the clone and the originating file system will begin to diverge and differences will begin to occupy space in the clone. The official ZFS administration documentation has detailed and complete information about this topic.

Backing up

This isn't really how documentation calls it: they just refer to it with ZFS send and receive operations. As seen, we've got a mean to snapshot a file system: there's no need to unmount a file system or run the risk of getting a set of inconsistent data because a modification occurred during the operation. This alone is worth switching to ZFS, in my opinion. Now there's more: a snapshot can be dumped (serialized) to a file with a simple command:

$ pfexec zfs send zpool-name/filesystem-name@snapshot-name > dump-file-name

This file contains the entire ZFS file system: files and all the rest of metadata. Everything. The good thing is that you can receive a ZFS file system just doing:

$ pfexec zfs receive another-zpool-name/another-filesystem-name <>

This operation creates the another-filesystem-name on pool another-zpool-name (it can even be the same zpool you generated the dump from) and a snapshot called snapshot-name will also be created. In the case of full dumps, the destination file system must not exist and will be created for you. Easy. Full back up with just two lines, a bit of patience and sufficient disk space.

There are the usual variations on the theme. You don't really need store the dump in a file, you could just pipe send into receive and do it in just one line with no need of extra storage for the dump file:

# zfs send zpool-name/filesystem-name@snapshot-name | zfs receive another-zpool-name/another-filesystem-name

And if you want to send it to another machine, no problems at all:

# zfs send zpool-name/filesystem-name@snapshot-name | ssh anothermachine zfs receive another-zpool-name/another-filesystem-name

Incredibly simple. ZFS is really revolutionary.

Incremental backups

ZFS, obviously, lets you do incremental send and receive with the -i option which lets you send the differences between one snapshot and another. These differences will be loaded and applied at the receiver side: in this case, obviously, the source snapshot must already exist. You start with a full send and then you go on with increments. It's the way I'm backing up our machines and it's fast, economic and reliable. A great reason to switch to ZFS, let alone Solaris.