boxcutter / windows

Virtual machine templates for Windows written in legacy JSON and Batch Scripting/JScript
Apache License 2.0
756 stars 264 forks source link

VBoxManage: error: Unknown option: --sataportcount #29

Closed AdrianMW closed 9 years ago

AdrianMW commented 9 years ago

Hi,

I get the following error when trying to 'make eval-win2012r2-datacenter' and 'make virtualbox/eval-win2012r2-standard'

Following the instructions on this page http://kitchen.ci/blog/test-kitchen-windows-test-flight-with-vagrant/

The key error looks to be: VBoxManage: error: Unknown option: --sataportcount

Cheers

make virtualbox/eval-win2012r2-datacenter
rm -rf output-virtualbox-iso
mkdir -p box/virtualbox
packer build -only=virtualbox-iso -var 'cm=nocm' -var 'version=1.0.4' -var 'update=false' -var 'headless=false' -var "shutdown_command=shutdown /s /t 10 /f /d p:4:1 /c Packer_Shutdown" -var "iso_url=http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO" -var "iso_checksum=849734f37346385dac2c101e4aacba4626bb141c" eval-win2012r2-datacenter.json
virtualbox-iso output will be in this color.

==> virtualbox-iso: Downloading or copying Guest additions
    virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
    virtualbox-iso: Downloading or copying: http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
==> virtualbox-iso: Creating floppy disk...
    virtualbox-iso: Copying: floppy/00-run-all-scripts.cmd
    virtualbox-iso: Copying: floppy/01-install-wget.cmd
    virtualbox-iso: Copying: floppy/_download.cmd
    virtualbox-iso: Copying: floppy/_packer_config.cmd
    virtualbox-iso: Copying: floppy/disablewinupdate.bat
    virtualbox-iso: Copying: floppy/eval-win2012r2-datacenter/Autounattend.xml
    virtualbox-iso: Copying: floppy/fixnetwork.ps1
    virtualbox-iso: Copying: floppy/install-winrm.cmd
    virtualbox-iso: Copying: floppy/oracle-cert.cer
    virtualbox-iso: Copying: floppy/passwordchange.bat
    virtualbox-iso: Copying: floppy/powerconfig.bat
    virtualbox-iso: Copying: floppy/zz-start-sshd.cmd
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Error creating disk controller: VBoxManage error: Oracle VM VirtualBox Command Line Management Interface Version 5.0.0
==> virtualbox-iso: (C) 2005-2015 Oracle Corporation
==> virtualbox-iso: All rights reserved.
==> virtualbox-iso: 
==> virtualbox-iso: Usage:
==> virtualbox-iso: 
==> virtualbox-iso: VBoxManage storagectl       <uuid|vmname>
==> virtualbox-iso:                             --name <name>
==> virtualbox-iso:                             [--add ide|sata|scsi|floppy|sas]
==> virtualbox-iso:                             [--controller LSILogic|LSILogicSAS|BusLogic|
==> virtualbox-iso:                                           IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
==> virtualbox-iso:                             [--portcount <1-n>]
==> virtualbox-iso:                             [--hostiocache on|off]
==> virtualbox-iso:                             [--bootable on|off]
==> virtualbox-iso:                             [--rename <name>]
==> virtualbox-iso:                             [--remove]
==> virtualbox-iso: 
==> virtualbox-iso: VBoxManage: error: Unknown option: --sataportcount
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error creating disk controller: VBoxManage error: Oracle VM VirtualBox Command Line Management Interface Version 5.0.0
(C) 2005-2015 Oracle Corporation
All rights reserved.

Usage:

VBoxManage storagectl       <uuid|vmname>
                            --name <name>
                            [--add ide|sata|scsi|floppy|sas]
                            [--controller LSILogic|LSILogicSAS|BusLogic|
                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
                            [--portcount <1-n>]
                            [--hostiocache on|off]
                            [--bootable on|off]
                            [--rename <name>]
                            [--remove]

VBoxManage: error: Unknown option: --sataportcount

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error creating disk controller: VBoxManage error: Oracle VM VirtualBox Command Line Management Interface Version 5.0.0
(C) 2005-2015 Oracle Corporation
All rights reserved.

Usage:

VBoxManage storagectl       <uuid|vmname>
                            --name <name>
                            [--add ide|sata|scsi|floppy|sas]
                            [--controller LSILogic|LSILogicSAS|BusLogic|
                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
                            [--portcount <1-n>]
                            [--hostiocache on|off]
                            [--bootable on|off]
                            [--rename <name>]
                            [--remove]

VBoxManage: error: Unknown option: --sataportcount

==> Builds finished but no artifacts were created.
rasa commented 9 years ago

Try using Packer 0.8.2

AdrianMW commented 9 years ago

Thanks

rasa commented 9 years ago

Did that fix it?

AdrianMW commented 9 years ago

Thanks,

That fixed it.

The other issue I had was the installation got stuck on connecting to the virtual box via winrm.

I added a additional port forwarding rule in virtual box for 5985 to 5985 and that fixed it.

I was using make virtualbox/eval-win2012r2-standard.

Cheers Adrian