VirtualBox
This is a generic guide to installing CUBE OS on VirtualBox, the host can be an old PC, or a MCU.
1. Preparation:
Download the CUBE OS image
Visit this repo to download the latest .vdi image. Please extract the image after downloading.
Install Virtual Machine
Download and install a virtual machine manager, with VirtualBox being recommended.

Have other virtual machine managers? The following steps can theoretically be used as well.
Unfamiliar with virtual machines and owning a Raspberry Pi? You can choose to install CUBE OS on a Raspberry Pi.
If none of these options are viable, you can purchase an iHost with built-in CUBE OS from the SONOFF official website or platforms like Amazon.
Zigbee Adapter (Optional)
If you need to add Zigbee devices, prepare a Zigbee Dongle. Tested Zigbee Dongles include:
SONOFF ZBDongle-MAX SONOFF ZBDongle-PMG24 SONOFF ZBDongle-LMG21 SONOFF ZBDongle-E SONOFF ZBDongle-P Others listed by developer @darkxst
2. Create a Virtual Machine:
Launch VirtualBox

Select “New”
or use the shortcut “Ctrl + N”.
Name the virtual machine, select “Linux” as the type, “Other Linux” as the subtype, and “Other Linux (64 bit)” as the version.

Under “Hardware”, allocate the memory size and processor count for the virtual machine. 4GB memory and 2 CPUs are recommended. Then, enable EFI.

Under “Hard Disk”, choose to use an existing virtual hard disk file and select the .vdi file extracted from Preparation Step 1.

Click “Finish” to create the virtual machine.
3. Configure the Virtual Machine:
Select the created virtual machine and click the “Settings”
button.

Under the “Network” tab, configure the network connection as “Bridged Adapter” and select the network adapter you are using.

Under “Audio”, enable sound and choose the Default option as the controller.

Optional: For Zigbee Dongle usage, insert the Zigbee Dongle at this step and select the correct controller type under “USB”. In the USB filter, add the necessary Zigbee Dongle using the add button on the side.

Click “OK” to save the configuration.
4. Boot CUBE OS
Click the "Start" button
.

Monitor the boot screen until the boot is complete.

Once completed, you will see the CUBE OS' IP displayed on the screen. Use this IP address or cube.local to access the CUBE OS Web management page.

Upon successful access, a short ID can be viewed on the settings page. Subsequently, access the CUBE OS Web management page using cube-{short id}.local, which is useful for differentiating multiple CUBE OS instances on the same local network.

Last updated