70 Commits

Author SHA1 Message Date
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
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
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
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
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
Gerard Braad
f748ac1301 Fix issue with localized groups
Signed-off-by: Gerard Braad <me@gbraad.nl>
2017-10-23 17:59:48 -07:00
Joffrey F
97c1136d1e Remedy updated linter errors
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-02 13:44:36 -07:00
Sven Dowideit
2ea653b5e3 Allow rancheros to select a different Docker engine version using --engine-install-url
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-05-30 11:58:50 +10:00
Aaron.L.Xu
bfd2546447 fix typos in project scope
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
2017-02-10 13:40:04 +08:00
James Nord
a5da41de6e Allow hyper-v driver to be used from non admin accounts and clean up the fixed disk after convertion.
Signed-off-by: James Nord <jnord@cloudbees.com>
2016-03-21 21:00:53 +00:00
Jeremiah Peschka
b800a93f5e Creating distinct Hyper-V and Administrators role checks
Signed-off-by: Jeremiah Peschka <jeremiah.peschka@gmail.com>
2016-03-09 13:53:11 +00:00
Jean-Laurent de Morlhon
cf7885163c Merge pull request #2932 from sipicsg/master
added hyperv static mac address and vlan option for machine creation
2016-02-18 09:56:34 +01:00
Jean-Laurent de Morlhon
e4ef6d4098 Fix #2995
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2016-02-09 17:01:26 -08:00
Sipics Gergely
a8625397bc added hyperv static mac address and vlan option for machine creation (with doc\drivers update)
Signed-off-by: Gergely Sipics <gergely.sipics@possible.com>
2016-02-03 22:12:47 +01:00
Jean-Laurent de Morlhon
8eb22b411b Fix #2029 - local drivers dont run with engine-install-url
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2016-01-28 18:05:58 +01:00
David Gageot
9354fed274 Remove some duplication related to swarm
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:40:04 +01:00
David Gageot
9d19ecfd27 Add ENV variables for each flag
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 18:12:26 +01:00
David Gageot
22cf29b2ee FIX #639 and #510 find powershell.exe
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:41 +01:00
David Gageot
fa8fa69e7c Wait for machine to start/stop
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot
8b31854a80 Extract the code to create a b2d disk image
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot
0c783976e0 Only get the IP of a running machine
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot
af87c000d2 Simplify commands
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot
a4995adbc7 Add comments
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot
7e7c83427a VSwitch name should be saved to config.json
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot
40ab483a35 FIX #2457 Add a flag to set the CPU count
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot
6a5cc751bb FIX #2232 Check that the user is an Administrator
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 12:04:44 +01:00
David Gageot
d5e11fb961 FIX #512 Check the virtual switch in PreCreateCheck()
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 12:04:39 +01:00
David Gageot
aa3a4e4498 Simplify code
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 11:38:51 +01:00
David Gageot
2311fd69c9 Format code
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 11:36:40 +01:00
David Gageot
19fc64d583 Remove redundant code
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 11:31:38 +01:00
David Gageot
a7bd9e06d2 Update B2D cache in PreCreateCheck phase
Signed-off-by: David Gageot <david@gageot.net>
2015-12-18 11:14:59 +01:00
Alex Crome
9abe8d9848 Clarifying description of hyperv-disk-size
Making clear the value is a maximum for a dynamic disk not the actual size of a fixed size disk.

Signed-off-by: Alex Crome <afscrome@users.noreply.github.com>
2015-11-23 16:41:45 +00:00
Vladimir Varankin
0735f3f447 fix drivers GetUrl to build propper IPv6 addr
Signed-off-by: Vladimir Varankin <nek.narqo+git@gmail.com>
2015-11-13 13:19:15 +03:00
Olivier Gambier
89d9854943 Another pass at linting
Signed-off-by: Olivier Gambier <olivier@docker.com>
2015-11-10 16:58:14 +01:00
David Gageot
11922080a1 FIX #2171 Fix faulty flag and add tests for SetConfigFromFlags
Signed-off-by: David Gageot <david@gageot.net>
2015-11-05 18:57:03 +01:00
David Gageot
6c5dc41e6d Revert "Remove useless duplication on GetSSHHostname"
This reverts commit b6462eb6d0.

