vagrant-kvm icon indicating copy to clipboard operation
vagrant-kvm copied to clipboard

can't change the source network from vagrant to some other existing network

Open aruntomar opened this issue 10 years ago • 1 comments

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

aruntomar avatar Oct 10 '14 08:10 aruntomar

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.

adrahon avatar Oct 11 '14 14:10 adrahon