VMWare ESXi error: Failed to deploy OVF package: Invalid configuration for device X

I know this has been addressed several times, but the solution usually involves using a tool other than what I’m using: ovftool. I have a customer that’s getting this error while trying to import an OVA file that we’ve put together, and I’m trying to figure out how to solve this issue just using non-windows tools (VMware Standalone Converter, etc).

According to https://kb.vmware.com/s/article/2152046, the issue is that ESXi 6.0 doesn’t like -1 values and the workaround is to edit the OVF descriptor to remove vmw:value="-1". However, I don’t have that in my VMX file. Here’s a copy of my VMX file:

.encoding = "UTF-8"
displayname = "RandomVM"
annotation = "Kali Rolling (2020.1) x64|0A2020-01-28|0A|0A- - - - - - - - - - - - - - - - - -|0A|0AUsername: kali|0APassword: kali|0A(US keyboard layout)|0A|0A- - - - - - - - - - - - - - - - - -|0A|0A* Kali Homepage:|0Ahttps://www.kali.org/|0A|0A* VM Homepage:|0Ahttps://www.offensive-security.com/kali-linux-vmware-virtualbox-image-download/|0A|0A* Documentation:|0Ahttps://www.kali.org/docs/|0A|0A* Forum/Support:|0Ahttps://forums.kali.org/|0A|0A* Kali Tools:|0Ahttps://tools.kali.org/|0A|0A* Bug Tracker:|0Ahttps://bugs.kali.org/|0A|0A* IRC Channel:|0Airc://irc.freenode.net/#Kali-Linux|0A|0A* Offsec IRC Channel:|0Airc://irc.freenode.net/#Offsec|0A|0A* Release Information:|0Ahttps://www.kali.org/kali-linux-releases/"
guestos = "otherlinux-64"
virtualhw.version = "15"
config.version = "8"
numvcpus = "4"
cpuid.coresPerSocket = "1"
memsize = "4068"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
floppy0.present = "FALSE"
ide1:0.clientDevice = "FALSE"
ide1:0.present = "TRUE"
ide1:0.deviceType = "atapi-cdrom"
ide1:0.autodetect = "TRUE"
ide1:0.startConnected = "FALSE"
ide1:0.allowguestconnectioncontrol = "false"
svga.vramSize = "268435456"
usb.present = "TRUE"
ehci.present = "TRUE"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.connectionType = "nat"
ethernet0.startConnected = "TRUE"
ethernet0.addressType = "generated"
ethernet0.pciSlotNumber = "33"
ethernet0.wakeonpcktrcv = "true"
ethernet0.allowguestconnectioncontrol = "true"
scsi0:0.present = "TRUE"
scsi0:0.deviceType = "disk"
scsi0:0.fileName = "RandomVM-disk1.vmdk"
scsi0:0.allowguestconnectioncontrol = "false"
scsi0:0.mode = "persistent"
scsi0.virtualDev = "lsilogic"
scsi0.present = "TRUE"
vmci0.unrestricted = "false"
vcpu.hotadd = "true"
tools.syncTime = "true"
toolscripts.afterpoweron = "true"
toolscripts.afterresume = "true"
toolscripts.beforepoweroff = "true"
toolscripts.beforesuspend = "true"
powerType.powerOff = "soft"
powerType.reset = "soft"
powerType.suspend = "soft"
nvram = "RandomVM-file1.nvram"
virtualHW.productCompatibility = "hosted"
extendedConfigFile = "RandomVM.vmxf"
uuid.bios = "56 4d 3a cb 08 86 6c 65-30 c2 23 67 81 2a 24 03"
uuid.location = "56 4d 3a cb 08 86 6c 65-30 c2 23 67 81 2a 24 03"
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
usb.pciSlotNumber = "32"
ehci.pciSlotNumber = "34"
vmci0.pciSlotNumber = "35"
vmotion.checkpointFBSize = "4194304"
vmotion.checkpointSVGAPrimarySize = "268435456"
ethernet0.generatedAddress = "00:0c:29:2a:24:03"
ethernet0.generatedAddressOffset = "0"
monitor.phys_bits_used = "43"
cleanShutdown = "TRUE"
softPowerOff = "TRUE"
usb:1.speed = "2"
usb:1.present = "TRUE"
usb:1.deviceType = "hub"
usb:1.port = "1"
usb:1.parent = "-1"
svga.guestBackedPrimaryAware = "TRUE"
usb:0.present = "TRUE"
usb:0.deviceType = "hid"
usb:0.port = "0"
usb:0.parent = "-1"
checkpoint.vmState = ""
guestOS.detailed.data = "bitness='64' distroName='Kali' distroVersion='2020.2' familyName='Linux' kernelVersion='5.5.0-kali2-amd64' prettyName='Kali GNU/Linux Rolling'"

The only values in here that are -1 are the following:

usb:1.parent = "-1"
usb:0.parent = "-1"

Given this, I don’t really know what “device 2” is from this, and I don’t know if simply removing those values would cause any additional errors. Unfortunately I don’t have an ESXi environment to try this on, but I also can’t keep going “can you try it again?” over and over.

My primary OS is macOS Catalina and so this is why I’m trying to use the ovftool in hopes that it’ll solve this problem. Here’s how I’m currently exporting the VM:

/Applications/VMware Fusion.app/Contents/Library/VMware OVF Tool/ovftool --maxVirtualHardwareVersion=07 --shaAlgorithm=SHA1 RandomVM.vmx RandomVM.ova

Any help in this area would be greatly appreciated.

Go to Source
Author: LewlSauce