adrahon / vagrant-kvm

This project is dead, please use vagrant-libvirt instead! A Vagrant 1.4+ plugin that adds a KVM provider to Vagrant, allowing Vagrant to control and provision KVM/QEMU VM.
MIT License
366 stars 60 forks source link

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

Open aruntomar opened 9 years ago

aruntomar commented 9 years ago

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
adrahon commented 9 years ago

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.