I use a VirtualBox machine with Arch Linux as development web server. I want to improve rsync transfer speed via smb://. What kind of configuration is best to improve file transfer/synchronization?
Which network configuration is best for speed between the host and the guest?
My config:
Intel PRO/1000 MT Desktop (Adaptador em ponte (bridged), en1: Wi-Fi (AirPort))
Best Answer
Better than
smb://
would be to NFS mount your shares over a private network interface running the virtio-net drivers. Once mounted, inside the host OS, you'd rsync in the data with:Or whatever you wanted.
Someone already mentioned Vagrant and, on its own it won't speed up your VirtualBox setup, but it does make doing things like mounting in shares on your Mac via NFS export much, much easier than doing it by hand.
For example, here's a Vagrantfile that ups an Arch Linux installation and mounts your Documents directory on your machine via NFS using virtio drivers to
/documents
on the image.It requires root priveledges to work. You'll need to add:
to your sudoers file via
visudo
for it to work.Once you've put that Vagrantfile on disk all you have to do is cd to the directory where you saved it and run
vagrant up
and you're in business. To connect it'svagrant ssh
or you can uncomment that line I left in there to run it with a display head.That's the fastest configuration I know of for host/guest I/O with VirtualBox running Linux as a guest OS.