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've got a RAIDZ array on a FreeBSD guest. My host is Ubuntu 10.04 running KVM. I'd like to mount the array on the host OS somehow and access the files as efficiently as possible.

Any advice? Should I be using NFS? If so, UDP or TCP?

share|improve this question
up vote 1 down vote accepted

If the virtualization uses one of the standard disk image formats - or even better, if you're using real disks for your guest OS, you can either use the images or physical disks direct from Linux using the fuse version of ZFS. This will be much more efficient than doing anything through networking - even virtual networking.

NOTE: You don't want to have the VM running when you do this

share|improve this answer

One option is to share one of the host's folders via the VM GUI, then map a drive inside the guest to the host's share. I have no idea how the performance would compare to NFS.

share|improve this answer

What VM software are you using? VirtualBox provides "host folders" access, but this is only one-way (so the guest can access the host's folders).

How do you have the network configured? If the guest is running on a private network with the host, use NFS with TCP (UDP is BAD here -- UDP is a lossy protocol that doesn't care if it drops packets, and you don't want that when transferring files). You might also want to look into other options like (S)FTP or SMB to transfer files.

share|improve this answer
I'm using KVM for virtualization. Also, can you please comment on whether the lossy nature of UDP matters in the case of two OSes on the same machine. Losses are less likely this way, right? And using UDP doesn't mean that you could get a corrupted file, does it? – user24925 Aug 14 '10 at 0:03

You must log in to answer this question.

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