I set information in post_manage, like
"vboxmanage_post": [
["modifyvm", "{{.Name}}", "--vrde", "off"],
["modifyvm", "{{.Name}}", "--nic1", "nat"],
...
["modifyvm", "{{.Name}}", "--cableconnected2", "on"]
But they are lost in translation. I have to re-set them on the command line, after having imported the VM:
VBoxManage modifyvm $VM_NAME --vrde off
VBoxManage modifyvm $VM_NAME --nic1 nat
...
VBoxManage modifyvm $VM_NAME --cableconnected2 on
I attached the ovf as produced by Packer via VirtualBox export and the logs.
Below is the diff between the machine imported before and after the modifyVM commands (via the shell)
30c30
< <RemoteDisplay enabled="true">
---
> <RemoteDisplay>
40c40
< <Adapter slot="0" enabled="true" MACAddress="08002775709D" cable="false" promiscuousModePolicy="AllowAll" type="virtio">
---
> <Adapter slot="0" enabled="true" MACAddress="08002775709D" promiscuousModePolicy="AllowAll" type="virtio">
43c43
< <Adapter slot="1" enabled="true" MACAddress="080027867BF6" cable="false" promiscuousModePolicy="AllowAll" type="virtio">
---
> <Adapter slot="1" enabled="true" MACAddress="080027867BF6" promiscuousModePolicy="AllowAll" type="virtio">
Not sure if it is a VirtualBox or a Packer issue. I will try to play with import/export to know more.
In the mean time maybe someone already had the issue ??? I did not find much on Google.
Using:
- Packer 0.10.1
- VirtualBox 5.1.2
- Fedora 23