# Is there a qemu-like container running ubuntu?

**URL:** <https://hub.mender.io/t/is-there-a-qemu-like-container-running-ubuntu/3929>\
**Category:** General Discussions\
**Created:** [July 27, 2021, 3:24pm UTC](https://hub.mender.io/t/is-there-a-qemu-like-container-running-ubuntu/3929 "2021-07-27T15:24:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uishon](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/uishon/32/1326_2.png) [@uishon](https://hub.mender.io/u/uishon)\
**Post date:** [July 27, 2021, 3:24pm UTC](https://hub.mender.io/t/is-there-a-qemu-like-container-running-ubuntu/3929/1 "2021-07-27T15:24:53Z")

</div>

I’m trying to set up one but running into issues running `mender-connect` which relies on dbus.  
Is there - maybe - some kind of out-of-the-box solution running ubuntu (and not Yocto)?

---

<div class="post-metadata">

**Author:** ![lramirez](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lramirez/32/1195_2.png) [@lramirez](https://hub.mender.io/u/lramirez)\
**Post date:** [July 27, 2021, 3:34pm UTC](https://hub.mender.io/t/is-there-a-qemu-like-container-running-ubuntu/3929/2 "2021-07-27T15:34:18Z")

</div>

Hi @uishon,

Did you try already these steps? [QEMU, the FAST! processor emulator (Ubuntu)](https://hub.mender.io/t/qemu-the-fast-processor-emulator-ubuntu/1550)  
Is there anything in particular that is not working after following the tutorial?

Regards,  
Luis

---

<div class="post-metadata">

**Author:** ![uishon](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/uishon/32/1326_2.png) [@uishon](https://hub.mender.io/u/uishon)\
**Post date:** [July 27, 2021, 3:45pm UTC](https://hub.mender.io/t/is-there-a-qemu-like-container-running-ubuntu/3929/3 "2021-07-27T15:45:14Z")

</div>

Tried that and it is working for me on a clean ubuntu machine (except for one little issue which I’ve fixed - mender-inventory-geo script is missing an [ipinfo.io](http://ipinfo.io) token so it always fails). BUT, I’m trying to set up a container as a virtual device. When running inside a docker, mender-connect is failing with errors connecting to d-bus:

```auto
root@51bc6aa947bf:/# mender-connect daemon
INFO[2021-07-27T14:47:11Z] Loaded configuration file: /etc/mender/mender-connect.conf 
WARN[2021-07-27T14:47:11Z] No server URL(s) specified in mender configuration. 
WARN[2021-07-27T14:47:11Z] ShellArguments is empty, defaulting to [--login] 
WARN[2021-07-27T14:47:11Z] Server entry 1 has no associated server URL. 
ERRO[2021-07-27T14:47:11Z] mender-shall dbus failed to connect, error: Could not connect: No such file or directory 
ERRO[2021-07-27T14:47:11Z] Could not connect: No such file or directory 

```

I assume it’s because dbus is not running inside the container which makes the setup more complex…

Here is my Dockerfile:

```auto
FROM ubuntu
COPY get-mender.sh supervisord.ini ./
RUN sh get-mender.sh

RUN apt-get update && apt-get install -y wget iproute2 supervisor

ARG DEVICE_TYPE="ubuntu"
ARG TENANT_TOKEN="XXXXXXX"
RUN mender --no-syslog setup \
            --device-type $DEVICE_TYPE \
            --hosted-mender \
            --tenant-token $TENANT_TOKEN \
            --retry-poll 30 \
            --update-poll 5 \
            --inventory-poll 5

RUN sed -i 's%https://ipinfo.io%https://ipinfo.io\\?token=XXXXXXX%' /usr/share/mender/inventory/mender-inventory-geo

CMD supervisord -n -l - -c supervisord.ini

```
