rosetta-at-home icon indicating copy to clipboard operation
rosetta-at-home copied to clipboard

BalenaOS startup hang on Virtualbox

Open Thecoder3281F opened this issue 4 years ago • 20 comments

When I plugged in the installation thumb drive, the balena logo came out and the computer shut down. After turning it on again, I pressed the up arrow to open the command prompt and saw that it was stuck on a particular stage.

Thecoder3281F avatar Apr 28 '20 07:04 Thecoder3281F

@Thecoder3281F where was it stuck?

chrisys avatar Apr 28 '20 08:04 chrisys

Update UMTP about system runlevel changes By the way, I used Virtualbox's feature to boot from usb

Thecoder3281F avatar Apr 28 '20 09:04 Thecoder3281F

It worked in QEMU

Thecoder3281F avatar Apr 28 '20 11:04 Thecoder3281F

@Thecoder3281F another thing you can try if you're running a virtual machine is the Intel NUC image (if you're not already).

chrisys avatar Apr 28 '20 12:04 chrisys

I used the generic x86-64 image

Thecoder3281F avatar Apr 28 '20 23:04 Thecoder3281F

What's the difference?

Thecoder3281F avatar Apr 28 '20 23:04 Thecoder3281F

Should I use the generic or QEMU image for my Linux install? I dual boot Ubuntu and Windows 10

Thecoder3281F avatar Apr 28 '20 23:04 Thecoder3281F

QEMU works

Thecoder3281F avatar Apr 29 '20 00:04 Thecoder3281F

I tried the NUC image Doesn't work

Thecoder3281F avatar Apr 29 '20 00:04 Thecoder3281F

I think it doesn't support Virtualbox

Thecoder3281F avatar Apr 29 '20 00:04 Thecoder3281F

There was a warning that only appeared in the NUC image, not the generic one. WARN[0000] Couldn't run auplink before unmount /tmp/docker-aufs-union852908369 error="exec: \"auplink"\: executable file not found in $PATH" storage-driver=aufs

Thecoder3281F avatar Apr 29 '20 00:04 Thecoder3281F

The balena supervisor and balena application container engine failed to start

Thecoder3281F avatar Apr 29 '20 00:04 Thecoder3281F

Hey @Thecoder3281F Thanks for the feedback. We do have people who successfully run intel-nuc imagein VirtualBox. Can you please describe the workflow you are using to get it to work?

For virtualbox the recommended steps are:

  1. creating a new virtual machine, setting the type to "Other Linux 64-bit"
  2. In the VM settings
    • Disable I/O APIC (default setting can result in a boot crash)
    • Enable EFI (the NUC image is set up for UEFI boot)
  3. add a new SATA storage controller and a virtual hard disk. The virtual hard disk can be any image format; Make the disk at least 8 GB in size.
  4. unzip the download image and convert it to a virtual hardware image using the VBoxManage tool and create a Virtual Machine Disk (VMDK) file
  5. add the .vmdk image file you created in the previous step as a second SATA hard disk.
  6. Boot, you should see an initial Flash boot screen

rahul-thakoor avatar Apr 29 '20 13:04 rahul-thakoor

here is the relevant guide

rahul-thakoor avatar Apr 29 '20 16:04 rahul-thakoor

Thanks

Thecoder3281F avatar Apr 30 '20 03:04 Thecoder3281F

Annotation 2020-04-30 114358

Thecoder3281F avatar Apr 30 '20 03:04 Thecoder3281F

doesn't work on second boot(after flashing)

Thecoder3281F avatar Apr 30 '20 03:04 Thecoder3281F

The balena supervisor and balena application container engine failed to start

Yes, it happened again

Thecoder3281F avatar Apr 30 '20 03:04 Thecoder3281F

hey @jtonello can you give this a try on your machine please? Use the intel-nuc image to test. Thanks :)

rahul-thakoor avatar Apr 30 '20 05:04 rahul-thakoor

This worked fine for me. I got a brief flash of an error, but the VM booted to flash, stopped, and booted to the balena screen properly. The key is to not add a device when creating the VM. That defaults to IDE, which doesn't work. A user must create a SATA controller and add two virtual disks to that from VirtualBox settings before booting.

jtonello avatar May 05 '20 13:05 jtonello