Deploy virtual machine failed with compute node is not able to connect to the virtual machine error

Problem

Create virtual machine can fail at the last step of starting the virtual machine with the following error message:

Deploy of virtual machine rhel84-0001 on host computeh failed with exception: Build of instance 39b174fb-c89d-4f35-bd8f-f0c5823c7af8 was re-scheduled: zVM Cloud Connector request failed: {'overallRC': 300, 'modID': 10, 'rc': 300, 'rs': 16, 'errmsg': "Failed to start the guest: 'TEST000E', compute node is not able to connect to the virtual machine in 300 seconds", 'output': ''}

In which you are able to find the reason: compute node is not able to connect to the virtual machine in 300 seconds.

Explanation

This problem might be caused by one of the following reasons:

  • The compute node was not authorized to connect to the virtual machine via the IUCV channel

  • Failed to boot the operating system of the virtual machine

Resolution

  1. Refer to working with vm to check the boot status from the virtual machine's console output.

  2. If the virtual machine was booted correctly, refer to IUCV to make sure the compute node has IUCV ANY statement in its user directory.

  3. If the virtual machine boot fails, analyze the boot log and resolve the problem case by case. You can check the /var/log/nova/consolelog/<uuid> on the deployed compute node while the uuid that is the UUID of the deployed machine or find the most recent timestamp of the console log.