Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature] research new methods for getting VM IP address #178

Open
Tomorrow9 opened this issue Dec 2, 2021 · 3 comments
Open

[New Feature] research new methods for getting VM IP address #178

Tomorrow9 opened this issue Dec 2, 2021 · 3 comments
Assignees

Comments

@Tomorrow9
Copy link
Member

Tomorrow9 commented Dec 2, 2021

SUMMARY

Try to use community.vmware modules instead of tasks "delegate_to" ESXi host.
For example, copy task delegate_to ESXi host in below files:

linux/deploy_vm/amazonlinux/reconfigure_amazonlinux_vm.yml
linux/deploy_vm/photon/reconfigure_photon_vm.yml
linux/deploy_vm/ubuntu/reconfigure_ubuntu_iso_vm.yml
linux/deploy_vm/ubuntu/ubuntu_install_os.yml
linux/deploy_vm/ubuntu/reconfigure_ubuntu_ova_vm.yml
...
ENVIRONMENT / OS

All

@Tomorrow9 Tomorrow9 added the bug Something isn't working label Dec 2, 2021
@Tomorrow9 Tomorrow9 changed the title [Bug] change transfter file to ESXi host datastore using vsphere_copy module [New Feature] change transfter file to ESXi host datastore using vsphere_copy module Dec 2, 2021
@Tomorrow9 Tomorrow9 added new feature and removed bug Something isn't working labels Dec 2, 2021
@Tomorrow9
Copy link
Member Author

Tomorrow9 commented Jan 4, 2022

Transfer file from local to ESXi datastore:

./linux/deploy_vm/amazonlinux/reconfigure_amazonlinux_vm.yml:44:  delegate_to: "{{ esxi_hostname }}"
./linux/deploy_vm/photon/reconfigure_photon_vm.yml:31:  delegate_to: "{{ esxi_hostname }}"
./linux/deploy_vm/ubuntu/reconfigure_ubuntu_iso_vm.yml:55:      delegate_to: "{{ esxi_hostname }}"
./linux/deploy_vm/ubuntu/ubuntu_install_os.yml:17:      delegate_to: "{{ esxi_hostname }}"
./linux/deploy_vm/ubuntu/reconfigure_ubuntu_ova_vm.yml:29:  delegate_to: "{{ esxi_hostname }}"

date command can be used as usual:

./linux/stat_hosttime/stat_hosttime.yml:34:          delegate_to: "{{ esxi_hostname }}"

Get vmware.log file or search keywords in vmware.log file:

./windows/check_quiesce_snapshot/collect_vss_logs.yml:11:  delegate_to: "{{ esxi_hostname }}"
./windows/utils/win_empty_vmware_log.yml:12:  delegate_to: "{{ esxi_hostname }}"
./windows/utils/win_check_winbsod.yml:12:  delegate_to: "{{ esxi_hostname }}"
./windows/guest_customization/check_guest_reset_time.yml:17:      delegate_to: "{{ esxi_hostname }}"
./common/vm_search_vmware_log.yml:23:      delegate_to: "{{ esxi_hostname }}"
./common/vm_wait_gosc_completed.yml:24:  delegate_to: "{{ esxi_hostname }}"

Enable guest IP hack:

./common/vm_get_ip_esxcli.yml:53:      delegate_to: "{{ esxi_hostname }}"
./common/vm_get_world_id.yml:18:  delegate_to: "{{ esxi_hostname }}"
./common/esxi_enable_guest_ip_hack.yml:15:  delegate_to: "{{ esxi_hostname }}"

@Tomorrow9 Tomorrow9 changed the title [New Feature] change transfter file to ESXi host datastore using vsphere_copy module [New Feature] research new methods for getting VM IP address Jan 7, 2022
@Tomorrow9 Tomorrow9 added this to the v2.0 milestone Jan 7, 2022
@keirazhang
Copy link
Contributor

Now we only have below files need to delegate to ESXi hostname:

./common/esxi_enable_guest_ip_hack.yml:7:  delegate_to: "{{ esxi_hostname }}"
./common/esxi_enable_guest_ip_hack.yml:15:  delegate_to: "{{ esxi_hostname }}"
./common/vm_get_world_id.yml:18:  delegate_to: "{{ esxi_hostname }}"
./common/vm_get_ip_esxcli.yml:53:      delegate_to: "{{ esxi_hostname }}"
./common/vm_get_ip_esxcli.yml:87:      delegate_to: "{{ esxi_hostname }}"
./linux/stat_hosttime/stat_hosttime.yml:34:          delegate_to: "{{ esxi_hostname }}"
./windows/guest_customization/check_guest_reset_time.yml:17:      delegate_to: "{{ esxi_hostname }}"
./windows/utils/win_empty_vmware_log.yml:12:  delegate_to: "{{ esxi_hostname }}"

@Tomorrow9
Copy link
Member Author

Use serial port or check existing script.

@Tomorrow9 Tomorrow9 self-assigned this Feb 17, 2022
@Tomorrow9 Tomorrow9 removed this from the v2.0 milestone Apr 28, 2022
@Tomorrow9 Tomorrow9 added this to the v2.1 milestone Jun 6, 2022
@Tomorrow9 Tomorrow9 removed this from the v2.1 milestone Aug 30, 2022
@Tomorrow9 Tomorrow9 added this to the v3.0 milestone Oct 17, 2022
@keirazhang keirazhang removed this from the v3.0 milestone Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants