Brian Cain
e31b013df8
Ensure vmdk disks that are resized stay in original format
2020-02-10 12:58:11 -08:00
Brian Cain
16c38ed9f4
Fix params for attach_disk driver call
2020-02-10 12:58:11 -08:00
Brian Cain
c679b3f470
Remove TODO
2020-02-10 12:58:11 -08:00
Brian Cain
424450cf16
Change info level from removing disks to WARN
2020-02-10 12:58:11 -08:00
Brian Cain
98ab1798a2
Only cleanup disks if defined from previous run
2020-02-10 12:58:11 -08:00
Brian Cain
d810f32ec5
Move message into info rather than detail for visibility
2020-02-10 12:58:11 -08:00
Brian Cain
9712c599fe
Update method docs for cleanup_disks cap
2020-02-10 12:58:11 -08:00
Brian Cain
71c3e36635
Raise exception if port and device cannot be determined
2020-02-10 12:58:11 -08:00
Brian Cain
4d4844fdef
Simplify params for virtualbox driver attach_disk
2020-02-10 12:58:11 -08:00
Brian Cain
6ba621ac92
Add ability to cleanup and close mediums for a guest
2020-02-10 12:58:11 -08:00
Brian Cain
ad798c2c12
Pass in disk meta file for cleanup_disks
2020-02-10 12:58:11 -08:00
Brian Cain
5d723b4e23
Include cleanup_disk action for virtualbox plugin
2020-02-10 12:58:11 -08:00
Brian Cain
e4a57a8e1d
Add virtualbox cleanup_disks action
2020-02-10 12:58:11 -08:00
Brian Cain
c2e6b5ae78
Ensure disks that go unchanged still get written into disk metadata file
2020-02-10 12:58:11 -08:00
Brian Cain
ec350861cd
Write down metadata for disk configs after configuring disks
2020-02-10 12:58:11 -08:00
Brian Cain
ff77e6279b
Remove todo comment
2020-02-10 12:58:11 -08:00
Brian Cain
831b39f9e0
Use correct variable for disk name
2020-02-10 12:58:11 -08:00
Brian Cain
b8bf424678
Only grab provider disk config if it exists
2020-02-10 12:58:11 -08:00
Brian Cain
2600178d18
Move UI messages into methods
2020-02-10 12:58:11 -08:00
Brian Cain
a75630e274
Enable experimental flag for virtualbox disk configs
2020-02-10 12:58:11 -08:00
Brian Cain
f076ee4708
Add method docs
2020-02-10 12:58:11 -08:00
Brian Cain
616f8e4bd6
Add experimental flags
2020-02-10 12:58:11 -08:00
Brian Cain
0dfde12e9a
Add clone_disk method to virtualbox driver
2020-02-10 12:58:11 -08:00
Brian Cain
d1ccb6536f
Add note about attaching device
2020-02-10 12:58:11 -08:00
Brian Cain
91a274416a
Improve disk messages to user
2020-02-10 12:58:11 -08:00
Brian Cain
7486fe5931
Add ability to resize vmdk disks by converting to vdi
2020-02-10 12:58:11 -08:00
Brian Cain
2e884207df
Rename disk_size variable
...
Use bytes instead of mb to align with flag used
2020-02-10 12:58:11 -08:00
Brian Cain
dec145b8f9
Add additional note about resizing a disk that might be a primrary
2020-02-10 12:58:11 -08:00
Brian Cain
56cc23cdec
Remove prys
2020-02-10 12:58:11 -08:00
Brian Cain
fcc9c55fa0
Begin to add code for resizing VMDK type disks
2020-02-10 12:58:11 -08:00
Brian Cain
4df346c5c6
Add resize for disks
...
Also add warnings in case disk resize request is smaller than original
disk size.
2020-02-10 12:58:11 -08:00
Brian Cain
7e686e6f70
Attach harddisk after creation
2020-02-10 12:58:11 -08:00
Brian Cain
1c87351c94
Begin to add method for determining the proper port and device
2020-02-10 12:58:11 -08:00
Brian Cain
2a3f9dad29
Remove uuid from params
...
No need to pass in machine uuid as it is a class variable already for the driver
2020-02-10 12:58:11 -08:00
Brian Cain
259cb5fcca
Attempt to create and attach disk to guest
2020-02-10 12:58:11 -08:00
Brian Cain
9b83e2ac30
Move around pry
2020-02-10 12:58:11 -08:00
Brian Cain
35c8db56ec
Add handling for configuring and creating disks with vbox provider
2020-02-10 12:58:11 -08:00
Brian Cain
cac56c983c
Add extra key for vbox driver with listing hdds
2020-02-10 12:58:11 -08:00
Brian Cain
5be7989f2d
Add basic driver methods for disk operations
2020-02-10 12:58:11 -08:00
Brian Cain
16cccd504a
Add virtualbox driver method for obtaining vm information
2020-02-10 12:58:11 -08:00
Brian Cain
9bf41d34ba
Add some basic driver methods for configuring disks
2020-02-10 12:58:11 -08:00
Brian Cain
55cb8d1f0a
Add configure_disk blank unit test file and some method docs
2020-02-10 12:58:11 -08:00
Brian Cain
fc54996ba8
Add beginning of ConfigureDisks capability to VirtualBox provider
2020-02-10 12:58:11 -08:00
Jeff Bonhag
d7a5f74897
Fixes #11128 : Error if machine folder inaccessible ( #11239 )
...
This commit catches the Errno::EPERM raised by the operating system if
the machine folder is inaccessible and displays it as a more friendly
error message.
This can be an issue on macOS Catalina if virtual machine files are kept
in a special directory (Documents/Downloads/Desktop) that Vagrant's
embedded Ruby is not allowed to access.
2019-12-17 12:41:12 -05:00
Brian Cain
fb4e6985e1
Fixes #11249 : Add VirtualBox provider support for version 6.1.x
...
This commit adds support for VirtualBox version 6.1.x. It simply
inherits from the base 6.0.x provider class.
2019-12-11 13:25:11 -08:00
Brian Cain
cef1bd47b3
Add initial disk builtin action
2019-11-22 14:40:23 -08:00
Brian Cain
2901dae948
Add option for docker executor to handle stderr from results
...
Instead of always joining stdout and stderr, only join the two if the
caller explicitly asks for it. Otherwise, only return stdout.
2019-11-22 12:04:09 -08:00
Brian Cain
4d70856b8a
Enhance docker build matching for determining built container ID
...
Prior to this commit, docker would look for a container ID based on
"Successfully built" string. This output does not exist if a user has
enabled the experimental feature buildkit. This commit updates the build
behavior to match against both kinds of outputs, and instead of using
`scan`, it uses MatchData and groups the container id with match group
name `:id` instead of making hard assumptions with the matches being
contained inside arrays from scan.
2019-11-19 10:59:28 -08:00
Juha Ruotsalainen
4fc8b07974
Removed the word 'done'.
...
There are cases, when 'done' is prefix with a duration, like `... 0.1s done`.
2019-11-19 10:02:03 -08:00
Rumpu-Jussi
f3629ebd09
Buildkit-based output processed a bit differently.
2019-11-19 10:02:03 -08:00