Hi,
I'm having some trouble setting an IP address and sub netmask using OVF Tool.
When in run the an OVF probe it returns the following
I then use this command to deploy my OVF file
C:\Program Files\VMware\VMware OVF Tool>ovftool -dm=thin -ds=datastore1 -n=VM_OVF10.ova --net:"Network 1=VM Network" --prop:"ip0=192.168.1.140" --prop:"netmask0=255.255.255.0" "VM_OVF10.ova" vi://root@192.168.1.139
The OVF file deploys but with warnings at the end saying the property keys don't exists
Am I using the command wrong? Any help would be much appreciated.
Thanks.
Hi,
You must specify more information when using --prop.
--prop:{ClassID}.{Key}.{InstanceID}={Value}
Example:
--prop:vami.ip0.Enterprise30101="ip"
--prop:vami.netmask0.Enterprise30101="netmask"
Regards,
Martin
Thanks Martin,
I'm not getting the errors anymore but it doesn't seem to have set the parameters, it still looks like it is using DHCP. I tried adding --ipAllocationPolicy=fixedPolicy to the command.
Also when I start the VM it tells me there is no network set up and to login in and go to "/opt/VMware/share/vami/vami_config_net" to set the network up but when I do that, I do not have the permissions to change the settings.
Could this also be the case when I am setting the properties using OVF Tool, that I don't have the right permissions to set them?
What is the full command you're running?
Also, what OVA/OVF is this?
This is the command
ovftool -dm=thin -ds=datastore1 -n=VM_OVF10.ova --net:"Network 1=VM Network" --ipAllocationPolicy=fixedPolicy --prop:vami.ip0.Enterprise30101="192.168.1.140" --prop:vami.netmask0.Enterprise30101="255.255.255.0" "VM_OVF10.ova" vi://root@192.168.1.139
and it is CentOS 6.9
It doesn't set IP/Netmask in the VM using that command? I don't think you have to specify ipAllocationPolicy.
I have same problem and it doesn't apply to the VM.
If the above is not possible, Is there a way I can login into console of VM?
Regards
Jayant
I know this is old, but adding in case it helps someone. Have you tried using only ClassId and Key, like --prop:[ClassId].[Key]=[data], that's how I've done it before.
for IP, netmask, & gateway, it should be like this:
--prop:vami.gateway="192.168.0.1" --prop:vami.netmask0="255.255.255.0" --prop:vami.ip01="192.168.0.100"