I develop applications with Vagrant and VirtualBox and feel frustrated about slowness of VirtualBox. Since I found virtio (paravirtualized network adapter), I tried it out on my application.
How to enable virtio with Vagrant
Add following lines into your Vagrantfile.
v.customize ["modifyvm", :id, "--nictype1", "virtio"] v.customize ["modifyvm", :id, "--nictype2", "virtio"]
Results
I ran time vagrant provision
with old and new settings and virtio-net is 1.2x faster than 82540EM (default network adapter).
vagrant provision 14.85s user 12.49s system 5% cpu 8:20.59 total
with Intel PRO/1000 MT Desktop (82540EM)vagrant provision 14.63s user 12.62s system 6% cpu 7:00.70 total
with virtio-net
- 作者: Lorin Hochstein
- 出版社/メーカー: O'Reilly Media
- 発売日: 2015/04/29
- メディア: Kindle版
- この商品を含むブログを見る