vagrant-kvm
vagrant-kvm copied to clipboard
can't change the source network from vagrant to some other existing network
Hi!
I would like to use an existing bridged network with my vagrant vm. correct me if i'm wrong. reading the code, it seems that the source network is hard coded as "vagrant" and there is no attribute accessor for the same to modify the network. eg: i could change the network_model from the default "virtio" to "rtl8139" by specifying the following in the Vagrantfile
config.vm.box = "maas"
config.vm.provider "kvm" do |v|
v.name = "cool"
v.network_model = "rtl8139"
v.provider = "kvm"
# v.network = "LAN"
end
virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
LAN active yes yes
vagrant active no yes
WAN1 active yes yes
WAN2 active yes yes
We have an open issue for this #181
I just pushed some changes to the networking code, I'm going to start working on bridge network next.