balena-labs-projects / rosetta-at-home

80 stars 17 forks source link

BalenaOS startup hang on Virtualbox #33

Open Thecoder3281F opened 4 years ago

Thecoder3281F commented 4 years ago

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.

chrisys commented 4 years ago

@Thecoder3281F where was it stuck?

Thecoder3281F commented 4 years ago

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

Thecoder3281F commented 4 years ago

It worked in QEMU

chrisys commented 4 years ago

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

Thecoder3281F commented 4 years ago

I used the generic x86-64 image

Thecoder3281F commented 4 years ago

What's the difference?

Thecoder3281F commented 4 years ago

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

Thecoder3281F commented 4 years ago

QEMU works

Thecoder3281F commented 4 years ago

I tried the NUC image Doesn't work

Thecoder3281F commented 4 years ago

I think it doesn't support Virtualbox

Thecoder3281F commented 4 years ago

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 commented 4 years ago

The balena supervisor and balena application container engine failed to start

rahul-thakoor commented 4 years ago

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 commented 4 years ago

here is the relevant guide

Thecoder3281F commented 4 years ago

Thanks

Thecoder3281F commented 4 years ago

Annotation 2020-04-30 114358

Thecoder3281F commented 4 years ago

doesn't work on second boot(after flashing)

Thecoder3281F commented 4 years ago

The balena supervisor and balena application container engine failed to start

Yes, it happened again

rahul-thakoor commented 4 years ago

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

jtonello commented 4 years ago

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.