# VMware

{% embed url="<https://www.youtube.com/watch?t=3s&v=TD_Gr38HOsU>" %}

### 1. การเตรียมการ:

{% stepper %}
{% step %}
**ดาวน์โหลด** CUBE OS **อิมเมจ**

เยี่ยมชม [repo](https://github.com/eWeLinkCUBE/CUBE-OS/releases/latest) เพื่อดาวน์โหลด `.vmdk`อิมเมจ โปรดแตกไฟล์อิมเมจหลังจากดาวน์โหลดแล้ว
{% endstep %}

{% step %}
**ติดตั้ง VMware**

ดาวน์โหลดและติดตั้งโปรแกรมจัดการเครื่องเสมือน โดย [VMware Workstation](https://www.vmware.com/products/desktop-hypervisor/workstation-and-fusion) เป็นที่แนะนำ

> มีตัวจัดการเครื่องเสมือนอื่นหรือไม่? ขั้นตอนต่อไปนี้สามารถนำไปใช้ได้ในทางทฤษฎีเช่นกัน\
> ไม่คุ้นเคยกับเครื่องเสมือนและมี Raspberry Pi อยู่หรือไม่? คุณสามารถเลือกติดตั้ง CUBE OS บน [Raspberry Pi](/english-th/getting-started/quickstart/raspberry-pi.md)。\
> หากตัวเลือกเหล่านี้ไม่สามารถใช้งานได้ คุณสามารถซื้อ [iHost](https://sonoff.tech/products/sonoff-ihost-smart-home-hub/58) ที่มาพร้อม CUBE OS ในตัวจากเว็บไซต์ทางการของ SONOFF หรือแพลตฟอร์มอย่าง Amazon ได้
> {% endstep %}

{% step %}
**อะแดปเตอร์ Zigbee (ไม่บังคับ)**

หากต้องการเพิ่มอุปกรณ์ Zigbee ให้เตรียม Dongle Zigbee Dongle ที่ผ่านการทดสอบได้แก่:
{% endstep %}
{% endstepper %}

### 2. สร้างเครื่องเสมือน

{% stepper %}
{% step %}
เปิด VMware เลือก “Create a New Virtual Machine” <img src="/files/b2facc0912133c2b120b95113b48d63bd867c8c1" alt="" data-size="line">.

<div align="left"><figure><img src="/files/5851d9698ded0584aa6fde312ba3d6d7e2a72e63" alt="" width="375"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
เลือก **Custom**แล้วคลิก **Next**. ฮาร์ดแวร์-**Workstation 17.5 หรือใหม่กว่า** คลิก **Next.**\
![](/files/e3b6d4054b8ebe037dbc7408e0ec9ee5e541379a)![](/files/332f1849df3e181cde4f0fcd21202ba94e10872b)
{% endstep %}

{% step %}
เลือก **ฉันจะติดตั้งระบบปฏิบัติการทีหลัง**แล้วคลิก **Next**.![](/files/1273cf0bacbfaf1d534f9852fcac4b52cc0bbdcf)
{% endstep %}

{% step %}
เลือก **Linux > Other Linux 6.x kernel (64-bit)** เป็นประเภทระบบปฏิบัติการผู้เยี่ยมชม (guest)![](/files/bd09f43ca954bc7fc284a5554fcd490851d360b0)
{% endstep %}

{% step %}
ตั้งชื่อ VM เป็น **CUBE OS** และเลือกตำแหน่งจัดเก็บ![](/files/e6b47542f6bf03e19d288d5212378a660b84099a)
{% endstep %}

{% step %}
ทรัพยากรระบบ:

* **ตัวประมวลผล**: 2 คอร์
* **หน่วยความจำ**: 4096MB (4GB) หรือมากกว่า\
  ![](/files/61aeabccbc9e03484014de77b3fcbb211f8525ed)![](/files/1b2542c8812a1237bcd55f00be6c8fcdccf3c74f)
  {% endstep %}

{% step %}
ประเภทเครือข่าย / ตัวควบคุม I/O:

* ตั้งค่า **Network Adapter** เป็น **Bridged** โหมด (สำคัญสำหรับการเข้าถึงและค้นหาใน LAN)
* ตั้งค่า **ประเภทตัวควบคุม** เป็น **LSI Logic** (จำเป็นเพื่อความเข้ากันได้กับดิสก์เสมือน)![](/files/ca2d5af3517933f1fbb5274e1038549313ee44f6)![](/files/2e80d4653c3e84fad2b4568dc2b847110e192abc)
  {% endstep %}

{% step %}
เลือกประเภทดิสก์ **SCSI (แนะนำ), ใช้ดิสก์เสมือนที่มีอยู่แล้ว**.

![](/files/a61a601ba1e8027a28cc6d574d633dc37a26af32)![](/files/983e982a023e27cc0890e2bb545f71213e467dc1)

{% endstep %}

{% step %}
คลิก **Browse**แล้วเลือก CUBE OS `.vmdk` และ **เก็บรูปแบบเดิม**.![](/files/9949d79f272f432d6a5b4504f7e6b61a742dc9f7)![](/files/ba97e04b1f449a1e676fb92ed65154ecfa54e6fb)
{% endstep %}

{% step %}
คลิก “Finish” เพื่อสร้างเครื่องเสมือน
{% endstep %}
{% endstepper %}

### 3. กำหนดค่าเครื่องเสมือน

{% stepper %}
{% step %}
เลือกเครื่องเสมือนที่สร้างขึ้นแล้วและคลิกปุ่ม “Settings” ![](/files/5b78bdebea7ac455d3bb0758d84d40bf44e26bfe) ปุ่ม![](/files/fb7180f8ed591c0a88e3aa5c91cf3f610f9f9013)
{% endstep %}

{% step %}
ภายใต้แท็บ “Network” ยืนยันการเชื่อมต่อเครือข่ายเป็น “**Bridged**” และเลือก **Replicate physical network connection state**.

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

{% step %}
ภายใต้แท็บ “Options”-“Advanced” ตั้งค่า **ประเภทเฟิร์มแวร์** เป็น **UEFI**. ![](/files/51466afb479d3ec90e59dfab06006c0edeb546a3)
{% endstep %}

{% step %}
**ตัวเลือกเพิ่มเติม:** หากใช้ Dongle USB ของ Zigbee ให้แน่ใจว่าได้เพิ่ม **USB Controller** แล้ว ภายใต้ **USB Controller**เปิดใช้งาน **Show all USB input devices.**

![](/files/ed4b4ae69eff02e6ff176cb7408cca2f469615b1)
{% endstep %}

{% step %}
คลิก “OK” เพื่อบันทึกการตั้งค่า
{% endstep %}
{% endstepper %}

### 4. บูต CUBE OS

{% stepper %}
{% step %}
เริ่มเครื่องเสมือน
{% endstep %}

{% step %}
รอสักครู่ให้ CUBE OS เริ่มต้น ตรวจสอบหน้าจอบูตจนกว่าการบูตจะเสร็จสิ้น

![](/files/907694cb1cf5b44ea4a8904f3a8c3ba28a3d6996)
{% endstep %}

{% step %}
เมื่อเสร็จแล้ว คุณจะเห็นที่อยู่ IP ของ CUBE OS แสดงบนหน้าจอ ใช้ที่อยู่ IP นี้หรือ [cube.local](http://cube.local) เพื่อเข้าถึงหน้าการจัดการเว็บของ CUBE OS

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

{% step %}
เมื่อเข้าถึงสำเร็จ สามารถดู ID สั้น ๆ ได้ที่หน้าการตั้งค่า จากนั้นเข้าถึงหน้าจัดการเว็บของ CUBE OS โดยใช้ `cube-{short id}.local`ซึ่งมีประโยชน์ในการแยกแยะอินสแตนซ์ของ CUBE OS หลายเครื่องบนเครือข่ายท้องถิ่นเดียวกัน

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


---

# Agent Instructions: 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:

```
GET https://cube.ewelink.cc/english-th/getting-started/quickstart/virtual-machine/vmware.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
