Error when convert container image

So I need 3 machine right?

  • 1 to create golden image
  • 1 to install mender-convert
  • 1 is the target machine

But I have a few question:
I have 2 .mender files which one I can use to upload to hosted.mender.io?

1 is artifact_debian9_nginx_01-x86_64-mender.mender created with

$ mender-artifact write rootfs-image
-t genericx86_64
-n debian9_nginx_01
-f debian9_nginx_01-x86_64-mender.ext4
-o artifact_debian9_nginx_01-x86_64-mender.mender

1 is debian9_nginx_01-x86_64-mender.mender created with

$ MENDER_ARTIFACT_NAME=debian9_nginx_release_01 ./docker-mender-convert
–disk-image input/debian9_nginx_01.img
–config configs/generic_x86-64_hdd_config
–overlay rootfs_overlay_demo/

After I use mender-convert, there is only 4 files, there is no .sdimg file, but I only need the debian9_nginx_01-x86_64-mender.ext4 to flash the target machine and I’m good to go right?

image

But I’m using Debian, in Debian it doesn’t have live system like Ubuntu (like this INTEL NUC x86-64 Ubuntu 18.04), can I copy debian9_nginx_01-x86_64-mender.ext4 to a USB Flash Drive, plug it in the target machine and flash it from there?

And after I’ve flashed the targer machine, I’ll have a Device connect to hosted.mender.io right?

And I can now use 1 of the 2 .mender file to create a deployment from mender right?