Sep 29, 2011

Thunderbird 7.0 and engimail on OpenIndiana does not work

After the release of Thunderbird 7.0, I installed the version on my
OpenIndiana installation, but engimail fails to work, although the plugin

The debug shows the following error:

2011-09-29 11:36:06.561 [ERROR] enigmail.js: Enigmail.initialize: Error - Enigmime Service not available
2011-09-29 11:36:06.561 [DEBUG] enigmail.js: Enigmail.initialize: exception=TypeError: Components.classes[NS_IPCSERVICE_CONTRACTID] is undefined

The  screenshot is:

Switching back to thunderbird 6.0 lets engimail work.

Sep 26, 2011

smime signed email on Android

A colleague started to sign the emails with smime. On my Android Tablet
I'm using K9 mail for mail reading, but the signed e-mails can not be viewed.
To see this emails also, I added an app named Djigzo from the Android market
This can also "decrypt" the email and it can be seen on the Android device. 

Sep 16, 2011

VirtualBox in OpenIndiana suddenly doesn't start -> VBoxSVC core dumps

I upgraded to the latest version and switched also the sfe repository to

sfe                                   origin   online
sfe-encumbered                        origin   online

After some digging ( execsnoop of DTraceToolkit ) I saw, that
VirtualBox starts VBoxSVC.

I started VBoxSVC manually and after launching VirtualBox the VBoxSVC process terminates.

Here is the pstack of the core showing the relevant thread:

-----------------  lwp# 3 / thread# 3  --------------------
 00000000003c9cc5 ???????? ()
 fffffd7fff1febc5 _SUNW_Unwind_RaiseException () + 55
 fffffd7ffdda3b69 __cxa_throw () + 59
 fffffd7ff7ae2c99 _ZN3xml4FileC1ENS0_4ModeEPKcb () + 2c9
 fffffd7ff7ae8531 _ZN3xml13XmlFileParser4readERK9RTCStringRNS_8DocumentE () + b1
 00000000006acade _ZN8settings14ConfigFileBaseC2EPKN3com7Utf8StrE () + 13e
 00000000006bcdc5 _ZN8settings14MainConfigFileC1EPKN3com7Utf8StrE () + 35
 00000000006954bd _ZN10VirtualBox4initEv () + 2dd
 0000000000696a49 _ZN10VirtualBox14FinalConstructEv () + 9
 00000000006efe9d _Z21VirtualBoxConstructorP11nsISupportsRK4nsIDPPv () + 12d
 fffffd7ff6e963ce _ZN16nsGenericFactory14CreateInstanceEP11nsISupportsRK4nsIDPPv () + 24
 fffffd7ff6e57373 _ZN22nsComponentManagerImpl14CreateInstanceERK4nsIDP11nsISupportsS2_PPv () + 175
 fffffd7ff5d9a9e1 _ZN18ipcDConnectService7OnSetupEjPK13DConnectSetupj () + af
 fffffd7ff5d9a917 _ZN18ipcDConnectService17OnIncomingRequestEjPK10DConnectOpj () + 2d
 fffffd7ff5d99071 _ZN14DConnectWorker3RunEv () + 211
 fffffd7ff6e638de _ZN8nsThread4MainEPv () + 2e
 fffffd7ff6e9487a _pt_root () + 90
 fffffd7ff6e9493f _pt_iprt_root () + c
 fffffd7ff7b1374c rtThreadMain () + 2c
 fffffd7ff7b60321 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1f6e44 _thrp_setup () + bc
 fffffd7fff1f7110 _lwp_start ()
The function where the Exception is thrown is:

[ewer@solewer:~]$echo "_ZN3xml4FileC1ENS0_4ModeEPKcb" | c++filt
xml::File::File(xml::File::Mode, char const*, bool)
A truss showed that VirtualBox.xml in $HOME/.VirtualBox is attempted to open.

Before I removed the whole .VirtualBox directory, because of starting problems. Also the backup from zfs snapshot didn't solve the problem.

I found the hint for solving the problem in a Bug for VirtualBox.

Setting the Environment LD_NODIRECT=1 sovled the problem and let
VirtualBox start.

After the first start some time it also starts without the LD_NODIRECT Variable, but anytime later it fails again.

Sep 15, 2011

Getting engimal in thunderbird on OpenIndiana to work

Here I've given the link to the actual engimail -plugin for thunderbird 6,
to allow signing/encrypting of e-mails.

The installation of the plugin had no problems, but executing gpg was
a problem.

I installed gpg2 from the sfe repository.

But execution of gpg2 didn't find pinentry -> The executeables are in /usr/lib/.

So I linked /usr/lib/pinentry-gtk-2 and /usr/lib/pinentry-curses to /usr/bin
and signing with engimail works now.

Sep 14, 2011

Engimail 1.3 for Solaris x86 & Thunderbird 6.0

I have tried to compile thunderbird 6 from source, so that I can also compile

But I failed for thundebird, because in same sources, there config said, that
the platform is not supported.

Today I found, that somebody else had more luck and compiled engimail 1.3.2

Find it here.

Now I have to configure everyhting, to get it up and running.

VirtualBox running in OpenIndiana using a vnic routed with Crossbow

