> For the complete documentation index, see [llms.txt](https://cube.ewelink.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cube.ewelink.cc/english-pt-br/primeiros-passos/quickstart/maquina-virtual/virtualbox.md).

# VirtualBox

{% embed url="<https://www.youtube.com/watch?v=ZRNFkle69BI>" %}

### 1. Preparação:

{% stepper %}
{% step %}
**Baixe o** CUBE OS **imagem**

Visite este [repositório](https://github.com/eWeLinkCUBE/CUBE-OS/releases/latest) para baixar a mais recente  `.vdi` imagem. Por favor, extraia a imagem após o download.
{% endstep %}

{% step %}
**Instalar Máquina Virtual**

Baixe e instale um gerenciador de máquina virtual, sendo [VirtualBox](https://www.virtualbox.org/wiki/Downloads) recomendado.

<img src="/files/d7e6aa1ebf482c2e49716dec3315d15268b5f46d" alt="" data-size="original">

> Tem outros gerenciadores de máquinas virtuais? As etapas a seguir teoricamente também podem ser usadas.\
> Não está familiarizado com máquinas virtuais e possui um Raspberry Pi? Você pode optar por instalar o CUBE OS em um [Raspberry Pi](/english-pt-br/primeiros-passos/quickstart/raspberry-pi.md). \
> Se nenhuma dessas opções for viável, você pode comprar um [iHost](https://sonoff.tech/products/sonoff-ihost-smart-home-hub/58) com CUBE OS integrado no site oficial da SONOFF ou em plataformas como a Amazon.
> {% endstep %}

{% step %}
**Adaptador Zigbee (Opcional)**

Se você precisa adicionar dispositivos Zigbee, prepare um Dongle Zigbee. Dongles Zigbee testados incluem:

> SONOFF ZBDongle-MAX\
> SONOFF ZBDongle-PMG24\
> SONOFF ZBDongle-LMG21\
> SONOFF ZBDongle-E\
> SONOFF ZBDongle-P\
> [Outros listados](https://darkxst.github.io/silabs-firmware-builder/) pelo desenvolvedor @darkxst&#x20;

{% hint style="info" %}
Para mais informações sobre configurações e compatibilidade do Zigbee, por favor consulte isto [guia](/english-pt-br/verificacao-de-compatibilidade/zigbee.md).
{% endhint %}
{% endstep %}
{% endstepper %}

### 2. Crie uma Máquina Virtual:

{% stepper %}
{% step %}
Inicie o VirtualBox

<img src="/files/c35b517c00f6609a884324f2c5b39d33b8691267" alt="" data-size="original">
{% endstep %}

{% step %}
Selecione “Novo” <img src="/files/ed1478164902865f0cdaf64d43178576b1fafd7f" alt="" data-size="line"> ou use o atalho “Ctrl + N”.
{% endstep %}

{% step %}
Nomeie a máquina virtual, selecione “Linux” como tipo, “Other Linux” como subtipo e “Other Linux (64 bit)” como versão.

<img src="/files/0f002a5f6ab86ab163671b25ce695c689bc4d676" alt="" data-size="original">
{% endstep %}

{% step %}
Em “Hardware”, aloque o tamanho de memória e a quantidade de processadores para a máquina virtual. Recomenda-se 4 GB de memória e 2 CPUs. Em seguida, habilite o EFI.

<img src="/files/d50e419c751942bff5460e62cd4585403bbdba49" alt="" data-size="original">

{% hint style="info" %}
Importante: Certifique-se de que o EFI esteja habilitado; caso contrário, o CUBE OS não inicializará.
{% endhint %}
{% endstep %}

{% step %}
Em “Disco Rígido”, escolha usar um arquivo de disco rígido virtual existente e selecione o arquivo .vdi extraído do [Passo 1 da Preparação.](#id-1-preparation)

<img src="/files/dcc46dc68066212832f8573e3760ee7cd8d59433" alt="" data-size="original">
{% endstep %}

{% step %}
Clique em “Concluir” para criar a máquina virtual.
{% endstep %}
{% endstepper %}

### 3. Configure a Máquina Virtual:

{% stepper %}
{% step %}
Selecione a máquina virtual criada e clique no botão “Configurações” <img src="/files/47b7dffd201e22ccec9c58efa8ee01d710ed41f2" alt="" data-size="line"> .

<img src="/files/930c22013fd591a8554e9eb05c9ced5b035075ea" alt="" data-size="original">
{% endstep %}

{% step %}
Na aba “Rede”, configure a conexão de rede como “Adaptador em Ponte” e selecione o adaptador de rede que você está utilizando.

<img src="/files/3cf6295d9eb2f0faaf15d89d6c6703942560eda0" alt="" data-size="original">
{% endstep %}

{% step %}
Em “Áudio”, habilite o som e escolha a opção Padrão como controlador.&#x20;

<img src="/files/f93b159df3b3aab4681c88fa4589817a3cf80e91" alt="" data-size="original">
{% endstep %}

{% step %}
**Opcional:** Para uso de Dongle Zigbee, insira o Dongle Zigbee neste passo e selecione o tipo de controlador correto em “USB”. No filtro USB, adicione o Dongle Zigbee necessário usando o botão de adicionar ao lado.

<img src="/files/8f0905c248753db6ddfca4be29709a18daf728b9" alt="" data-size="original">
{% endstep %}

{% step %}
Clique em “OK” para salvar a configuração.
{% endstep %}
{% endstepper %}

### 4. Inicialize o CUBE OS

{% stepper %}
{% step %}
Clique no botão "Iniciar" <img src="/files/5cd6593212399a8cc16f020e92f00b6c06a6a623" alt="" data-size="line">.

<img src="/files/dd0dfd36cccbf5d9f1517a3e77cfb293eee66e51" alt="" data-size="original">
{% endstep %}

{% step %}
Monitore a tela de inicialização até que a inicialização seja concluída.

<img src="/files/128d8ad557f54a1db9bb7647874139c4b1e2274d" alt="" data-size="original">
{% endstep %}

{% step %}
Uma vez concluído, você verá o IP do CUBE OS exibido na tela. Use esse endereço IP ou [cube.local](http://cube.local) para acessar a página de gerenciamento Web do CUBE OS.

<img src="/files/9523886ba557461ce4fb58175f6348023f8a7db7" alt="" data-size="original">
{% endstep %}

{% step %}
Ao acessar com sucesso, um ID curto pode ser visualizado na página de configurações. Em seguida, acesse a página de gerenciamento Web do CUBE OS usando `cube-{short id}.local`, o que é útil para diferenciar múltiplas instâncias do CUBE OS na mesma rede local.

<img src="/files/f32229334b24af804dbf3e958e87cdd1306610df" alt="" data-size="original">
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cube.ewelink.cc/english-pt-br/primeiros-passos/quickstart/maquina-virtual/virtualbox.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
