Skip to content

Commit

Permalink
Issue crc-org#838 Remove virtualbox driver support
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad committed Nov 27, 2019
1 parent d6a16d6 commit 5d5ffc8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 57 deletions.
11 changes: 0 additions & 11 deletions pkg/crc/machine/driver_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (

"github.com/code-ready/crc/pkg/crc/machine/config"
"github.com/code-ready/crc/pkg/crc/machine/hyperkit"
"github.com/code-ready/crc/pkg/crc/machine/virtualbox"
)

func init() {
Expand All @@ -19,15 +18,8 @@ func init() {
DriverPath: constants.CrcBinDir,
}

VirtualBoxMacOSDriver := MachineDriver{
Name: "VirtualBox",
Platform: crcos.DARWIN,
Driver: "virtualbox",
}

SupportedDrivers = []MachineDriver{
HyperkitDriver,
VirtualBoxMacOSDriver,
}

DefaultDriver = HyperkitDriver
Expand All @@ -39,9 +31,6 @@ func getDriverOptions(machineConfig config.MachineConfig) interface{} {
// Supported drivers
switch machineConfig.VMDriver {

case "virtualbox":
logging.Warn("Virtualbox support is deprecated and will be removed in the next release.")
driver = virtualbox.CreateHost(machineConfig)
case "hyperkit":
driver = hyperkit.CreateHost(machineConfig)

Expand Down
11 changes: 0 additions & 11 deletions pkg/crc/machine/driver_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/code-ready/crc/pkg/crc/machine/config"
"github.com/code-ready/crc/pkg/crc/machine/hyperv"
"github.com/code-ready/crc/pkg/crc/machine/virtualbox"
)

func init() {
Expand All @@ -17,15 +16,8 @@ func init() {
Driver: "hyperv",
}

VirtualBoxWindowsDriver := MachineDriver{
Name: "VirtualBox",
Platform: crcos.WINDOWS,
Driver: "virtualbox",
}

SupportedDrivers = []MachineDriver{
HyperVDriver,
VirtualBoxWindowsDriver,
}

DefaultDriver = HyperVDriver
Expand All @@ -37,9 +29,6 @@ func getDriverOptions(machineConfig config.MachineConfig) interface{} {
// Supported drivers
switch machineConfig.VMDriver {

case "virtualbox":
logging.Warn("Virtualbox support is deprecated and will be removed in the next release.")
driver = virtualbox.CreateHost(machineConfig)
case "hyperv":
driver = hyperv.CreateHost(machineConfig)

Expand Down
29 changes: 0 additions & 29 deletions pkg/crc/machine/virtualbox/driver.go

This file was deleted.

6 changes: 0 additions & 6 deletions pkg/crc/services/dns/dns_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ const (
)

func runPostStartForOS(serviceConfig services.ServicePostStartConfig, result *services.ServicePostStartResult) (services.ServicePostStartResult, error) {
// bailout for Virtualbox
if serviceConfig.DriverName == "virtualbox" {
result.Success = true
return *result, nil
}

_, switchName := winnet.SelectSwitchByNameOrDefault(AlternativeNetwork)
networkInterface := fmt.Sprintf("vEthernet (%s)", switchName)

Expand Down

0 comments on commit 5d5ffc8

Please sign in to comment.