hashicorp / packer-plugin-virtualbox

Packer plugin for VritualBox Builder
https://www.packer.io/docs/builders/virtualbox
Mozilla Public License 2.0
22 stars 35 forks source link

Exported VM is missing primary disk and SATA Controller #15

Open ghost opened 3 years ago

ghost commented 3 years ago

This issue was originally opened by @jchodakowski as hashicorp/packer#4637. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Using virtualbox-iso builder, I am building a two disk VM with boot and main system on /dev/sda1 and /dev/sda2 and then /dev/sdb1 as a large LVM volume with various logical volumes mounted at various places on the file system. The disk is added using vboxmanage commands, and the build works as expected. In VirtualBox, you can inspect the VM and it has all the parts as described in the json template. Once the export happens however, the SATA controller is missing, as is the first of the two disks (sda). The second disk (sdb) is exported with the machine which, once re-imported has only an IDE disk controller, one disk, and won't boot (missing the system).