Use --portcount on VirtualBox 5.x

This commit is contained in:
Lorenzo Villani 2015-07-13 19:21:59 +02:00
parent 683d6a73ec
commit 7e64e90670
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func (d *VBox42Driver) CreateSATAController(vmName string, name string) error {
}
portCountArg := "--sataportcount"
if strings.HasPrefix(version, "4.3") {
if strings.HasPrefix(version, "4.3") || strings.HasPrefix(version, "5.") {
portCountArg = "--portcount"
}