Tag Archives: balena.io

how to run @balena_io @resin @intel #nuc nodes on @oracle @virtualbox 6.1.2

how to create and run @balena_io @resin @intel #nuc nodes on @oracle @virtualbox

  • use balena to create a Intel NUC image
  • download image
  • unzip image

convert RAW image to VMDK image with

“C:\Program Files\Oracle\VirtualBox\VBoxManage”

C:\> "VBoxManage" convertfromraw inuc.img inuc.vmdk --format VMDK

create a VM

  • chose Linux
  • choose Other Linux (64-bit)
  • enable UEFI

add storage

  • remove IDE storage controller
  • add SATA storage controller

then add

  • SCSI 0 CREATE inuc.VDI (8G-32G)
  • SCSI 1 ADD inuc.VMDK

boot and wait for it to FLASH and SHUTDOWN

  • remove inuc.VMDK

restart VM

  • wait for balena logo to appear

connect via balena.io portal

inuc.png

for instructions for older versions of virtual box see

balena.io quickstart

add balena etcher repo

# echo "deb https://deb.etcher.io stable etcher" | \
sudo tee /etc/apt/sources.list.d/balena-etcher.list
# apt-key adv --keyserver keyserver.ubuntu.com \
--recv-keys 379CE192D401AB61

install balena etcher

# aptitude update 
# aptitude install balena-etcher-electron

understand difference between balena dev v prod images

create a APP and build and download a base SD card zip

flash base SD card with etcher

$ balena-etcher-electron

install balena cli

note add you SSH key to github BEFORE running npm install balena-cli

cmds

# aptitude install npm
# npm -g install typescript
# npm install balena-cli -g --production --unsafe-perm

add SSH key to your balena.io account

login to balena

$ balena login

web auth

verify connection

$ balena apps

ID      APP NAME DEVICE TYPE     ONLINE DEVICES DEVICE COUNT

get a project and push it

cmds to clone push and deploy

$ git clone myproj
$ cd myproj
$ balena push MYAPP

deploy a balena container

browse to

Screenshot_2020-03-17 OpenWebRX Open Source SDR Web App for Everyone .png

balena.io now supports KVM QEMU #IOT nodes

balena.io now supports KVM QEMU #IOT nodes

Run the following to start the image:

on systems with KVM support:

$ qemu-system-x86_64 -drive \
file=resin-image-qemux86-64.img,media=disk,cache=none,format=raw \
-net nic,model=virtio -net user -m 512 -nographic \
-machine type=pc,accel=kvm -smp 4 -cpu host

on systems without KVM support:

$ qemu-system-x86_64 -drive \
file=resin-image-qemux86-64.img,media=disk,cache=none,format=raw \
-net nic,model=virtio -net user -m 512 -nographic \
-machine type=pc -smp 4

Tweak -smp and -cpu parameters based on the CPU of the machine qemu is running on. -cpu parameter needs to be dropped on OSX and Windows.

Tweak -nographic and -m 512 to set the display of qemu and memory respectively.