Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support disk type in VirtualBox builder #371

Closed
dpetzel opened this issue Aug 30, 2013 · 6 comments
Closed

Support disk type in VirtualBox builder #371

dpetzel opened this issue Aug 30, 2013 · 6 comments

Comments

@dpetzel
Copy link

dpetzel commented Aug 30, 2013

It appears the IDE controller is hard coded into the VirtualBox builder. Building a machine with a SATA (or other types for that matter), involves a series of non-intuitive vboxmanage commands. It would be nice to be able to specify some a disk type in the config.

Somewhat related... When constructing said series of vboxmanage commands, it would be nice if OutputDir was exposed as a template variable so you could easily put the different disk in the same location.

@tomdz
Copy link

tomdz commented Sep 3, 2013

+1, this would be nice. @dpetzel Did you manage to get Packer/VirtualBox to present a SATA controller as the primary (only) one to the VM at boot time ?

@dpetzel
Copy link
Author

dpetzel commented Sep 3, 2013

No I never got this working properly. I was able to add the SATA controllers, but it was not primary. So for me EL6 worked OK, however EL5 would hang post install reboot. I had to resort to noticing the hang (packer was waiting for sshd at this point), powering it off, deleting the IDE disk (leaving the controller for CDROM), and restarting.

Fairly gross, so I'm hoping there is magic that can be worked.

@tomdz
Copy link

tomdz commented Sep 3, 2013

Yeah, for now I have to use a tweaked kickstarter script that uses hda instead of sda.

@dpetzel
Copy link
Author

dpetzel commented Sep 11, 2013

It appears that this was taken care of in #391 and release in 0.3.7. I was able to sucessfully set "hard_drive_interface": "sata", and no more IDE HDD.

@dpetzel dpetzel closed this as completed Sep 11, 2013
@tomdz
Copy link

tomdz commented Sep 13, 2013

Awesome, seems to work like a charm.

@dorgan
Copy link

dorgan commented Jan 16, 2014

Using "hard_drive_interface": "sata" only seems to then mount the hard drive image on SATA and does not mount the ISO on SATA interface as well.

@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants