> 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/primeiros-passos/quickstart/maquina-virtual/virtualbox.md).

# VirtualBox

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

### 1. Preparação:

{% stepper %}
{% step %}
**Faça o download do** 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áquinas virtuais, sendo [VirtualBox](https://www.virtualbox.org/wiki/Downloads) recomendado.

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

> Possui outros gerenciadores de máquinas virtuais? Os seguintes passos teoricamente também podem ser usados.\
> 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/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 precisar 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 obter mais informações sobre configurações e compatibilidade do Zigbee, consulte este [guia](/english-pt/verificacao-de-compatibilidade/zigbee.md).
{% endhint %}
{% endstep %}
{% endstepper %}

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

{% stepper %}
{% step %}
Abra o VirtualBox

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

{% step %}
Selecione “Novo” <img src="/files/269b21282b280dc9f87c3caf60b2c56078cdd390" 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/525ee3f0a149b8234701bf72527a19e6b9d5116c" 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/66c0a5f3c2ea3b245966f62a9110983a575276b9" alt="" data-size="original">

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

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

<img src="/files/4ecc1ed1f48569a8efd7bb217a60e9a9ca45f138" 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/6f903034c506d1310487b848d0d2eb11564a501b" alt="" data-size="line"> .

<img src="/files/3ed0f0bc76af473a1382a1ff93b85c5e3fdddf33" 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á usando.

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

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

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

{% step %}
**Opcional:** Para uso do 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/333c09d78637cecd43ba1c0e978da83bddefd857" alt="" data-size="original">
{% endstep %}

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

### 4. Inicializar o CUBE OS

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

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

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

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

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

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

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

<img src="/files/0ce1ee1c5645c22482d3dda7fb6223fcc03d6c12" 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/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.
