Know How - VMware Server

mount VMware filesystem - vmware-mount

Library fix

First, I installed VMware into /usr/local, which made vmware-mount unusable. The error is:
SSLLoadSharedLibrary: Failed to load library libcrypto.so.0.9.8:/usr/local/bin/libdir/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
Core dump limit is 0 KB.
Child process 26541 failed to dump core (status 0x6).


VMware Server Error:
VMware Server unrecoverable error: (app)
SSLLoadSharedLibrary: Failed to load library libcrypto.so.0.9.8:/usr/local/bin/libdir/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
Please request support.  
To collect data to submit to VMware support, select Help > About and click "Collect Support Data". You can also run the "vm-support" script in the Workstation folder directly.
We will respond on the basis of your support entitlement.

Press "Enter" to continue...

The easiest fix is:
ln -s /usr/local/lib/vmware /usr/lib/vmware

Show mounted paths

vmware-mount -L

Show mountable points

Replace VMDIR and VMDISK with the directory of the VM and the name of the disk-image:
vmware-mount -p /var/lib/vmware/VM/{VMDIR}/{VNDISK}.vmdk

Mount something

Replace VMDIR and VMDISK and PARTNR with the directory of the VM, the name of the disk-image and the partition number (if it is partitioned):
vmware-mount /var/lib/vmware/VM/{VMDIR}/{VNDISK}.vmdk {PARTNR} /mnt/whatever

Unmounting

Do not use umount, it will not unlock the virtual disk! To unmount do:
vmware-mount -d /mnt/whatever

Unmount all

In case you want to unmount all, use
vmware-mount -x

-Tino, 2009-02-23