joefitzgerald / packer-windows

Windows Packer Templates
MIT License
1.63k stars 1.12k forks source link

Autounattended.xml issue with partition disk 0 #24

Closed lmayorga1980 closed 10 years ago

lmayorga1980 commented 10 years ago

I have an issue with Virtualbox only with the Autounattended.xml file.

https://gist.github.com/lmayorga1980/8462481

screen shot 2014-01-16 at 3 06 14 pm

I tried uninstalling and reinstalling VirtualBox with no results.

joefitzgerald commented 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?

joefitzgerald commented 10 years ago

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.

lmayorga1980 commented 10 years ago

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.

joefitzgerald commented 10 years ago

Did you update the version of Packer you're using?

joefitzgerald commented 10 years ago

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.

lmayorga1980 commented 10 years ago

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.

lmayorga1980 commented 10 years ago

I've tried the hard_drive_interface sata value without success.

"hard_drive_interface": "sata"

joefitzgerald commented 10 years ago

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.

lmayorga1980 commented 10 years ago

My fault here. Sorry to waste your time.

"disk_size": 61440, missing on my packer template.

joefitzgerald commented 10 years ago

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.

joefitzgerald commented 10 years ago

The CI builds have been updated to build with both VMware and VirtualBox builders, and the README updated accordingly.