Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I share my desktop with VirtualBox. It allows me to work on current files in a nice easy way. I have quite a few utility launchers on my desktop. It's only a dozen or so at peak time but it makes navigating the list of real files a little harder when I'm working from Windows.

I was wondering if there was a way of excluding the files from the share. Either at VirtualBox (I've no idea where it keeps its samba configuration -- or if it actually uses samba at all for that matter) or in Windows.

share|improve this question
Without a decission layer in betwean (e.g. samba) it's not possible. Linux files starting with a . (dot) at the beginning are also marked as hidden for Windows (VirtualBox). But for me you should move the Linux only desktop files to a different folder. My understanding is one desktop is one but not two with shared content. – Raphael Bossek Jan 7 '11 at 23:08
up vote 2 down vote accepted

Reading the VirtualBox documentation, it's clear that this isn't possible directly. But I have an idea which will work.

Using a Warren Falk's picfs fuse mount, you remount your Desktop under a hidden directory, say .VirtualBox/shared/Desktop and point virtual box at that. Then in the fuse mount configuration, you simply specify which files should be ignored.

See here for more details:

Using this, your Desktop will be exactly the same to Linux, but your VirtualBox will see a controlled directory. The fuse code is even in python, so it's easy to modify. Let me know if you want instructions.

share|improve this answer
That's very cunning. – Oli Jan 10 '11 at 23:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.