Mittwoch, 26. Januar 2011

Shared Folders in VirtualBox 4.0 WindowXP(Host) Ubuntu 10.10(Guest)

Host: Windows XP
Guest Ubuntu 10.10
VirtualBox 4.0

My message:

Do not use long name, name with spaces or strange names for the share name!
"vboxshare" produced a
"mount.vboxsf: mounting failed with the error: Invalid argument"
"share" works!

Manual
  1. Install Guest Additions

  2. Settings VirtualBox:
    create sharing folder on Windows XP (host)
    give a short an simple name "share"!!!

  3. Go to Ubuntu (Guest)
    mkdir a folder for sharing
    - Do not use the Home-Folder -
    this is importent if you want to create a permanent mount
    root is used in rc.local and root has respect of home directories.
    use for example
    /mnt or /tmp
    I use
    /media/vboxgemein

  4. Mount manually

    sudo mount.vboxsf share /media/vboxgemein/

    If this work you can create a permanent mount folder in rc.local

  5. Mount permanemtly
    open rc.local with editor

    sudo nano /etc/rc.local

    before the "exit 0" command type

    mount.vboxsf share /media/vboxgemein/