4387 Commits

Author SHA1 Message Date
Brian Cain
a7a779586a
Don't limit disk number for hyper-v for now 2020-06-30 14:22:41 -07:00
Brian Cain
a20418ad43
Format output from json to return to hyper-v driver 2020-06-30 14:22:41 -07:00
Brian Cain
59bbf9736a
Add powershell script for retreiving disk info for a hyper-v guest 2020-06-30 14:22:41 -07:00
Brian Cain
50adf04b5d
Add list harddisk method for hyper-v provider 2020-06-30 14:22:41 -07:00
Brian Cain
c832394a95
Add location of hyper-v disk path 2020-06-30 14:22:41 -07:00
Brian Cain
83922333d5
Use UInt64 type instead of String for DiskSize 2020-06-30 14:22:41 -07:00
Brian Cain
d451151ff8
Add resize disk driver method 2020-06-30 14:22:41 -07:00
Brian Cain
06799f0ff1
Add driver scripts for disk management 2020-06-30 14:22:41 -07:00
Brian Cain
2b8376cda8
Add additional driver methods for managing disks in hyper-v 2020-06-30 14:22:41 -07:00
Brian Cain
60f2c14b82
Update attach disk script 2020-06-30 14:22:41 -07:00
Brian Cain
26e5cf1d02
Add powershell script for attaching a harddisk to a guest 2020-06-30 14:22:41 -07:00
Brian Cain
09bd28048e
Add driver method for attaching a new disk for hyper-v guests 2020-06-30 14:22:41 -07:00
Brian Cain
7be0a6807a
Fix mixed tabs on get_vm_status script 2020-06-30 14:22:41 -07:00
Brian Cain
787c8a150a
Remove virtualbox code from hyper-v configure_disks file 2020-06-30 14:22:41 -07:00
Brian Cain
090959227e
More comments for TODO with cleaning up disks in hyper-v 2020-06-30 14:22:41 -07:00
Brian Cain
287b0e5aab
Add comment for implementation 2020-06-30 14:22:41 -07:00
Brian Cain
2ef9274f9d
Remove virtualbox code from cleanup_disks method 2020-06-30 14:22:41 -07:00
Brian Cain
8dfa1affdf
Use correct disk extension formats for Hyper-V 2020-06-30 14:22:41 -07:00
Brian Cain
cf47e7ecaf
Replace virtualbox cap name with hyperv 2020-06-30 14:22:41 -07:00
Brian Cain
9020868a93
Add initial files for Hyper-V disk configuration and management 2020-06-30 14:22:41 -07:00
Brian Cain
0d6f12fc3a
Add capabilities for disk management with Hyper-V 2020-06-30 14:22:41 -07:00
Chris Roberts
c9a65ac75b
Merge pull request #11688 from chrisroberts/f-trigger-all
Fix trigger matching on `:all` special value
2020-06-15 14:15:26 -07:00
Sophia Castellarin
d9bbdab428
Merge pull request #11567 from soapy1/suse-hosts-mod
Set hostname according to hostname flag and ip for suse
2020-06-15 14:29:43 -05:00
Sophia Castellarin
a2b70bc28a
Merge pull request #11566 from soapy1/network-hostname-flag
Add :hostname option to network config
2020-06-12 16:51:31 -05:00
Sophia Castellarin
7dfb71c471
Merge pull request #11565 from soapy1/disable-host-modification
Add option to disable modification of /etc/hosts on guest
2020-06-12 16:30:49 -05:00
Sophia Castellarin
111f58ef38
Merge pull request #11628 from soapy1/vagrant-destroy-power-off
Option to forcefully/gracefully destroy virtualbox vm
2020-06-12 15:00:01 -05:00
sophia
b02a78c661 Change config option to allow_hosts_modification 2020-06-12 14:50:07 -05:00
sophia
7265dd2a84 Add :hostname option to network config
* hostname is a boolean
* a network that sets hostname should have a static ip address
* only one network may set hostname

can be set at `config.vm.network :public_network, hostname: true, ip: "192.168.0.1"`
2020-06-12 14:44:35 -05:00
sophia
ff0aea4493 Add option to disable modification of /etc/hosts on guest 2020-06-12 14:25:19 -05:00
Sophia Castellarin
13f50ca840
Merge pull request #11644 from soapy1/shell-provisioner-bat
Shell provisioner gets extension specified in path config if exists
2020-06-12 14:16:40 -05:00
Sophia Castellarin
4704606056
Merge pull request #11570 from soapy1/mount-shared-folders
Automatically mount virtual box shared folder when machine reboots
2020-06-12 14:11:21 -05:00
Brian Cain
7b95826dd7
Add type as param for cloud_init config 2020-06-10 15:38:18 -07:00
Chris Roberts
916655dbd3 Fix trigger matching on :all special value
Updates the type to do a proper comparison when checking for
the `:all` special value as well as applied ignores.

Fixes #11599
2020-06-09 16:12:48 -07:00
Brian Cain
492a532ef5
Remove freezing symbols in disk/trigger conig 2020-06-08 15:02:44 -07:00
Brian Cain
aeeb5dfc6f
Introduce cloud_init config for Vagrant
This commit adds the basic config class for defining cloud_init for a
given guest
2020-06-05 10:38:24 -07:00
sophia
1a758d839b Option to gracefully destroy vm 2020-05-29 15:36:40 -04:00
sophia
fe7968315b Add option to allow/disable fstab modification
Defaults to allow modification of fstab
2020-05-29 15:29:21 -04:00
sophia
1dc761a6c4 Refactor out persisting a mount to it's own guest cap 2020-05-29 15:26:48 -04:00
sophia
d7bd29384e Remove fstab if it is unable to successfully mount 2020-05-29 15:26:48 -04:00
sophia
b511d23ae1 Refresh fstab when folders synced 2020-05-29 15:26:48 -04:00
sophia
298027b70e Automatically mount virtual box shared folder when machine reboots
This is done by adding the mount to fstab
ref: https://askubuntu.com/questions/252853/how-to-mount-a-virtualbox-shared-folder-at-startup

Note, add `nofail` to mount options so as to not stop machine from booting if device disappears
2020-05-29 15:26:48 -04:00
sophia
85fd3b79fe Refactor editin guest /etc/hosts into a util 2020-05-29 15:08:39 -04:00
Brian Cain
fab786cc28
Merge pull request #11602 from briancain/feature/docker-port-collision-fix
Fixes #9067: Ensure new containers don't grab existing bound ports
2020-05-29 08:37:23 -07:00
sophia
fb2470f48d Ensure shell provisioner gets extension specified in path config if exists 2020-05-26 16:35:31 -04:00
Brian Cain
bd4181eb15
Remove whitespace 2020-05-20 10:44:14 -07:00
Brian Cain
1e1d65f81c
Ensure MapCommandOptions util is required prior to use 2020-05-20 10:43:39 -07:00
sophia
fc79aa96dd Search for first free loopback address to insert hostname 2020-05-15 14:24:04 -04:00
sophia
f5d5baec40 Set hostname according to hostname flag and ip for suse 2020-05-15 13:30:23 -04:00
Sophia Castellarin
5e4373998c
Merge pull request #11587 from rgl/feature-esxi-guest-only-create-ssh-directory-when-needed
esxi guest: only create the ssh directory when needed
2020-05-12 15:28:21 -04:00
Brian Cain
cfb9a6457e
Remove obtaining name from docker container info 2020-05-12 11:26:48 -07:00