mitchellh/vagrant — Issue #690: Ability to set the type of nic for bridged network.
Author: sathlan
Created: 2012-01-29 03:47:08+00:00
State: open

Hi again,

for some setup, the default nic used by VirtualBox (Intel) has a bug where the guest vlan disappears (see this thread for instance https://forums.virtualbox.org/viewtopic.php?f=1&t=38037 -- I have the same issue with VB4.1, and linux guest). So I needed a way to specify the type of network adapter use for each interface. I couldn't find any so I came up with this patch : sathlan/vagrant@5eb3715 . It works only for bridged network and has the following syntax:

config.vm.network :bridged, { nic_type: 'virtio' }
config.vm.network :bridged, { nic_type: 'virtio' }