# Hyper-V

ขอขอบคุณเป็นพิเศษต่อผู้ร่วมชุมชนของเรา [@Jordanwise](https://forum.ewelink.cc/u/jordanwise) สำหรับการสร้างและแบ่งปันวิดีโอสอนที่เป็นประโยชน์นี้:

{% embed url="<https://www.youtube.com/watch?v=StVw-60Piuk>" %}

### 1. การเตรียมการ <a href="#id-1.-prerequisites" id="id-1.-prerequisites"></a>

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

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

{% step %}
**ติดตั้ง Hyper-V**

Windows 10 / 11 Pro, Enterprise หรือ Education (ต้องมี Hyper-V)

เปิดใช้งาน Hyper-V บนระบบของคุณ: ก่อนใช้ Hyper-V ให้แน่ใจว่าได้เปิดใช้งานใน Windows แล้ว เปิด **Control Panel → Programs → Turn Windows features on or off**,&#x20;

<div align="left"><figure><img src="/files/bb6ddaaaacee6f7b1f514d6f03eb5c9ce5873c5b" alt="" width="310"><figcaption></figcaption></figure></div>

เปิด **Hyper-V** (รวมถึง *Hyper-V Management Tools* และ *Hyper-V Platform*), **Virtual Machine Platform**, **Windows Hypervisor Platform**, แล้วคลิก **ตกลง** และรีสตาร์ทคอมพิวเตอร์ของคุณ

<div align="left"><figure><img src="/files/77eb0c3396c2cb0ad2d0621aea84aac01964e13c" alt="" width="332"><figcaption></figcaption></figure></div>
{% endstep %}

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

หากคุณต้องการเพิ่มอุปกรณ์ Zigbee ทาง USB โปรดทราบว่า Hyper-V ไม่รองรับการส่งผ่าน USB โดยตรงสำหรับฮาร์ดแวร์เช่นดองเกิล Zigbee หากต้องการเข้าถึง USB ให้พิจารณาใช้ **โซลูชัน USB-over-IP** หรือ **โคออร์ดิเนเตอร์ Zigbee แบบเครือข่าย** แทน
{% endstep %}
{% endstepper %}

### 2. แปลงอิมเมจ CUBE OS เป็น VHDX <a href="#id-2.-convert-the-cube-os-image-to-vhdx" id="id-2.-convert-the-cube-os-image-to-vhdx"></a>

ก่อนสร้างเครื่องเสมือน ให้แปลงอิมเมจดิสก์ CUBE OS เป็นรูปแบบที่เข้ากันได้กับ Hyper-V **VHDX** รูปแบบที่เข้ากันได้

{% stepper %}
{% step %}
ดาวน์โหลดและติดตั้งเครื่องมือแปลงอิมเมจ VM เช่น **VM Image Converter** (แนะนำสำหรับ Windows)&#x20;

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

{% step %}
เปิดโปรแกรมแปลงและเลือก:

* รูปแบบต้นทาง: **VMDK**
* รูปแบบปลายทาง: **VHDX**

<div align="left"><figure><img src="/files/898e1a0ead804bfc2f4a7b8f25cdc47aa5b68cae" alt="" width="360"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
ทำการแปลงให้เสร็จและจดตำแหน่งของไฟล์ `.vhdx` ที่สร้างขึ้น

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

### 3. สร้างเครื่องเสมือน <a href="#id-3.-create-the-virtual-machine" id="id-3.-create-the-virtual-machine"></a>

{% stepper %}
{% step %}
เปิด **Hyper-V Manager**.

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

{% step %}
คลิก **สร้างอย่างรวดเร็ว** → เลือก![](/files/3748bda976f6264dacfbe5c5725f218a22c547ba)**แหล่งติดตั้งภายในเครื่อง**.

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

{% step %}
เลือก **เปลี่ยนแหล่งติดตั้ง**, เลือกไฟล์ที่แปลงแล้ว **CUBE OS `.vhdx`** ไฟล์และปิดใช้งาน **Windows Secure Boot**.

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

{% step %}
ใส่ชื่อสำหรับ VM (ตัวอย่างเช่น, `CUBE OS`), แล้ว **สร้างเครื่องเสมือน**.
{% endstep %}
{% endstepper %}

### 4. กำหนดค่าการตั้งค่าเครื่องเสมือน <a href="#id-4.-configure-virtual-machine-settings" id="id-4.-configure-virtual-machine-settings"></a>

{% stepper %}
{% step %}
คลิก **การตั้งค่า** สำหรับเครื่องเสมือนที่สร้างใหม่

<div align="left"><figure><img src="/files/a07b64e6054779ab67cb0f6fd79e32a416973a02" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}
กำหนดทรัพยากรของระบบ:

* ขั้นต่ำ: **4096 MB (4 GB)**
* ปิดการใช้งาน Dynamic Memory (แนะนำ).
* **โปรเซสเซอร์**: 2 โปรเซสเซอร์เสมือน

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

{% step %}
คลิก **นำไปใช้** และ **ตกลง** เพื่อบันทึกการตั้งค่า.
{% endstep %}
{% endstepper %}

### 5. บูท CUBE OS

{% stepper %}
{% step %}
คลิก **เชื่อมต่อ** และ **เริ่ม** เครื่องเสมือนที่สร้างขึ้น.

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

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

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

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

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

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

<div align="left"><figure><img src="/files/bbf950eee18bf0c687f561b6dc3e32341d84b7aa" alt="" width="375"><figcaption></figcaption></figure></div>
{% 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/hyper-v.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.
