# Can we create full rootfs client for virtual machine

**URL:** <https://hub.mender.io/t/can-we-create-full-rootfs-client-for-virtual-machine/1249>\
**Category:** General Discussions\
**Created:** [November 14, 2019, 12:06pm UTC](https://hub.mender.io/t/can-we-create-full-rootfs-client-for-virtual-machine/1249 "2019-11-14T12:06:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![test.test12p](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@test.test12p](https://hub.mender.io/u/test.test12p)\
**Post date:** [November 14, 2019, 12:06pm UTC](https://hub.mender.io/t/can-we-create-full-rootfs-client-for-virtual-machine/1249/1 "2019-11-14T12:06:07Z")

</div>

How can i create image to create virtual machine from mender rootfs image?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [November 14, 2019, 5:00pm UTC](https://hub.mender.io/t/can-we-create-full-rootfs-client-for-virtual-machine/1249/2 "2019-11-14T17:00:24Z")

</div>

Hi @test.test12p, welcome to Mender Hub.

I’m not completely clear on what you are asking. Where are you getting the Mender rootfs image, and for what platform is it built? We do support [QEMU with Yocto builds](https://hub.mender.io/t/qemu-the-fast-processor-emulator/420/2).

In theory builds for specific platforms may be usable on various emulators but that’s more a question of the emulator and board. Mender should happily run in this environment.

If you can describe your needs in a more details, hopefully I can guide you further.

Drew

---

<div class="post-metadata">

**Author:** ![test.test12p](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@test.test12p](https://hub.mender.io/u/test.test12p)\
**Post date:** [November 15, 2019, 7:55am UTC](https://hub.mender.io/t/can-we-create-full-rootfs-client-for-virtual-machine/1249/3 "2019-11-15T07:55:55Z")

</div>

Hey @drewmoseley  
Thanks for warm welcome.

I have created one image from Ubuntu operating system:  
dd if=/dev/sda of=golden-image-1.img bs=1M status=progress conv=fsync  
size is 31G golden-image-1.img

Now i’m just running mender-convert to .sdimg  
DEVICE\_TYPE=“beaglebone”

~/mender-convert/mender-convert from-raw-disk-image --raw-disk-image $RAW\_DISK\_IMAGE --mender-disk-image $MENDER\_DISK\_IMAGE --device-type $DEVICE\_TYPE --artifact-name $ARTIFACT\_NAME --bootloader-toolchain arm-linux-gnueabihf --server-url “[https://hosted.mender.io](https://hosted.mender.io)” --tenant-token $TENANT\_TOKEN --storage-total-size-mb 30720 \*\*\* Data partition size set to default value: 128MB \*\*\* 1/10 Shrinking raw disk image root filesystem… Warning: invalid/unsupported embedded raw disk image. Skipping resize… 2/10 Repartitioning raw disk image… Detected raw disk image with 3 partition(s). Calculating partitions’ sizes of the Mender image. /root/mender-convert/mender-convert-functions.sh: line 290: 62689247 8192 217088 \* 512 : syntax error in expression (error token is "8192 217088 \* 512 ")

I believe, i’m unable to create full rootfs .sdimg by mender-convert.  
Am i running anything wrong?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [November 15, 2019, 5:13pm UTC](https://hub.mender.io/t/can-we-create-full-rootfs-client-for-virtual-machine/1249/4 "2019-11-15T17:13:15Z")

</div>

I suggest you look into our [new version of mender-convert](https://hub.mender.io/t/new-iteration-of-the-mender-convert-tool/824). It’s still in development but considerably easier to expand than the previous version.

To clarify, we have not integrated mender-convert (either version) with Ubuntu on Beaglebone so there is likely work to do to enable that. We would love to have that as a contribution if you are so inclined.

Also, it may be easier to create the golden image from just the partition as it is likely going to be significantly smaller. And just to confirm, this golden image was created from an Ubuntu image _for_ t the Beaglebone Black, correct?

Drew

---

<div class="post-metadata">

**Author:** ![test.test12p](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@test.test12p](https://hub.mender.io/u/test.test12p)\
**Post date:** [November 15, 2019, 5:32pm UTC](https://hub.mender.io/t/can-we-create-full-rootfs-client-for-virtual-machine/1249/5 "2019-11-15T17:32:02Z")

</div>

Right

I created golden image from running Ubuntu machine.
