Closed lmayorga1980 closed 10 years ago
I had to resolve an issue similar to this on VMware. I did so by explicitly setting the disk controller: https://github.com/joefitzgerald/packer-windows/blob/master/windows_2008_r2.json#L29 to a newer controller. You might want to do something similar for VirtualBox?
I think the defaults in Packer may have been modified to default to an earlier / more 'compatible' (supported by older OS versions) driver, but I haven't checked.
I am using VirtualBox 4.3.6 and this .xml file was working before with the same version but suddenly stopped working. It works normally on VmWare Fusion. Searching on google for VirtualBox issues related to this problem.
Did you update the version of Packer you're using?
I experienced the same issue on Fusion with Windows 2012 R2 if the lsilogic controller is used (it's the default: https://github.com/mitchellh/packer/blob/d7ab2ff896d9f58281f36e55ec3ea9a92d1c106c/builder/vmware/iso/step_create_vmx.go#L173). Instead, I override it with a newer controller: https://github.com/joefitzgerald/packer-windows/blob/master/windows_2012_r2.json#L29), which is why that's defaulted for all VMware builders now.
I've been using Packer 0.5.1 since it came out with no issues. I will rollback to the previous version and see what happens.
I've tried the hard_drive_interface sata value without success.
"hard_drive_interface": "sata"
I just downloaded:
And was able to do a packer build --only=virtualbox-iso windows_2008_r2.json using the files in master: https://github.com/joefitzgerald/packer-windows/blob/master/windows_2008_r2.json / https://github.com/joefitzgerald/packer-windows/blob/master/answer_files/2008_r2/Autounattend.xml. I did not receive that error.
Comparing the Autounattend.xml in master with your gist, there is no difference.
My fault here. Sorry to waste your time.
"disk_size": 61440,
missing on my packer template.
No worries, glad you got it solved :) I should really add CI builds for VirtualBox as well as Fusion so that I can point to them as a working configuration.
The CI builds have been updated to build with both VMware and VirtualBox builders, and the README updated accordingly.
I have an issue with Virtualbox only with the Autounattended.xml file.
https://gist.github.com/lmayorga1980/8462481
I tried uninstalling and reinstalling VirtualBox with no results.