# Issue with starting QEMU after conversion with mender-convert

**URL:** <https://hub.mender.io/t/issue-with-starting-qemu-after-conversion-with-mender-convert/1819>\
**Category:** General Discussions\
**Created:** [April 17, 2020, 7:10am UTC](https://hub.mender.io/t/issue-with-starting-qemu-after-conversion-with-mender-convert/1819 "2020-04-17T07:10:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avi992](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@avi992](https://hub.mender.io/u/avi992)\
**Post date:** [April 17, 2020, 7:10am UTC](https://hub.mender.io/t/issue-with-starting-qemu-after-conversion-with-mender-convert/1819/1 "2020-04-17T07:10:07Z")

</div>

Hi @mirzak  
i am following your tutorial for update i am doing same thing what ever u have done in this tutorial.i am following step by step in my ubuntu 18.04 system and i am getting  
exactly the same output but when i an trying to start QEMU Emulator i am getting issue i have uploaded the screen shot of the issue can you please suggest me any solution for this

 ![Screenshot from 2020-04-17 12-48-10](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/8201a4af019aa8aedeed2112ebb505b4c8ec6851.png)

And if i am changing the path of OVMF\_CODE  
.FD I am getting this

 ![Screenshot from 2020-04-17 12-43-32](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/94fd350c017cb130b4b5a67f317927242ce8f233.png)  
Thanks  
Avi

---

<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:** [April 17, 2020, 5:14pm UTC](https://hub.mender.io/t/issue-with-starting-qemu-after-conversion-with-mender-convert/1819/2 "2020-04-17T17:14:59Z")

</div>

Hi Avi,

I think the issue is that QEMU is trying to launch an X application but doesn’t have a DISPLAY environment variable. If the shell running QEMU is on the same system as your primary Ubuntu GUI, running:

> export DISPLAY=:0

should fix this.

---

<div class="post-metadata">

**Author:** ![avi992](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@avi992](https://hub.mender.io/u/avi992)\
**Post date:** [April 20, 2020, 5:26am UTC](https://hub.mender.io/t/issue-with-starting-qemu-after-conversion-with-mender-convert/1819/3 "2020-04-20T05:26:14Z")

</div>

Hi @drewmoseley  
after using export DISPLAY=:0 also the result is same no changes i am attaching the screen shot

 ![Screenshot from 2020-04-20 10-43-54](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/0319c2d83e5ad481ae509d89b04e9798e75d38c4.png)

---

<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:** [April 20, 2020, 1:31pm UTC](https://hub.mender.io/t/issue-with-starting-qemu-after-conversion-with-mender-convert/1819/4 "2020-04-20T13:31:33Z")

</div>

Hmm. It may be because you are running as root but your GUI is running as a different user. You should be able to run mender-convert and the QEMU stuff without being root. I would try that before troubleshooting any further.
