Setting up shared VMWare Fusion host folders on CentOS and RHEL guest


How to view folders from the Mac that hosts the VMWare Fusion guest operating system CentOS or Red Hat Linux?


  • First, make sure that the VMWare Tools are installed. That always helps.
  • Next, in the WMWare configuration menu of the guest, set up the desired shared folders. There might be already a default shared folder pointing to the user’s home directory.
  • Next, in the guest OS, ls -ld /mnt/hgfs will display the available shared folders.


[CentOS-virt] CentOS 5.1 guide for VMware Fusion

OpenVPN write UDPv4: Can't assign requested address (code=49)


On Max OS X, when trying to connect to an OpenVPN gateway, you may encounter the following error:
2010-01-21 05:14:59 write UDPv4: Can't assign requested address (code=49)
2010-01-21 05:15:01 write UDPv4: Can't assign requested address (code=49)

The error would repeat itself indefinitely.

Root Cause

The TCP stack of the Mac has a bug that can cause the routing table to get corrupted.


The routing table needs to be flushed on the interface used to connect to the Internet. Typically,

  • en0: ethernet (wired) interface
  • en1: wlan (wireless) interface

The easiest way is to flush the routes is to reboot. The elegant way however is to shut down the interface connecting the Mac to the Internet, flush the routing table, and bring the interface back up. For example, assuming a wired connection, open a terminal or an X11 xterm window and issue the following commands:
sudo ifconfig en0 down
sudo route flush
sudo ifconfig en0 up

In case the command line hangs after the flush command, just open a new terminal and run the last command from there. When you are done, you can close all terminals. If you are connecting with wireless, replace en0 with en1.


OpenVPN error: write UDPv4: Can’t assign requested address (code=49)

Install Open MQ 4.4 on Mac OS X 10.6 (Snow Leopard)


Snow Leopard comes with a native 64 bit Java 1.6 environment. The Open MQ binaries are made for the JDK 1.5 in 32 bit. This article shows how to make Open MQ work on OS X 1.6 by compiling from source.


  • Set environment
    export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
    export ANT_HOME=$HOME/apache-ant-1.7.1
    export ANT_OPTS=-Xmx512m
    export IMQ_HOME=$HOME/mq/dist/mq
    export CLASSPATH=$CLASSPATH:$IMQ_HOME/lib/jms.jar:$IMQ_HOME/lib/imq.jar
  • Download and unpack ant in your home directory
  • Download and uppack OpenMQ 4.4 source in your home directory
  • Create extlib:
    mkdir ~/mq/extlib
  • Download the Java EE 5 API into extlib:
  • Compile Open MQ:
    cd ~/mq
  • Test Open MQ:
    cd dist/mq/bin
    ./imqbrokerd -tty &
    cd ../examples/helloworld/helloworldmessage
    java HelloWorldMessage
    You should see
    Sending Message: Hello World
    Read Message: Hello World
    And some debug messages on the imqbrokerd console.