Instance deploy failed with Ubuntu snapshot or Ubuntu image where the kernel version is previously Ubuntu 20.04.

Problem

Deploying a snapshot failed with error: "Failed to start the guest" if the snapshot is captured from an instance that is deployed with Ubuntu 20.04 image and upgraded kernel version before capturing.

Or deploying Ubuntu 22.04 image failed.

Error messages:

Build of instance 7b3e79b5-076d-4ed4-a02a-0ea447585414 was re-scheduled: zVM Cloud Connector request failed: 
{
'overallRC': 300, 'modID': 10, 'rc': 300, 'rs': 16, 
 'errmsg': "Failed to start the guest: 'test0015', compute node is not able to connect to the virtual machine in 300 seconds",
 'output': ''
}

Warning messages in the "Console Output" window:

[ 13.947770] zvmguestconfigure[755]: Warning: The unit file, source configuration file or drop-ins of netplan-ovs-cleanup.service
changed on disk. Run 'systemctl daemon-reload' to reload units.

Reason

The netplan service in Ubuntu with the previous version 20.04 needs a dependent package "openvswitch-switch".

Resolution

Re-create the snapshot with the following steps to fix this error:

  1. Use an ssh login instance that is used as a snapshot source.

  2. Run sudo apt install openvswitch-switch to install the dependent package "openvswitch-switch" on the source instance.

  3. Recapture snapshot from source instance.

  4. Retry to deploy an instance with snapshot created in step 3.