How to set an IP address to vm #2927
Replies: 13 comments
-
Any comment or help on this? |
Beta Was this translation helpful? Give feedback.
-
See vm.create and vm.customize. Ryan Johnson |
Beta Was this translation helpful? Give feedback.
-
Duplicate of https://github.com/orgs/vmware/discussions/2930. Ryan Johnson |
Beta Was this translation helpful? Give feedback.
-
@tenthirtyam , thanks for reply. -net= Network [GOVC_NETWORK] |
Beta Was this translation helpful? Give feedback.
-
Use Ryan Johnson |
Beta Was this translation helpful? Give feedback.
-
I tried that as well. Getting NicSettingMismatch error. Any help on how to correct this?
|
Beta Was this translation helpful? Give feedback.
-
Does the template use e1000 or vmxnet3? |
Beta Was this translation helpful? Give feedback.
-
I just tried following..But don't see the IP assigned.
|
Beta Was this translation helpful? Give feedback.
-
Looks like a bug on vm.info output. Assigned IP gets reflected when I try to use vm.ip.
|
Beta Was this translation helpful? Give feedback.
-
Tried creating VM with net.adapter
|
Beta Was this translation helpful? Give feedback.
-
Depends on the template. For example, is it configured for cloud-init by default (eg Ubuntu 20.04 and later) or does it support guest customization (and have the necessary pre-reqs - like RHEL/derivative + Perl) Do you see it failing in the VM's tasks? |
Beta Was this translation helpful? Give feedback.
-
Task is not failing.
|
Beta Was this translation helpful? Give feedback.
-
Can you confirm that you see it running the Guest Customization under Monitor > Tasks and that it successfully performed the Reconfiguring... and is not passing the IP configuration? Can you confirm the guest OS and that running a guest customization the traditional method also does not fail on the same template? More information is needed for community assistance. (Note: I won't be back on this evening.) |
Beta Was this translation helpful? Give feedback.
-
Hello,
I created the datacenter, cluster, datastore and vm using below commands.
However, when I check the vm ip, it shows empty. How can I populate the same? What am I missing?
Also, govc metric.ls -dc=TestDC TestVM shows the list of available metrics.
Are these metrics getting auto-populated or we can populate a few/some of them for a given vm?
Beta Was this translation helpful? Give feedback.
All reactions