Commit Graph

160 Commits

Author SHA1 Message Date
David Gageot ea9bbcb367 Test VirtualBox VM creation
Signed-off-by: David Gageot <david@gageot.net>
2016-01-14 06:56:42 +01:00
David Gageot 8553dd2d6c Fix multiple bugs with host-only adapterss
Signed-off-by: David Gageot <david@gageot.net>
2016-01-11 11:09:18 +01:00
David Gageot 6dc0801674 Add unit tests for vbm
Signed-off-by: David Gageot <david@gageot.net>
2016-01-07 09:52:26 +01:00
David Gageot 5e75bf3346 Fix broken VTx detection
Signed-off-by: David Gageot <david@gageot.net>
2016-01-06 12:42:46 +01:00
David Gageot 8664af9f9b Tell the user that Hyperv could cause VBox to fail
Signed-off-by: David Gageot <david@gageot.net>
2016-01-05 18:40:33 +01:00
David Gageot e143c68cf9 Merge pull request #2732 from dgageot/better-logs
Improve Start/Stop/Kill/Restart lifecycle/logs
2016-01-04 16:24:55 +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 855de0741a Logs for Kill
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot e9aa75f021 Logs for Restart
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot 783d2b124e Logs for Start
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot bbe76b5a26 Logs for Stop
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot c36a2711af Detect VBox/HyperV incompatibility
Signed-off-by: David Gageot <david@gageot.net>
2015-12-28 11:18:56 +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 1c6ceed28e Fix Restart() for some drivers
Signed-off-by: David Gageot <david@gageot.net>
2015-12-22 10:32:57 +01:00
David Gageot df30a135b2 Merge pull request #2644 from dgageot/nathanleclaire-xtra_vbox_logs
Add extra logging to VirtualBox driver
2015-12-21 09:46:31 +01:00
David Gageot c584b8e641 Merge pull request #2625 from dgageot/2624-reject-duplicate-hostonlyifs
FIX #2624 reject duplicate hostonlyifs name/IP
2015-12-21 09:29:25 +01:00
Nathan LeClaire 54bda622d3 Add extra logging to VirtualBox driver
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-12-21 09:20:53 +01:00
David Gageot 352d28220c Merge pull request #2620 from dgageot/2619-hardware-virtualization-test
Don't create the VM if no hardware virtualization
2015-12-21 09:18:49 +01:00
David Gageot 3c4fd63f93 FIX #2624 reject duplicate hostonlyifs name/IP
Signed-off-by: David Gageot <david@gageot.net>
2015-12-21 09:15:01 +01:00
David Gageot ac45f88ce3 Don't create the VM if no hardware virtualization
Signed-off-by: David Gageot <david@gageot.net>
2015-12-18 12:27:04 +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
David Gageot 42ad416c0a FIX #2479 Warn on VirtualBox version
Signed-off-by: David Gageot <david@gageot.net>
2015-12-10 16:10:52 +01:00
David Gageot 52128128fd Detect Yet Another Virtualization issue
Signed-off-by: David Gageot <david@gageot.net>
2015-12-08 17:43:39 +01:00
Joe Friedl b2c9366245 Add the --virtualbox-host-dns-resolver flag
Signed-off-by: Joe Friedl <joe@joefriedl.net>
2015-12-01 21:03:51 -05:00
Jean-Laurent de Morlhon b7b767aafe Allow virtualbox DNSProxy override
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2015-12-01 16:02:20 +01:00
David Gageot 515bdad0f6 Remove redundant log
Signed-off-by: David Gageot <david@gageot.net>
2015-11-27 09:33:21 +01:00
Jean-Laurent de Morlhon 84a40bcc06 Refactor OS Specific code
And introduce Per-OS testing

Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2015-11-24 16:03:41 +01:00
David Gageot 8d47fe746e Reject VirtualBox version<=3
Signed-off-by: David Gageot <david@gageot.net>
2015-11-20 18:57:26 +01:00
David Gageot 35b2b042e1 Merge pull request #2374 from dgageot/more-vb-tests
Add more tests to the VirtualBox driver
2015-11-20 18:47:20 +01:00
Jean-Laurent de Morlhon ade5911b32 Fixes #2372, add test for #2356
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2015-11-20 17:48:53 +01:00
David Gageot 53c5198a5a Use the passed VBoxManager
This makes the code easier to test.

