Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple network provision #47

Closed
wants to merge 7 commits into from

Conversation

miurahr
Copy link
Collaborator

@miurahr miurahr commented Aug 25, 2013

Here is an incomplete multiple private network support modifications.

It could be merged in release AFTER ruby-libvirt 0.5.0 released.

It is necessary to update many part in order to relalize muti-vm multi-net environment. That's because I request early for peer/community review and discussion here.

Comments, Suggestions and requests are welcome!!

- network name now vagrant-(subnet)
- network name configurable in libvirt network definition.
  Now can insert netowrk name into vm template xml
  This make the network name changable.
- default network domain named something 'default' is better;
  domain_name is always vagrant.local
Fix problem that nfs export only for ip address
where is defined in box.xml, ignoring Vagrantfile's
definition.

network.rb:
 - remember machine_ip
driver.rb:
 - introduce read_machine_ip method to get
   machine ip address from domain and network
   definition.
 - This fixes nfs and ssh to access correct ip.
vm_definition: can have multiple nics
network.rb:
  - checks 3 types of network options: forwarded, private and public
    and treat separately.
  - TODO: forwarded_port
  - vm can have several private network segments.
    each network segment has name 'vagrant-<subnet>'
  - TODO: public network.
  - add check logic about network segment.
    libvirt have a default network segment such as
    192.168.122.0 for default/nat and 192.168.100.0 for routing.
driver.rb:
  - add_nic (nic) add a nic to vm_definition.
In previous commit, it is introduced that mulple nics with
vm_definitions. Notwork definition has also nics definition
in order to DHCP returns proper IP address.

This fixes network definition can have multiple host definitions.
This modification require for ruby-libvirt 0.5.0 or later
that will be support libvirt API virNetworkUpdate

It fixes problem when host has same network segment for
other vagrant environment or another purpose.

It is important feature for multi-network or Multi-VM environment.
KVM can have a network definition without fowarding mode.
This means host-only, no nat network definition.

VirtualBox don't have this mode basically.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@miurahr
Copy link
Collaborator Author

miurahr commented Oct 9, 2013

dependency library ruby-libvirt is now under active development; http://libvirt.org/git/?p=ruby-libvirt.git;a=summary
Pls wait when release :-)

@miurahr
Copy link
Collaborator Author

miurahr commented Nov 14, 2013

This should fix #49

@miurahr
Copy link
Collaborator Author

miurahr commented Dec 8, 2013

This is obsolete and cannot merge recent master.

@miurahr miurahr closed this Dec 8, 2013
@miurahr miurahr deleted the multiple-network-provision branch February 14, 2014 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant