Download Latest Version whitehack_virtualbox_with_symlinks-0.4.12n.tgz (33.3 kB)
Email in envelope

Get an email when there's a new version of whitehack

Name Modified Size InfoDownloads / Week
Parent folder
whitehack_virtualbox_with_symlinks-0.4-12n.src.rpm.md5 2012-12-11 85 Bytes
whitehack_virtualbox_with_symlinks-0.4-12n.noarch.rpm.md5 2012-12-11 88 Bytes
whitehack_virtualbox_with_symlinks-0.4.12n.tgz.md5 2012-12-11 81 Bytes
Totals: 3 Items   254 Bytes 0
This whitehack includes/improves VirtualBox's own recommended way of integrating with selinux:
Title: "Ticket #10085 (new defect) making a symlink fails on a shared folder with EROFS"
* Official solution: https://www.virtualbox.org/ticket/10085

Symptom:

    ln: creating symbolic link `./test2': Read-only file system

Does not work with VirtualBox-4.1-4.1.8_75467_rhel6-1.x86_64.rpm

System setup is:

    VM Host: Centos 6.2 + 2.6.32-220.4.1.el6.x86_64 and
    VM Client: Centos 6.2 + 2.6.32-220.2.1.el6.i686 and 

Works fine with:

    VirtualBox-4.1-4.1.6_74727_rhel6-1.x86_64 

The workaround:
revert to 4.1.6 and turn off any automatic package updates.

Note:
    Saved machine states will not reload when you revert to 4.1.6.
    either do a "Full Shutdown", or "Discard Saved State". 

error message:

    Failed to open a session for the virtual machine tikanga. Unsupported
version 2 of data unit 'HGCM' (instance #0, pass 0xffffffff)
(VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION). Result Code: NS_ERROR_FAILURE
(0x80004005) Component: Console Interface: IConsole

NOTE: 
 * this package is released as 0.4 beta.
 * It might work for you, it works for me, but I only have 1 printer
  - whitehack_virtualbox_with_symlinks-enable should work with more then one concurrent type of printer
 * I am releasing is as a "works for me" hoping some others will give it a go and feedback.
 * If all goes well I will tidy it up and release it as a 1.0

The Fix:
Can verify this works with one tweak, the proper format of the setextradata
command key name is actually:

# VBoxManage setextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME 1


To install use:
yum install  ~/rpmbuild/RPMS/noarch/whitehack_virtualbox_with_symlinks-enabled-0.4-12n.noarch.rpm

    (Note: this only does "root"s virtual machine...  other users
    must run /usr/bin/whitehack_virtualbox_with_symlinks enable)

This yum install creates: /usr/bin/whitehack_virtualbox_with_symlinks

Once installed it can be temporarily disabled with this command:
# /usr/bin/whitehack_virtualbox_with_symlinks disable

Once installed it's status can queried with this command:
# /usr/bin/whitehack_virtualbox_with_symlinks status

To remove again use yum:
yum remove whitehack_virtualbox_with_symlinks-enabled

You can also install without enabling with this command:
yum install  ~/rpmbuild/RPMS/noarch/whitehack_virtualbox_with_symlinks-0.4.12n.noarch.rpm

This alternate install gives you the chance to visually inspect the code in
/usr/bin/whitehack_virtualbox_with_symlinks before you run it.

To build the .spec file simply run ../whitehack_bin/mkwhitehack in this src directory

This will create 3 files:
Wrote: $HOME/rpmbuild/SRPMS/whitehack_virtualbox_with_symlinks-0.4.12n.src.rpm
Wrote: $HOME/rpmbuild/RPMS/noarch/whitehack_virtualbox_with_symlinks-0.4.12n.noarch.rpm
Wrote: $HOME/rpmbuild/RPMS/noarch/whitehack_virtualbox_with_symlinks-enabled-0.4-12n.noarch.rpm

NJoy
NevilleDNZ

******************** IMPORTANT ***********************
To manually make this change run:
VBoxManage setextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME 1

To Check run:
VBoxManage getextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME
Source: README, updated 2012-12-11