Signed-off-by: David Gageot <david@gageot.net>
2015-11-20 15:01:55 +01:00
Daehyeok Mun 02da868c08 VirtualBox: Delete machine in 'PAUSED' state
Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
2015-11-20 02:30:50 -07:00
David Gageot 79563b1972 Move VT-X check to PreCreateCheck
Signed-off-by: David Gageot <david@gageot.net>
2015-11-19 11:51:56 +01:00
David Gageot b586b94b13 Cosmetics
Signed-off-by: David Gageot <david@gageot.net>
2015-11-19 11:51:56 +01:00
David Gageot 620b2ed418 Add missing ENV for import-boot2docker-vm flag
Signed-off-by: David Gageot <david@gageot.net>
2015-11-19 11:51:55 +01:00
David Gageot df7212df95 Add missing ENV for no-share flag
Signed-off-by: David Gageot <david@gageot.net>
2015-11-19 11:51:55 +01:00
David Gageot d56d0dc495 Remove unused constants
Signed-off-by: David Gageot <david@gageot.net>
2015-11-19 11:11:07 +01:00
David Gageot eb42133a06 Merge pull request #2122 from chantra/mount_linux
Add shared folder and virtualization check for Linux.
2015-11-18 10:12:56 +01: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 fb986b23e0 Merge pull request #2207 from jeanlaurent/1737-virtualbox-installation-path
Fix #1737 - Detect non default VirtualBox Installation Path
2015-11-10 10:02:38 +01:00
Jean-Laurent de Morlhon b6ca1035bd Fix for #1737 - Better detect non default VirtualBox Installation Path
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2015-11-10 09:52:38 +01:00
Nathan LeClaire ad757310fb Fix boot2docker import regression
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-11-06 17:10:41 -08:00
Todor Minchev 36ca9c6063 Fix DHCP server and host-only adapter IP address clash
When setting up a host-only network we need to pass the IP address
of the host adapter (e.g 192.168.99.1) to the getRandomIPinSubnet function.
Passing the network address (e.g 192.168.1.0) can result in bypassing the IP
clash check and having the same address assigned to both the DHCP server
and the host-only network interface.

Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
2015-11-03 11:26:31 -08:00
David Gageot 0176f05db8 FIX #2127 Detect that HW virtualization is not supported
Signed-off-by: David Gageot <david@gageot.net>
2015-10-30 16:19:38 +01:00
Emmanuel Bretelle 42f1dbb964 virtualbox: support linux host
Fixes #2110

Signed-off-by: Emmanuel Bretelle <chantr4@gmail.com>
2015-10-29 20:21:10 -07:00
David Gageot 970c630fd3 FIX #2093 warn in case we think VT-X is not enabled.
Signed-off-by: David Gageot <david@gageot.net>
2015-10-28 22:22:04 +01: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
Chris Abernethy 6a7c8c2a25 Additional validation on virtualbox-hostonly-cidr
Check that the CIDR provided for a virtualbox host only CIDR is specified as a host IP and netmask, e.g., 192.168.100.1/24, and not a network IP and netmask, e.g., 192.168.100.0/24. This will help prevent confusion like #1383

Signed-off-by: Chris Abernethy <cabernet@chrisabernethy.com>

Signed-off-by: David Gageot <david@gageot.net>
2015-10-21 20:46:13 +02:00
Dave Henderson e2856e36f4 Adding support for darwin to IsVTXDisabled
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2015-10-20 21:20:40 -04:00
David Gageot 94361315a8 Add tests to virtualbox driver
Signed-off-by: David Gageot <david@gageot.net>
2015-10-20 19:08:18 +02:00