Firecracker MicroVM - "PROLOG_FAILURE"

I’m trying to deploy a MicroVM but it keeps failing, and I don’t know why =[

LOG

Wed Feb 8 05:32:41 2023 [Z0][VM][I]: New state is ACTIVE
Wed Feb 8 05:32:41 2023 [Z0][VM][I]: New LCM state is PROLOG
Wed Feb 8 05:32:56 2023 [Z0][TrM][I]: Command execution failed (exit code: 1): /var/lib/one/remotes/tm/shared/clone on08x86:/var/lib/one//datastores/106/97d9861523036ca9bd055370a3bfe406 on07x86:/var/lib/one//datastores/104/37/kernel 37 106
Wed Feb 8 05:32:56 2023 [Z0][TrM][I]: clone: Cloning /var/lib/one/datastores/106/97d9861523036ca9bd055370a3bfe406 in on07x86:/var/lib/one//datastores/104/37/kernel
Wed Feb 8 05:32:56 2023 [Z0][TrM][E]: clone: Command " cp /var/lib/one/datastores/106/97d9861523036ca9bd055370a3bfe406 /var/lib/one/datastores/104/37/kernel
Wed Feb 8 05:32:56 2023 [Z0][TrM][I]: " failed: cp: cannot stat '/var/lib/one/datastores/106/97d9861523036ca9bd055370a3bfe406': No such file or directory
Wed Feb 8 05:32:56 2023 [Z0][TrM][I]: Error copying on08x86:/var/lib/one//datastores/106/97d9861523036ca9bd055370a3bfe406 to on07x86:/var/lib/one//datastores/104/37/kernel
Wed Feb 8 05:32:56 2023 [Z0][TrM][E]: Error executing image transfer script: INFO: clone: Cloning /var/lib/one/datastores/106/97d9861523036ca9bd055370a3bfe406 in on07x86:/var/lib/one//datastores/104/37/kernel ERROR: clone: Command " cp /var/lib/one/datastores/106/97d9861523036ca9bd055370a3bfe406 /var/lib/one/datastores/104/37/kernel " failed: cp: cannot stat '/var/lib/one/datastores/106/97d9861523036ca9bd055370a3bfe406': No such file or directory Error copying on08x86:/var/lib/one//datastores/106/97d9861523036ca9bd055370a3bfe406 to on07x86:/var/lib/one//datastores/104/37/kernel
Wed Feb 8 05:32:56 2023 [Z0][VM][I]: New LCM state is PROLOG_FAILURE

Template:

CONTEXT = [
  NETWORK = "YES",
  SSH_PUBLIC_KEY = "$USER[SSH_PUBLIC_KEY]" ]
CPU = "1"
DISK = [
  IMAGE = "Alpine Linux 3.17",
  IMAGE_UNAME = "oneadmin" ]
GRAPHICS = [
  LISTEN = "0.0.0.0",
  TYPE = "VNC" ]
HOT_RESIZE = [
  CPU_HOT_ADD_ENABLED = "NO",
  MEMORY_HOT_ADD_ENABLED = "YES" ]
HYPERVISOR = "firecracker"
MEMORY = "128"
MEMORY_MAX = "256"
MEMORY_RESIZE_MODE = "BALLOONING"
MEMORY_UNIT_COST = "MB"
NIC = [
  NETWORK = "lab-net",
  NETWORK_UNAME = "oneadmin",
  SECURITY_GROUPS = "0" ]
OS = [
  BOOT = "disk0",
  KERNEL_DS = "$FILE[IMAGE_ID=25]" ]
SCHED_REQUIREMENTS = "ID=\"12\""
VCPU = "1"

What am I doing wrong?


Versions of the related components and OS (frontend, hypervisors, VMs):
Ubuntu Server 22.04. Opennebula 6.6. Firecracker node.

Looks like the kernel image is having issues while being transferred from the IMAGE datastore to the SYSTEM datastore. Re-read/Re-check this section and also the image contents.

1 Like

Thanks!!! I forgot to create the KERNEL_DS! :sweat_smile:

Edit:

Now I have a new problem, the LCM STATE is “RUNNING”, but the vnc access gives me a black screen. Is it normal behavior for a MicroVM? After a few minutes it shows “CLIENT_ERROR”.