Signed-off-by: David Gageot <david@gageot.net>
2015-10-26 18:47:14 +01:00
Nathan LeClaire
8b9291de64 Merge pull request #2033 from dmp42/03-cleanup
Code cleanup
2015-10-23 11:27:44 -07:00
Fabian Ruff
5021ffd2e7 support github enterprise urls for b2d downloads
This commit allows downloading boot2docker releases not only from the official releases url (https://api.github.com/repos/boot2docker/boot2docker/releases) but from arbitrary github repositories that publish releases with a boot2docker.iso artifact. It also supports downloading from github enterprise.

Signed-off-by: Fabian Ruff <fabian@progra.de>
2015-10-22 16:12:21 +02:00
Olivier Gambier
b6462eb6d0 Remove useless duplication on GetSSHHostname
Signed-off-by: Olivier Gambier <olivier@docker.com>
2015-10-21 13:48:13 -07:00
Olivier Gambier
bf3cd8b8f4 Remove useless duplication on PreCreateCheck
Signed-off-by: Olivier Gambier <olivier@docker.com>
2015-10-21 13:48:13 -07:00
David Arnold
ab79c4d9c1 Close #2001 / consistent hyperv internal naming
Signed-off-by: David Arnold <dar@devco.co>
2015-10-18 11:53:39 -05:00
Nathan LeClaire
c8edb33ecd Move towards using external binaries / RPC plugins
- First RPC steps

- Work on some flaws in RPC model

- Remove unused TLS settings from Engine and Swarm options

- Add code to correctly encode data over the network

- Add client driver for RPC

- Rename server driver file

- Start to make marshal make sense

- Fix silly RPC method args and add client

- Fix some issues with RPC calls, and marshaling

- Simplify plugin main.go

- Move towards 100% plugin in CLI

- Ensure that plugin servers are cleaned up properly

- Make flag parsing for driver flags work properly

Includes some work carried from @dmp42 updating the build process and
tests to use the new method.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-10-16 16:34:56 -07:00
Nathan LeClaire
b5927f10c4 Make libmachine usable by outside world
- Clear out some cruft tightly coupling libmachine to filestore

- Comment out drivers other than virtualbox for now

- Change way too many things

- Mostly, break out the code to be more modular.

- Destroy all traces of "provider" in its current form.  It will be
brought back as something more sensible, instead of something which
overlaps in function with both Host and Store.

- Fix mis-managed config passthru

- Remove a few instances of state stored in env vars

- This should be explicitly communicated in Go-land, not through the
shell.

- Rename "store" module to "persist"

- This is done mostly to avoid confusion about the fact that a concrete
instance of a "Store" interface is oftentimes referred to as "store" in
the code.

- Rip out repetitive antipattern for getting store

- This replaces the previous repetive idiom for getting the cert info, and
consequently the store, with a much less repetitive idiom.

- Also, some redundant methods in commands.go for accessing hosts have
either been simplified or removed entirely.

- First steps towards fixing up tests

- Test progress continues

- Replace unit tests with integration tests

- MAKE ALL UNIT TESTS PASS YAY

- Add helper test files

- Don't write to disk in libmachine/host

- Heh.. coverage check strikes again

- Fix remove code

- Move cert code around

- Continued progress: simplify Driver

- Fixups and make creation work with new model

- Move drivers module inside of libmachine

- Move ssh module inside of libmachine

- Move state module to libmachine

- Move utils module to libmachine

- Move version module to libmachine

- Move log module to libmachine

- Modify some constructor methods around

- Change Travis build dep structure

- Boring gofmt fix

- Add version module

- Move NewHost to store

- Update some boring cert path infos to make API easier to use

- Fix up some issues around the new model

- Clean up some cert path stuff

- Don't use shady functions to get store path :D

- Continue artifact work

- Fix silly machines dir bug

- Continue fixing silly path issues

- Change up output of vbm a bit

- Continue work to make example go

- Change output a little more

- Last changes needed to make create finish properly

- Fix config.go to use libmachine

- Cut down code duplication and make both methods work with libmachine

- Add pluggable logging implementation

- Return error when machine already in desired state

- Update example to show log method

- Fix file:// bug

- Fix Swarm defaults

- Remove unused TLS settings from Engine and Swarm options

- Remove spurious error

- Correct bug detecting if migration was performed

- Fix compilation errors from tests

- Fix most of remaining test issues

- Fix final silly bug in tests

- Remove extraneous debug code

- Add -race to test command

- Appease the gofmt

- Appease the generate coverage

- Making executive decision to remove Travis coverage check

In the early days I thought this would be a good idea because it would
encourage people to write tests in case they added a new module.  Well,
in fact it has just turned into a giant nuisance and made refactoring
work like this even more difficult.

- Move Get to Load
- Move HostListItem code to CLI

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-09-23 12:30:15 -07:00
Ivan Ryabchenko
d4ce483ebc Disabled load PowerShell profile when start the interpreter powershell.exe
Signed-off-by: Ivan Ryabchenko <rik.ggm@gmail.com>
2015-09-03 02:29:36 +06:00
Nathan LeClaire
8ba5a57072 Revert "Merge pull request #1552 from ehazlett/b2d-next"
This reverts commit 736ebb14fb, reversing
changes made to c6660bf62c.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-08-03 14:46:52 -07:00
Evan Hazlett
7b5e887275 hyperv: update to b2d-ng and some extra <3
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-07-24 10:20:47 -04:00
Evan Hazlett
cb80c434ac b2d: use direct urls until release; devicemapper for engine opts tests
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>

b2d-ng: use driver names for iso versions

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-07-24 09:07:01 -04:00
Dave Henderson
3d002187fe Refactoring drivers to embed drivers.DefaultDriver
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2015-07-07 11:24:00 -04:00
Evan Hazlett
f82032b28d remove provider
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-05-21 10:41:03 -04:00