Change the boot disk to be first in boot order for ubuntu 23.04 desktop after deploy_vm #473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue:
The cdrom is the first boot disk in boot order when create VM with firmware efi and install guestOS with ubuntu 23.04 desktop iso.
So it will hit the following issue if we mount iso and then reboot VM:
2023-04-22 03:48:04,022 | TASK [3_vmlibrary_main][Check VMware Tools is running and collects guest IPv4 address successfully]
task path: /home/worker/workspace/Create_New_VMLibrary_Template/ansible-vsphere-gos-validation/common/vm_wait_guest_ip.yml:49
fatal: [localhost]: FAILED! => {
"assertion": "vm_guestinfo.instance.guest.toolsRunningStatus == "guestToolsRunning"",
"changed": false,
"evaluated_to": false,
"msg": [
"It's timed out for VMware Tools collecting guest IPv4 address in 300 seconds.",
"VMware Tools running status is 'guestToolsNotRunning'.",
"VM's IP address in guest info is ''.",
"VM's all IP addresses in guest info are '[]'."
]
}
error message:
It's timed out for VMware Tools collecting guest IPv4 address in 300 seconds.
VMware Tools running status is 'guestToolsNotRunning'.
VM's IP address in guest info is ''.
VM's all IP addresses in guest info are '[]'.
Resolution:
Change the boot disk to be first in boot order for ubuntu 23.04 desktop
Test result:
passed to reboot VM after mount ISO to CD/DVD. it won't hit the upper issue