Brian Cain
bcb6bf8acd
Merge pull request #10347 from briancain/add-timeout-for-ssh-info-hyperv
...
Fixes #10229 : Add proper reboot capability for Windows guests
2018-11-06 09:25:36 -08:00
Mikhail Zholobov
d9d081199c
action/network: Validate IP settings, show human-readable error
2018-11-02 22:29:19 +01:00
Brian Cain
54c8ebc31a
Fixes #10229 : Add timeout for changing hostname on windows
...
Prior to this commit, if Windows was slow to reboot, Vagrant would fail
to find the right IP address to upload the wait_for_reboot script to.
This commit fixes this race condition by adding a timeout to ensure that
Vagrant can retry. It also properly catches an exception in the winrm
ready? method for checking if a guest is properly ready for
communications.
2018-11-02 09:23:00 -07:00
Brian Cain
580bcaebb0
Merge pull request #10311 from briancain/DOCKER-VM-FOLDER-MOUNT
...
Deterministic host VM synced folder location for Docker provider
2018-10-24 16:19:41 -07:00
Brian Cain
7c06950e43
Ensure true or false for automount option
2018-10-23 09:00:55 -07:00
Brian Cain
6d0dfb2690
Fixes #10016 : Add `automount` flag if specified with synced_folder
...
This commit adds a new option to virtualbox synced_folders called
`automount`, where if set to true, will supply the `--automount` flag to
virtualbox.
2018-10-22 15:45:32 -07:00
Brian Cain
94bb50fa7e
Add test for syncing folders with docker provider
2018-10-17 14:14:27 -07:00
Chris Roberts
648e0ddeaa
Explicitly define driver version used for tests
2018-10-01 11:51:14 -07:00
Chris Roberts
85dc0ebec9
Allow automatic mac address assignment with virtuabox provider
2018-10-01 11:05:28 -07:00
Oleksiy Protas
de6a1794c7
Config, validation and test
2018-09-19 10:24:09 -07:00
Brian Cain
c2cff0dc07
Merge pull request #10100 from briancain/DOCKER-TOOLBOX
...
Convert windows paths for volume mounts on docker driver
2018-08-17 15:08:59 -07:00
Brian Cain
5d2d784ae7
( #9085 ) - Add test for converting windows paths
...
This commit adds a test for checking that a windows path for mounting a
volume in a container is properly converted into something that's
usable.
2018-08-08 10:30:04 -07:00
Chris Roberts
87ee57d94a
Add test coverage on link-local skip for ipv6 in vbox
2018-07-30 15:16:50 -07:00
Brian Cain
a3ef471cb0
( #9811 ) Add test for volume consistency and improve documentation
2018-07-27 15:16:39 -07:00
Chris Roberts
8aa74a03a0
Differentiate checkpoints and automatic checkpoints
...
Provide separate configuration settings for enabling/disabling
checkpoints and automatic checkpoints with Hyper-V provider.
2018-07-13 15:23:09 -07:00
Chris Roberts
ed2af17e45
Add delete vm action checks for data directory removal and creation
2018-06-18 10:18:05 -07:00
Chris Roberts
ea4e60247d
Check for module_path entry instead of custom environment variable
2018-06-18 09:53:22 -07:00
Chris Roberts
835c500892
Add WSL check on usable? test for provider
2018-06-18 09:50:56 -07:00
Chris Roberts
1becae50a5
Include test coverage on provider option deprecation
2018-05-29 10:25:48 -07:00
Chris Roberts
c238dc0a35
Include machine name when raising invalid box errors
2018-05-25 16:43:17 -07:00
Chris Roberts
eba552ea73
Add more test coverage on Hyper-V Provider actions
2018-05-25 16:23:45 -07:00
Chris Roberts
d24b432273
Add Hyper-V provider actions test coverage
2018-05-25 15:12:39 -07:00
Chris Roberts
6c731fb86c
Add test coverage on hyper-v provider driver
2018-05-25 10:11:44 -07:00
Chris Roberts
beacb5bada
Add test coverage for all hyper-v configuration options
2018-05-24 16:56:46 -07:00
Brian Cain
79e535a7ee
( #9622 ) Use SafeExec for docker-exec
...
This commit uses the internal helper SafeExec rather than using the
Kernel class directly. It also adds a test to ensure that if the `-t`
option is used, it will call SafeExec.
2018-05-02 14:23:50 -07:00
Josh Soref
1a5ddea9f4
Spelling fixes
...
* account
* addresses
* administrator
* afterwards
* because
* bridgeable
* capabilities
* capability
* checksum
* configuration
* configuration for
* configure
* criteria
* delimited
* delivered
* derivatives
* description
* detect
* directory
* display
* downloading
* during
* electric
* enabling
* encountered
* equivalent
* executable
* executed
* hashicorp
* hypervisor
* hyphens
* implementation
* incorporate
* inheritance
* initialize
* instance
* instead
* interactions
* invocable
* machine
* maximum
* message
* mounting
* overridden
* overwrite
* paramiko
* preparing
* provides
* provisioning
* recursively
* requested
* resetting
* retryable
* running
* satisfied
* searching
* sometimes
* specified
* successfully
* synced folders
* unauthorized
* underlying
* userprofile
* vagrant
* vagrantfile
* variable
* various
* version
* virtual
* windows
2018-03-14 14:41:04 +00:00
Chris Roberts
51232f9a03
When matching hostonly adapter name, force common types
...
Force a string type for comparison to prevent false positives when
the name is unset (resulting in a nil value).
2018-03-09 14:15:31 -08:00
Chris Roberts
780673c6fe
Add warning message for VirtualBox shared folders option.
...
Display warning to user about the VirtualBox SharedFoldersEnableSymlinksCreate
option with link to VirtualBox documentation and instructions on how the
setting can be disabled.
2018-01-20 06:51:59 -08:00
Chris Roberts
b0fc6a06a1
Merge pull request #9294 from chrisroberts/e-smb
...
SMB synced folders enhancements
2018-01-12 15:02:08 -08:00
Brian Cain
b16ca2e384
Introduce flag for SharedFoldersEnableSymlinksCreate
...
Prior to this commit, the virtualbox synced folder option
`SharedFoldersEnableSymlinksCreate` was always enabled. This commit
introduces a config option and an environment variable which allows
users to configure the option globally or per synced_folder in their
Vagrantfile.
2018-01-09 14:33:24 -08:00
Chris Roberts
aabf4d689c
Fix up NFS test to ignore smb capability requests
2017-12-21 10:05:50 -08:00
Zachary Flower
0f4c06f7ba
add unit tests to validate
2017-12-14 15:25:24 -07:00
Erik Lattimore
28a92850ab
Allow synced folders to contain spaces in the guest path
...
It should be valid to allow paths with spaces for the synced folder
guest path but since the guest path is used to generate the ID (if one
isn't provided), this will err out in VirtualBox because it doesn't
allow spaces for the --name argument. We should simply convert ' ' to
'_' as we do with other special characters.
2017-09-29 17:24:12 -04:00
Chris Roberts
f660c19084
Error when compose and force_host_vm are enabled together
2017-08-22 11:36:26 -07:00
Chris Roberts
1c763cf5e6
Expand relative volume paths for compose on current cwd
2017-08-21 13:26:19 -07:00
Chris Roberts
3f8cbb121a
Merge pull request #8837 from chrisroberts/docker-compose/links
...
Split compose links if string values
2017-08-21 13:21:09 -07:00
Brian Cain
8b1043c199
Remove stub methods and replace with allows for rpsec 3
2017-08-04 15:02:59 -07:00
Chris Roberts
1a62743bc5
Update rspec to recent version and fix deprecations
2017-08-03 17:54:07 -07:00
Chris Roberts
3b4901a5b5
Split compose links if string values
2017-07-31 14:23:50 -07:00
Chris Roberts
4bc8cc7563
Filter any machine_ip when preparing the NFS settings
...
When preparing the NFS settings on VirtualBox the guest IP addresses
are pulled from VirtualBox directly and any static addresses are
pulled as well. This can lead to aquiring a host IP and machine IP
but results in a failure of NFS mount because the IPs are not on
the same network. This filters the machine IP result to validate
it is within the host adapter IP range.
2017-07-24 14:02:15 -07:00
Chris Roberts
3e05ac0639
Stub out the which check within compose tests
2017-05-15 09:09:25 -07:00
Chris Roberts
ed1b25f1b2
Include spec coverage on compose driver
2017-05-12 15:09:30 -07:00
David O'Rourke
514193090a
prepare_nfs_settings: Add scoped hash override test.
2016-06-03 15:19:03 +01:00
Seth Vargo
bf96b3348b
provider/docker: Add docker-exec command
...
This adds a new core command, `docker-exec`, which allows the user to
exec into an already-running container.
- Fixes #6566
- Fixes #5193
- Fixes #4904
- Fixes #4057
- Fixes #4179
- Fixes #4903
2016-05-31 20:05:26 -04:00
Seth Vargo
38f23fe001
providers/docker: Allow TCP and UDP ports on same number
...
This commit changes the way ports are aggregated in the Docker provider.
Previously ports were aggregated by their "number", but that is not a
truly unique representation. Instead, the protocol is now taken into
account when generating the port map.
Fixes GH-5527
2016-05-30 17:23:44 -04:00
Seth Vargo
b993699af6
Cleanup more files in tests
2016-05-29 00:34:00 -04:00
Seth Vargo
68329817ad
Merge pull request #7290 from phyber/fix/master/prepare_nfs_settings_machine_ip_fix
...
prepare_nfs_settings: Try harder to get all machine IPs.
2016-05-27 18:38:03 -04:00
Seth Vargo
8c11b537ba
Allow Mac/Windows users to use Docker native
2016-05-27 17:36:07 -04:00
David O'Rourke
c5f975838d
prepare_nfs_settings: Add spec test for static/dynamic IP combo
2016-05-10 11:40:16 +01:00
Mitchell Hashimoto
06a1461081
Merge pull request #6662 from lukebakken/fixes/lrb/gh-4503-hyper-v-admin-privs
...
Fix for 4503
2015-12-14 15:56:55 -08:00