OpenIndiana supports by the Crossbow-Project virtual Networkinterfaces and
a virtual Switch.

Now I've changed the configuration of the VirtualBox Instance to use such a vnic
connected to a etherswitch.

ewer@solewer:~$ dladm show-etherstub
ewer@solewer:~$ dladm show-vnic
LINK         OVER         SPEED  MACADDRESS        MACADDRTYPE         VID
vnic1        vswitch1     0      2:8:20:55:9e:bf   random              0
vnicvsop0    vswitch1     0      2:8:20:7b:84:43   random              0
vnicwinxp2   vswitch1     0      2:8:20:48:d2:6d   random              0

The vnic1 is used in the global zone of the machine, where routing is activated

ewer@solewer:~$ routeadm
              Configuration   Current              Current
                     Option   Configuration        System State
               IPv4 routing   enabled              enabled
               IPv6 routing   disabled             disabled
            IPv4 forwarding   enabled              enabled
            IPv6 forwarding   disabled             disabled

           Routing services   "route:default ripng:default"

Routing daemons:

                      STATE   FMRI
                   disabled   svc:/network/routing/ripng:default
                   disabled   svc:/network/routing/legacy-routing:ipv4
                   disabled   svc:/network/routing/legacy-routing:ipv6
                   disabled   svc:/network/routing/rdisc:default
                     online   svc:/network/routing/route:default
                     online   svc:/network/routing/ndp:default

For the vnic1 a static address object is created, to have the interface always
up and running:

ewer@solewer:~$ ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok 
vnic1/v4          static   ok 
e1000g0/_a        static   ok 
lo0/v6            static   ok           ::1/128

In VirtualBox the Interace is selected and operated in Bridged Mode.
The important thing is to set the MAC-Address to the same value as the
interface itself has.

ewer@solewer:~$ dladm show-vnic vnicwinxp2
LINK         OVER         SPEED  MACADDRESS        MACADDRTYPE         VID
vnicwinxp2   vswitch1     0      2:8:20:48:d2:6d   random              0

oterhwise the network connection will not work. Got the hint from here.

Additionally I have ipnat active, to map the outgoing traffic to the server interface ip address.

ewer@solewer:~$ cat /etc/ipf/ipnat.conf
map e1000g0 -> 0/32
ewer@solewer:~$ svcs ipfilter
STATE          STIME    FMRI
online          9:08:16 svc:/network/ipfilter:default

Sep 12, 2011

Update OpenIndiana on 12.09.2011

The OpenIndiana pkg repository got two frequently updates.

Both didn't have any problem. They created each a new bootenvironment

Here the log from the first update:

root@solewer:~# pkg install package/pkg
                Packages to update:     1
           Create boot environment:    No
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  1/1     124/124      0.7/0.7

PHASE                                        ACTIONS
Update Phase                                 240/240

PHASE                                          ITEMS
Package State Update Phase                       2/2
Package Cache Update Phase                       1/1
Image State Update Phase                         2/2

PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                                1/1
root@solewer:~# pkg update
                Packages to update:  1145
           Create boot environment:   Yes
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1145/1145 19518/19518  601.2/601.2

PHASE                                        ACTIONS
Removal Phase                              6183/6183
Install Phase                              7285/7285
Update Phase                             30378/30378

PHASE                                          ITEMS
Package State Update Phase                 2290/2290
Package Cache Update Phase                 1145/1145
Image State Update Phase                         2/2

PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                          1145/1145
Indexing Packages                          1145/1145
Optimizing Index...

PHASE                                          ITEMS
Indexing Packages                          1319/1319

A clone of OI151-6 exists and has been updated and activated.
On the next boot the Boot Environment OI151-7 will be mounted on '/'.
Reboot when ready to switch to this updated BE.

NOTE: Please review release notes posted at:

The qemu-kvm still does not work for me:

[ewer@solewer:~]$pfexec qemu-kvm -hda /virtual/qemu.img -cdrom /virtual/debian.0.2.1-i386-netinst.iso  -boot d -localtime -no-hpet
kvm: unhandled exit 80000021
kvm_run returned -22

Sep 6, 2011

KVM / QEMU on OpenIndiana 151a fails

I attempted to use KVM from OpenIndiana running Build 151a.

After installing the packages, the kvm module is missing, even after reboot.
I had to modload kvm from the directory /usr/kernel/drv/amd64

First it failed, because the /dev/kvm device was missing. I did an
devfsadm, which seemd to create the device.

But starting qemu-kvm still fails with a looping

root@solewer:/usr/kernel/drv/amd64# qemu-kvm -cdrom /virtual/xpimg.iso  -boot d /virtual/aa.img 2>&1 | more
KVM internal error. Suberror: 2
extra data[0]: 80000008
extra data[1]: 80000b08

Even just starting without options fails:

root@solewer:/usr/kernel/drv/amd64# qemu-kvm -monitor stdio
QEMU 0.14.1 monitor - type 'help' for more information
(qemu) kvm: unhandled exit 80000021
kvm_run returned -22

(qemu) info kvm
kvm support: enabled

After rebooting the day after, VirtualBox failed to start and locks the
whole computer.
After modunload -i <number of kvm module>, VirtualBox starts again.