Unable to start former firecracker vm as kvm microvm instances

Hi,

after some trial and error i now figured it out how to start the former firecracker images with kvm.
I add the template to this post so others will not struggle as i had to.
I tried it with my unifi controller microvm and the mongodb microvm. Both former firecracker vms built from docker containers. When I had the correct settings the unifi controller template launches fine most of the times. In some cases it forgets to set the controller to sata during instationation and leaves it blank. In this cases the vm is unable to boot.
When I first started the mongodb container as microvm I got the error that the volume es not aligned.

Cannot get 'write' permission without 'resize': Image size is not a multiple of request alignment

I fixed this through manual resizing the volume via the webinterface from 2 to 3 gb.

TEMPLATE 22 INFORMATION
ID             : 22
NAME           : unifi_network_app
USER           : oneadmin
GROUP          : oneadmin
LOCK           : None
REGISTER TIME  : 11/12 13:12:11

PERMISSIONS
OWNER          : um-
GROUP          : ---
OTHER          : ---

TEMPLATE CONTENTS
CONTEXT=[
  FILES_DS="$FILE[IMAGE=\"init-wrapper\", IMAGE_UNAME=\"oneadmin\"]",
  HOME="/root",
  LANG="en_US.UTF-8",
  LANGUAGE="en_US.UTF-8",
  MEM_LIMIT="4096",
  MONGO_AUTHSOURCE="admin",
  MONGO_DBNAME="unifi",
  MONGO_HOST="192.168.0.104",
  MONGO_INITDB_ROOT_PASSWORD="Dietmar",
  MONGO_INITDB_ROOT_USERNAME="root",
  MONGO_PASS="Dietmar",
  MONGO_USER="root",
  NETWORK="YES",
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  PGID="1000",
  PUID="1000",
  SET_HOSTNAME="$NAME",
  SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",
  START_SCRIPT_BASE64="",
  TZ="Europe/Berlin" ]
CPU="1"
CPU_MODEL=[
  MODEL="host-passthrough" ]
DISK=[
  IMAGE="unifi-network-application666",
  IMAGE_UNAME="oneadmin" ]
DISK=[
  IMAGE="unifi-data01",
  IMAGE_UNAME="oneadmin" ]
FEATURES=[
  VIRTIO_BLK_QUEUES="auto",
  VIRTIO_SCSI_QUEUES="auto" ]
GRAPHICS=[
  LISTEN="0.0.0.0",
  TYPE="VNC" ]
HOT_RESIZE=[
  CPU_HOT_ADD_ENABLED="NO",
  MEMORY_HOT_ADD_ENABLED="NO" ]
HYPERVISOR="kvm"
LOGO="images/logos/ubuntu.png"
MEMORY="4096"
MEMORY_RESIZE_MODE="BALLOONING"
MEMORY_UNIT_COST="MB"
NIC=[
  NETWORK="vnet-ext",
  NETWORK_UNAME="oneadmin",
  SECURITY_GROUPS="0" ]
OS=[
  ARCH="x86_64",
  BOOT="disk0",
  FIRMWARE="BIOS",
  KERNEL_CMD="console=tty0 console=ttyS0 reboot=k panic=1 root=/dev/sda",
  KERNEL_DS="$FILE[IMAGE_ID=285]",
  MACHINE="ubuntu-q35" ]
SCHED_DS_REQUIREMENTS="ID=\"101\""
SCHED_REQUIREMENTS="ID=\"1\""
TM_MAD_SYSTEM="ssh"
VCPU="1"
2 Likes