# Hyper-V VM (NUC image) starting up but not downloading application

**URL:** <https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434>\
**Category:** balenaOS\
**Created:** [August 12, 2020, 8:28pm UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434 "2020-08-12T20:28:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![drcnyc](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@drcnyc](https://forums.balena.io/u/drcnyc)\
**Post date:** [August 12, 2020, 8:28pm UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/1 "2020-08-12T20:28:33Z")

</div>

I’ve created a virtual machine in Windows 10 using Hyper-V, and converted the Balena .img file (NUC) to a Hyper-V .vhdx file using `qemu-img`. The VM starts up fine, and I get to the Balena logo screen, but that’s where it stops each time. The device registered with Balena Cloud, but it shows as being “Online (VPN only)” - but never actually downloads the app, nor can I connect to its terminal through the Balena Cloud terminal. I am able to access the device by directly logging in to its terminal (alt-F2) and can confirm it has internet access. Has anyone successfully got this working - and if so could they share how it was done?

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [August 12, 2020, 8:43pm UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/4 "2020-08-12T20:43:41Z")

</div>

Hi David,  
Reading up about Hyper-V it might not be the best choice for Linux systems generally. We have instructions on how to run balena on VirtualBox here [https://www.balena.io/blog/no-hardware-use-virtualbox/](https://www.balena.io/blog/no-hardware-use-virtualbox/) .  
If your device shows up in the dashboard it is likely working. The balena logo screen is what you see if you are using a production version.  
You can try to establish a ssh session to your device by opening a web console from the dashboard or by using the balena-cli ( [https://github.com/balena-io/balena-cli](https://github.com/balena-io/balena-cli) ).  
You can establish a ssh session directly after adding your ssh-key to config.json or if you use a development image of balena.  
Regards Thomas

---

<div class="post-metadata">

**Author:** ![floion](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@floion](https://forums.balena.io/u/floion)\
**Post date:** [August 12, 2020, 8:44pm UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/5 "2020-08-12T20:44:28Z")

</div>

Hi. Just to add to what Thomas said, when you are able to login, can you also check the status of openvpn using the `journalctl --no-pager -u openvpn` command?

---

<div class="post-metadata">

**Author:** ![drcnyc](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@drcnyc](https://forums.balena.io/u/drcnyc)\
**Post date:** [August 12, 2020, 8:49pm UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/6 "2020-08-12T20:49:12Z")

</div>

I am actually able to connect to the terminal on the local Hyper-V machine by pressing alt-F2 and logging in as root (no password since it is in dev mode). See screenshot below of the output of the `journalctl --no-pager -u openvpn` command. It looks like there is an error relating to a route add, towards the bottom, not sure if this is the issue?

Unfortunately I am stuck with Hyper-V because I’m using WSL2 for my local Ubuntu dev environment, and WSL2 requires Hyper-V, which conflicts with VirtualBox.

 ![image](https://global.discourse-cdn.com/balena/original/2X/a/abd490f1fcc99386d8ce3521078ea7814a6046bb.png)

---

<div class="post-metadata">

**Author:** ![floion](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@floion](https://forums.balena.io/u/floion)\
**Post date:** [August 12, 2020, 8:56pm UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/7 "2020-08-12T20:56:12Z")

</div>

So it looks like it connected fine. Can you also run `curl https://api.balena-cloud.com/ping` ?

---

<div class="post-metadata">

**Author:** ![drcnyc](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@drcnyc](https://forums.balena.io/u/drcnyc)\
**Post date:** [August 12, 2020, 8:58pm UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/8 "2020-08-12T20:58:50Z")

</div>

Got the response “OK”

---

<div class="post-metadata">

**Author:** ![floion](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@floion](https://forums.balena.io/u/floion)\
**Post date:** [August 12, 2020, 9:01pm UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/9 "2020-08-12T21:01:05Z")

</div>

So it can reach the API. Now can you check `journalctl --no-pager -u resin-supervisor` ?

---

<div class="post-metadata">

**Author:** ![drcnyc](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@drcnyc](https://forums.balena.io/u/drcnyc)\
**Post date:** [August 13, 2020, 12:33am UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/11 "2020-08-13T00:33:54Z")

</div>

Looks like no entries for `resin-supervisor` – see below:

 ![image](https://global.discourse-cdn.com/balena/original/2X/5/59bf49a93d7566a57511347f34281a39e15bf57f.png)

---

<div class="post-metadata">

**Author:** ![drcnyc](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@drcnyc](https://forums.balena.io/u/drcnyc)\
**Post date:** [August 13, 2020, 1:03am UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/12 "2020-08-13T01:03:43Z")

</div>

@floion I found the issue - looks like I hadn’t created the second drive for downloading data. I had mistakenly assumed it would just expand the Balena image, but everything is now working fine. Thank you!

And to others who are interested in doing this - it’s pretty simple:

1. Download `qemu-img`, extract it to a folder, and place your balena image (NUC) in that folder
2. Run `qemu-img.exe convert balena-image.img -O vhdx -o subformat=dynamic hyperv-balena-image.vhdx`
3. Create a virtual machine in Hyper-V (I used the second generation setup), disable secure boot, and ensure it has network connectivity
4. Create a new (empty) hard drive for your first drive, and load the `hyperv-balena-image.vhdx` for the second (the order is important, it doesn’t work the other way around)

These are the steps that worked for me, hopefully it works for others too.

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [August 13, 2020, 10:27am UTC](https://forums.balena.io/t/hyper-v-vm-nuc-image-starting-up-but-not-downloading-application/172434/13 "2020-08-13T10:27:45Z")

</div>

@drcnyc that is super cool! Glad you figured it out and came back to share your solution with the community!
