redhat-imaging / imagefactory

imagefactory builds images for a variety of operating system/cloud combinations.
http:/imgfac.org
Apache License 2.0
153 stars 82 forks source link

box.ovf not read properly by VirtualBox #393

Open marcindulak opened 7 years ago

marcindulak commented 7 years ago

https://atlas.hashicorp.com/centos/boxes/7 is not read properly by VirtualBox, as seen by 'IDE Controller' and other settings defined in box.ovf missing when loading into VirtualBox. Importing https://atlas.hashicorp.com/puppetlabs/boxes/centos-7.2-64-puppet works properly.

Affected systems

OS X 10.11.6 VirtualBox 5.1.10 r112026 (Qt5.6.2)

Ubuntu 14.04 VirtualBox 5.1.10r112026, 5.1.12r112440

The issue has been discussed at https://lists.centos.org/pipermail/centos-devel/2016-December/015433.html and https://github.com/mitchellh/vagrant/issues/8105

How to reproduce

$ xmllint --format ~/.vagrant.d/boxes/centos-VAGRANTSLASH-7/1611.01/virtualbox/box.ovf | grep -E 'Order|(StorageController )'
      <ns0:Order device="HardDisk" position="1"/>
      <ns0:Order device="DVD" position="2"/>
      <ns0:Order device="None" position="3"/>
      <ns0:Order device="None" position="4"/>
    <ns0:StorageController Bootable="true" PortCount="2" name="IDE Controller" type="PIIX4" useHostIOCache="true">

$ vboxmanage import ~/.vagrant.d/boxes/centos-VAGRANTSLASH-7/1611.01/virtualbox/box.ovf
$ vboxmanage showvminfo --machinereadable centos-7-1-1.x86_64 | grep -E 'storagecontrollername0|(boot.=)'
boot1="floppy"
boot2="dvd"
boot3="disk"
boot4="none"
storagecontrollername0="IDE"

$ xmllint --format ~/.vagrant.d/boxes/puppetlabs-VAGRANTSLASH-centos-7.2-64-puppet/1.0.1/virtualbox/box.ovf | grep -E 'Order|(StorageController )'
      <Order position="1" device="HardDisk"/>
      <Order position="2" device="DVD"/>
      <Order position="3" device="None"/>
      <Order position="4" device="None"/>
    <StorageController name="IDE Controller" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
$ vboxmanage import ~/.vagrant.d/boxes/puppetlabs-VAGRANTSLASH-centos-7.2-64-puppet/1.0.1/virtualbox/box.ovf
$ vboxmanage showvminfo --machinereadable packer-centos-7.2-x86_64-virtualbox-vagrant-puppet-1457544893 | grep -E 'storagecontrollername0|(boot.=)'
boot1="disk"
boot2="dvd"
boot3="none"
boot4="none"
storagecontrollername0="IDE Controller"
marcindulak commented 7 years ago

ping

marcindulak commented 7 years ago

Reported also at https://www.virtualbox.org/ticket/16387