1002 Commits

Author SHA1 Message Date
Anders F Björklund
173a41dd53 Fix broken IsVTXDisabled detection on AMD CPU
VMX is in FeatureNames, but SVM is in ExtraFeatureNames
This meant that detection *always* failed for SVM (AMD)

Thanks to user @hilbertxia

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
2019-03-02 14:24:37 +01:00
David Gageot
77e027b1e8 Merge pull request #4350 from zmthy/amazonec2-ssh-port
Add ssh-port flag to the amazonec2 driver
2019-01-13 08:55:53 +01:00
David Gageot
6ab5418ab4 Merge pull request #4506 from Jason-ZW/add-nonempty-flag
Add nonempty flag
2019-01-13 08:55:31 +01:00
David Gageot
10d5119334 Merge pull request #4509 from gbraad/localized-switches
Allow localized names for Virtual Switch
2019-01-13 08:54:58 +01:00
David Gageot
fb59f089f1 Merge pull request #4527 from classmarkets/google-service-account
drivers/google: Add support for non-default service account
2019-01-13 08:54:38 +01:00
David Gageot
621d44c15e Merge pull request #4603 from xinau/openstack-metadata
drivers/openstack: added flag openstack-metadata
2019-01-13 08:53:30 +01:00
David Gageot
d3f89ca7a1 Merge pull request #4609 from 0xmohit/patch-1
drivers/softlayer: don't set the request method again
2019-01-13 08:52:56 +01:00
David Gageot
70d89435be Merge pull request #4634 from albgus/eu-north-1
Add AWS region eu-north-1
2019-01-13 08:52:23 +01:00
Albin Gustavsson
8300259a37 Add AWS region eu-north-1
Signed-off-by: Albin Gustavsson <git@gustavsson.online>
2019-01-08 23:45:53 +01:00
Jade Auer
5a8ce1ae43 use CPUID instead of shelling out for VT-d detection
Signed-off-by: Jade Auer <jda@tapodi.net>
2019-01-08 14:44:00 -08:00
Mohit Agarwal
7c5bd37180 drivers/softlayer: don't set the request method again
It would be set by the request returned by http.NewRequest.

Signed-off-by: Mohit Agarwal <mohit@sdf.org>
2018-11-18 15:40:29 +05:30
xinau
1e3fa2d2cf added flag for openstack metadata
Signed-off-by: xinau <felix.ehrenpfort@codecentric.cloud>
2018-11-06 14:47:17 +00:00
Florian Ludwig
b36cb27a04 openstack: don't fail when trying to delete non-existing keypair
Signed-off-by: Florian Ludwig <f.ludwig@greyrook.com>
2018-09-20 14:35:00 -07:00
F. Eugene Aumson
dccdee0102 aws ec2 preqreq check: match error to filter
filter to search for a subnet searches by both regionZone and VpcId,
but when no matches were found, the error message neglected to mention
that the VPC ID was part of the search criteria

Signed-off-by: F. Eugene Aumson <feuGeneA@github.com>
2018-09-19 16:38:38 -07:00
F. Eugene Aumson
69717945a4 amazonec2: correct mis-handling of 'none' VPC
Without this change,

docker-machine create \
    --driver amazonec2 \
    --amazonec2-security-group parity-security-group \
    --amazonec2-instance-type t2.medium \
    --amazonec2-access-key ... \
    --amazonec2-secret-key ... \
    --amazonec2-root-size 128 \
    parity-node

yields the program output

Error with pre-create check: "unable to find a subnet in the zone: us-e
ast-1a"

which comes from drivers/amazonec2/amazonec2.go:506.

But that message is misleading.  After sprinkling in some
`fmt.Println`s, I discovered that the missing piece of info is not
actually the subnet, but rather the VPC ID, which is "none".

With this change, that same command now yields:

Error setting machine configuration from flags provided: amazonec2 driv
er requires either the --amazonec2-subnet-id or --amazonec2-vpc-id opti
on or an AWS Account with a default vpc-id

Signed-off-by: F. Eugene Aumson <feuGeneA@github.com>
2018-09-19 16:38:38 -07:00
Peter Schultz
bfa0cf6750 drivers/google: Add support for non-default service account
Add the --google-service-account flag to create VMs that are not
provisioned with the default service account.

Signed-off-by: Peter Schultz <peter.schultz@classmarkets.com>
2018-07-03 09:35:00 +02:00
Gerard Braad
5bc065d6eb Allow localized names for Virtual Switch
Signed-off-by: Gerard Braad <me@gbraad.nl>
2018-06-12 09:46:11 +00:00
Jason-ZW
56ab5f039b Add nonempty flag
Signed-off-by: Jason-ZW <zhenyang@rancher.com>
2018-06-11 16:00:03 +08:00
David Gageot
1e4713ba7b Merge pull request #4477 from shahiddev/master
Add support to disable hyperv dynamic memory management
2018-06-04 14:17:08 +02:00
David Gageot
635818aba6 Merge pull request #4490 from andrestc/ec2-sg-readonly
drivers/amazonec2: adds flag to prevent mutating security groups
2018-06-04 14:15:21 +02:00
Motonori Shindo
e515a4be57 The parentheses are needed for the shell command to be executed properly.
If the shell command looks like

  "condition1 && command1 || condition2 && command2 || command3"

then condition2 will never be checked if condition1 is true and command1
exists normally. In order for this code to run expectedly, it should look
like

  "(condition1 && command1) || (condition2 && command2) || command3"

instead.

Specifically, with the code like

  "[ ! -d /Users ]&& sudo mkdir /Users; sudo mount --bind /mnt/hgfs/Users /Users || [ -f /usr/local/bin/vmhgfs-fuse ]&& sudo /usr/local/bin/vmhgfs-fuse -o allow_other .host:/Users /Users || sudo mount -t vmhgfs -o uid=$(id -u),gid=$(id -g) .host:/Users /Users"

if both "[ ! -d /Users ]" and "sudo mkdir /Users; sudo mount --bind
/mnt/hgfs/Users /Users" are true, then the existence of a file
/usr/local/bin/vmhgfs-fuse will never be examined and always be executed
even if the file doesn't exist. Consequently, it always fails.

Signed-off-by: Motonori Shindo <motonori@shin.do>
2018-05-25 01:14:47 +09:00
André Carvalho
c6a7c452a5 drivers/amazonec2: adds flag to prevent mutating security groups
Signed-off-by: André Carvalho <asantostc@gmail.com>
2018-05-23 14:34:34 -03:00
Shahid Iqbal
6aeb46f7f3 Add support to disable hyperv dynamic memory management during VM creation
Signed-off-by: Shahid Iqbal <sf.shahid@gmail.com>
2018-05-13 17:21:29 +01:00
Yoan Blanc
a61bafea02 exoscale: picking the username from the template
- grab the username from the template
- more robust template search
- storing the raw as well UserData
- creating folder before storing the private key

Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-04-30 17:00:36 +02:00
David Gageot
9715a12e47 Merge pull request #4435 from exoscale/exoscale/too-many-security-groups
exoscale: library update
2018-03-29 11:31:42 +02:00
Yoan Blanc
f50078c415 exoscale: update code w.r.t. lib update
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-03-22 08:30:31 +01:00
David Gageot
66634bcaa0 Switching to go 1.10
Signed-off-by: David Gageot <david@gageot.net>
2018-03-20 17:22:16 +01:00
Carlos Alberto Costa Beppler
5163583eef Use the correct case for Hyper-V module name.
Signed-off-by: Carlos Alberto Costa Beppler <carlos.beppler@mps.com.br>
2018-03-19 15:13:29 -03:00
Carlos Alberto Costa Beppler
c79bd4ad74 Correct the Hyper-V module check on pre-create check.
Signed-off-by: Carlos Alberto Costa Beppler <carlos.beppler@mps.com.br>
2018-03-19 15:13:22 -03:00
Michael Frister
68fb7fcfc3 EC2: Update AMIs to mitigate Meltdown and Spectre
Also add the cn-northwest-1 region.

Note: The latest AMIs for China are from January, so they most certainly
don't have all Meltdown/Spectre mitigations.

