Hello!
I have attempted using the mender ecosystem in different setups (raspberry & qemu) and these have worked, however, running mender-convert
on an Ubuntu Server image fails to boot.
What I have done is:
- Install an Ubuntu Server image on a x86_64 gateway (Ubuntu 20.04)
- Clone the image (following the “golden image” principle), using
dd
to an external drive (the image size is around 100GB) - Run
sgdisk -e /iso/ubuntu-server-clone-from-gateway.img
(as listed in thex86-64-hdd-config
) - Run
mender-convert
with the following command:
sudo MENDER_ARTIFACT_NAME=base-release-1 ./docker-mender-convert --disk-image input/ubuntu-server-clone-from-gateway.img --config configs/generic_x86-64_hdd_gateway_config --overlay rootfs_overlay_demo/
Variables set in the config:
MENDER_STORAGE_TOTAL_SIZE_MB="102400"
MENDER_BOOT_PART_SIZE_MB="256"
MENDER_DATA_PART_SIZE_MB="256"
IMAGE_ROOTFS_SIZE="-1"
- Putting the finished
mender-convert
image onto the gateway usingsudo dd if=/usb/mender-image.img of=/dev/sda bs=1M status=progress
- Run
sgdisk -e /dev/sda
After finishing, rebooting the gateway.
On boot-up, the device drops back to the grub menu:
I have come across this topic: Can't create Mender images for Ubuntu Server x64 - #16 by krystof which listed issues when using mender
with Ubuntu Server, however, I haven’t managed to get it working on my end. (The grub menu fallback, is the same as in the linked forum topic)
Any help would be appreciated