# Create Virtual Machine

#### **Pre-requisite**

* **Network:** ทำการสร้าง virtual network ก่อนทำการสร้าง vm

#### Instructions

1. เข้าสู่ Project
2. เลือก **Virtual machines** คลิ๊ก **Create virtual machine**<br>

   <figure><img src="/files/QWv5RUxJGnjlJBLyHfkZ" alt=""><figcaption></figcaption></figure>
3. ขั้นตอนการสร้าง
   * Name: กำหนดชื่อของ vm ที่ต้องการ
   * Deploy from: เลือก deploy จาก image หรือ volume<br>

     <figure><img src="/files/BbJiK7U8LVEHhZ1WzxYr" alt=""><figcaption></figcaption></figure>
   * Image: เลือก os image ที่ต้องการ<br>

     <figure><img src="/files/VTszDMP3HpCCWVvUt53s" alt=""><figcaption></figcaption></figure>
   * Volumes: เพิ่มขนาดของ volume ที่ต้องการใช้งาน
   * Flavor: ขนาดของ vm สามารถเลือกขนาดที่เล็กก่อน แล้ว resize ได้ในภายหลัง<br>

     <figure><img src="/files/3ppXqNDw4oFX10740mha" alt=""><figcaption></figcaption></figure>
   * Network interfaces: สำหรับกำหนด IP Address ให้กับ vm<br>

     <figure><img src="/files/qT7ghVGy82CeFEoJmvZP" alt=""><figcaption></figcaption></figure>
   * SSH key: สำหรับ login vm ด้วยไฟล์ key
   * Customization script: สำหรับปรับแต่งการ login vm ด้วย cloud-init<br>

     <figure><img src="/files/rz2yNQB1pml2KwXM80Ev" alt=""><figcaption></figcaption></figure>
4. ตรวจสอบความถูกต้องจากนั้นกด **Deploy** เมื่อ vm สร้างสำหรับ จะขึ้นเป็น **Active**


---

# 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://readyidc.gitbook.io/readyidc-docs/readme/compute-resources/managing-virtual-machines/create-virtual-machine.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.
