Code: Select all
vbox = virtualbox.VirtualBox()
vm = vbox.find_machine(VM_NAME)
appliance = vbox.create_appliance()
sys_description = vm.export_to(appliance, "name")
appliance.write("ovf-1.0", [], PATH)
Is is possible to give the Host-Only adapter a name (or make it that it includes the default name) when exporting a VM to OVA using the VirtualBox API? If not, It seems to me like a VirtualBox API bug. How can I report this issue?
For reference, I am running this code in Debian with VirtualBox 7.0.20 and this code is part of the following script: https://github.com/mandiant/flare-vm/bl ... ots.py#L72. I would be interested in any solution or idea that allows me to export the VM to OVA in a script with a Host-Only adapter with name, so that importing the OVA does not requires any extra steps. I am using Python, but a solution in other language would also be appreciated.