mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #778 from ericpulvino/port-fwd-readme-fix
Enhancing portion of the README pertaining to Port Forwards
This commit is contained in:
commit
8b33e14338
12
README.md
12
README.md
@ -547,7 +547,7 @@ starts with `libvirt__` string. Here is a list of those options:
|
|||||||
network 'default' is used.
|
network 'default' is used.
|
||||||
* `:libvirt__netmask` - Used only together with `:ip` option. Default is
|
* `:libvirt__netmask` - Used only together with `:ip` option. Default is
|
||||||
'255.255.255.0'.
|
'255.255.255.0'.
|
||||||
* `:libvirt__host_ip` - Adress to use for the host (not guest). Default is
|
* `:libvirt__host_ip` - Address to use for the host (not guest). Default is
|
||||||
first possible address (after network address).
|
first possible address (after network address).
|
||||||
* `:libvirt__dhcp_enabled` - If DHCP will offer addresses, or not. Used only
|
* `:libvirt__dhcp_enabled` - If DHCP will offer addresses, or not. Used only
|
||||||
when creating new network. Default is true.
|
when creating new network. Default is true.
|
||||||
@ -1060,6 +1060,8 @@ vagrant-libvirt supports Forwarded Ports via ssh port forwarding. Please note
|
|||||||
that due to a well known limitation only the TCP protocol is supported. For
|
that due to a well known limitation only the TCP protocol is supported. For
|
||||||
each `forwarded_port` directive you specify in your Vagrantfile,
|
each `forwarded_port` directive you specify in your Vagrantfile,
|
||||||
vagrant-libvirt will maintain an active ssh process for the lifetime of the VM.
|
vagrant-libvirt will maintain an active ssh process for the lifetime of the VM.
|
||||||
|
If your VM should happen to be rebooted, the SSH session will need to be
|
||||||
|
restablished by halting the VM and bringing it back up.
|
||||||
|
|
||||||
vagrant-libvirt supports an additional `forwarded_port` option `gateway_ports`
|
vagrant-libvirt supports an additional `forwarded_port` option `gateway_ports`
|
||||||
which defaults to `false`, but can be set to `true` if you want the forwarded
|
which defaults to `false`, but can be set to `true` if you want the forwarded
|
||||||
@ -1069,6 +1071,14 @@ also set the `host_ip` option to `'*'` since it defaults to `'localhost'`.
|
|||||||
You can also provide a custom adapter to forward from by 'adapter' option.
|
You can also provide a custom adapter to forward from by 'adapter' option.
|
||||||
Default is `eth0`.
|
Default is `eth0`.
|
||||||
|
|
||||||
|
**Internally Accessible Port Forward**
|
||||||
|
|
||||||
|
`config.vm.network :forwarded_port, guest: 80, host: 2000`
|
||||||
|
|
||||||
|
**Externally Accessible Port Forward**
|
||||||
|
|
||||||
|
`config.vm.network :forwarded_port, guest: 80, host: 2000, host_ip: "0.0.0.0"`
|
||||||
|
|
||||||
## Synced Folders
|
## Synced Folders
|
||||||
|
|
||||||
vagrant-libvirt supports bidirectional synced folders via nfs or 9p and
|
vagrant-libvirt supports bidirectional synced folders via nfs or 9p and
|
||||||
|
Loading…
Reference in New Issue
Block a user