Signed-off-by: Michael Frister <michael.frister@friday.de>
2018-03-06 13:42:50 +01:00
Yoan Blanc
9470b46e8e exoscale: add default user for RedHat and Fedora
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-03-02 16:43:44 +01:00
Yoan Blanc
6f2a14bd24 exoscale: arbitrary disk size
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-03-02 16:43:43 +01:00
Yoan Blanc
d77d260e61 exoscale: allow reusing existing SSH key pair
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-03-02 16:43:43 +01:00
Dave May
15095c90d0 Prepend hyper-v module name to fix cmdlet collision with vmware powercli
Signed-off-by: Dave May <dave.may@tresta.com>
2018-02-23 16:32:52 -05:00
Ivan Markin
d773cc7231 Make VirtualBox driver build on OpenBSD
Signed-off-by: Ivan Markin <sw@nogoegst.net>
2018-02-12 23:32:52 +00:00
David Gageot
5048437c3d Merge pull request #4355 from tmaier/google-AutoDelete
Google Driver: Enable AutoDelete of Disks for GCE
2018-02-10 09:50:58 +01:00
Steven Cooney
cee1891753 Add monitoring flag for Digital Ocean droplets
Digital Ocean now has the functionality for more extensive monitoring of droplets, which includes the ability to set alerts for droplets. These new features only work if a monitoring script is run on the droplet upon startup, fortunately the Digital Ocean API allows for a flag to be passed through (similar to how `private networking` is switched on) that pre-installs the monitoring script allowing the more in-depth monitoring. I have simply added this flag to `docker-machine`.

Signed-off-by: Steven Cooney <dev@stevenjamescooney.com>
2018-02-02 20:39:23 +00:00
David Gageot
d9615a5111 Merge pull request #4378 from SvenDowideit/default-to-external-switch
[hyperv] if no vswitch is specified, only pick the first external one
2018-01-31 21:55:48 -08:00
Dowideit, Sven (O&A, St. Lucia)
30acfcbedc [hyperv] if no vswitch is specified, only pick the first external one
Signed-off-by: Dowideit, Sven (O&A, St. Lucia) <Sven.Dowideit@csiro.au>
2018-01-30 16:11:39 +10:00
Alexandre Côté
3022f7c38d Update the default DigitalOcean droplet size
Signed-off-by: Alexandre Côté <a.cote@2kloc.com>
2018-01-29 20:29:23 -05:00
Yoan Blanc
a0224848f4 exoscale: enable back legacy standalone swarm
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-01-29 11:35:35 +01:00
Yoan Blanc
cd66938534 exoscale: fix default template
Ubuntu TLS vs LTS...

Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-01-29 11:18:49 +01:00
David Gageot
83d186e384 Merge pull request #4317 from nolith/aws-cleanup-on-failure
Ensure proper cleanup of dangling resources in case of failure
2018-01-28 10:17:01 -08:00
David Gageot
ae6078dae9 Merge pull request #4358 from davidarcher/4239_openstack_keypair
Fixes #4239 - openstack: only delete autogenerated keypairs on rm
2018-01-28 10:09:37 -08:00
David Gageot
94b3b39a75 Merge pull request #4297 from tt/check-errors-when-creating-virtual-machine
Check errors when creating virtual machine
2018-01-28 10:08:46 -08:00
David Gageot
3f0d691786 Merge pull request #4334 from exoscale/exoscale/upgrade
Exoscale/upgrade
2018-01-28 10:06:25 -08:00
David Archer
9683b65521 Fixes #4239, Fixes #3261 - openstack: only delete autogenerated keypairs on rm
Signed-off-by: David Archer <darcher@gmail.com>
2018-01-28 13:02:38 -05:00
David Gageot
3f656f6219 Merge pull request #4330 from tmaczukin/make-404-success-when-deleting-gce-machine-and-disk
404 is a success when deleting GCE machine and disk
2018-01-28 09:51:37 -08:00
David Gageot
2777fd971e Merge pull request #4335 from itaylor/master
Google Driver: Add support for fully qualified network and subnetwork names
2018-01-28 09:50:54 -08:00
David Gageot
13fa2e007d Merge pull request #4373 from schweizerbolzonello/ec2-region-eu-west-3
Adding support to EC2 Driver for new AWS eu-west-3 region
2018-01-28 09:49:43 -08:00