Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 wounder how could I use virtual disk (*.vdi) file located under samba (LAN) - so many of users can use same virtual machine and all software installations and updates w/o any need to sync between each other. I can do this in Win version of Virtual Box, but didn't manage to do this in Ubuntu.

How to mount VDI from Samba?

PS I use latest version (3.0.8)

here is situation: I have server, let's name it "A". On this host in shared directory (/vm) image.vdi file is located.

I wanna use this file with VirtualBox from my computer "B" (ubuntu). But there is no option to use external addresses in open dialog for "virtual disks" - I cannot just write //a/vm/image.vdi to pick up this file.

share|improve this question
up vote 1 down vote accepted

You would need to mount the share on your VirtualBox host, eg:

sudo mount -t cifs -o user=username,password=password //a/vm /mnt/vm-share

If you leave off the password=password option, this will prompt you for a password. Other handy options might be uid= and gid=. See the mount.cifs manpage for more options.

Once you have the share mounted, you can give the VirtualBox a local path to the VDI file (eg, if you have mounted the share at /mnt/vm-share, the file from your example should be accessible at /mnt/vm-share/image.vdi).

Note: This is how you would do it for one VirtualBox host. This method may have problems if it's active on multiple hosts concurrently.

share|improve this answer
    
ok. thank you. I also thinked about concurrency but for now it's fine. – Meta Oct 23 '09 at 11:10

I think that you want to mount your vdi file on your Ubuntu machine (here's a how-to - but I haven't tried it at all) and then share the directory where you have mounted the file using Samba.

share|improve this answer
    
I've updated discription with details - please look at it. Thank you. – Meta Oct 21 '09 at 12:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .