Ask Hướng dẫn cài đặt Windows trên DigitalOcean và 1 số nền tảng KVM khác

## Cách cài đặt Windows trên các nền tảng KVM và KVM khác

DigitalOcean là một nhà cung cấp dịch vụ lưu trữ đám mây phổ biến cung cấp nhiều hình ảnh khác nhau của máy ảo (VM), bao gồm cả Windows.Tuy nhiên, việc cài đặt Windows trên VM dựa trên KVM có thể là khó khăn.Trong hướng dẫn này, chúng tôi sẽ chỉ cho bạn cách cài đặt Windows trên DigitalOcean bằng một vài bước đơn giản.

### Điều kiện tiên quyết

Trước khi bạn bắt đầu, bạn sẽ cần những điều sau:

* Một tài khoản kỹ thuật số
* Thẻ tín dụng hoặc phương thức thanh toán khác
* Tệp ISO cài đặt Windows 64 bit
* VM dựa trên KVM trên DigitalOcean

### Các bước

1. Đăng nhập vào tài khoản DigitalOcean của bạn và nhấp vào nút ** Tạo giọt **.
2. Chọn hình ảnh ** Ubuntu 20.04 lts ** và gói ** 1GB **.
3. Nhấp vào nút ** Tạo giọt **.
4. Sau khi giọt của bạn được tạo, nhấp vào nút ** Kết nối **.
5. Trong thiết bị đầu cuối, chạy các lệnh sau:

`` `
Cập nhật sudo apt
sudo apt cài đặt Qemu-kvm libvirt-bin
`` `

6. Tải xuống tệp ISO cài đặt Windows vào máy tính cục bộ của bạn.
7. SCP Tệp ISO vào giọt của bạn:

`` `
SCP <path-to-iso-file> <user>@<drowlet-ip>: ~//
`` `

8. Đăng nhập vào giọt của bạn bằng SSH:

`` `
SSH <ser user>@<drowlet-ip>
`` `

9. Thay đổi sang thư mục mà bạn đã lưu tệp ISO:

`` `
CD ~/
`` `

10. Gắn tệp ISO:

`` `
sudo mount -o loop <iso -file> /mnt
`` `

11. Bắt đầu cài đặt:

`` `
sudo đức tính \
-tên Windows \
--ram 2048 \
-đường dẫn-đĩa =/dev/vda, size = 10g \
-Windows loại \
-windows2019 windows2019 \
-Boot Uefi \
--cdrom /mnt
`` `

12. Thực hiện theo các hướng dẫn trên màn hình để hoàn thành cài đặt.

Sau khi cài đặt hoàn tất, bạn có thể kết nối với Windows VM bằng RDP.

### Tài nguyên

* [Tài liệu DigitalOcean: Cài đặt Windows trên VM dựa trên KVM] (https://www.digitalocean.com/docs/droplets/how-to-install-windows-on-a-kvm dựa trên
* [Cách cài đặt Windows trên máy chủ KVM] (https://www.linuxtechi.com/install-windows-kvm-host/)
* [Cài đặt Windows trên KVM bằng libvirt] (https://access.redhat.com/documenta...ide/ch-installing_windows_on_kvm_with_libvirt)

### hashtags

* #DigitalOcean
* #KVM
* #các cửa sổ
* #Đám mây
* #Virtualization
=======================================
## How to Install Windows on DigitalOcean and Other KVM Platforms

DigitalOcean is a popular cloud hosting provider that offers a variety of virtual machine (VM) images, including Windows. However, installing Windows on a KVM-based VM can be tricky. In this guide, we will show you how to install Windows on DigitalOcean using a few simple steps.

### Prerequisites

Before you begin, you will need the following:

* A DigitalOcean account
* A credit card or other payment method
* A 64-bit Windows installation ISO file
* A KVM-based VM on DigitalOcean

### Steps

1. Log in to your DigitalOcean account and click the **Create Droplet** button.
2. Select the **Ubuntu 20.04 LTS** image and the **1GB** plan.
3. Click the **Create Droplet** button.
4. Once your droplet is created, click the **Connect** button.
5. In the terminal, run the following commands:

```
sudo apt update
sudo apt install qemu-kvm libvirt-bin
```

6. Download the Windows installation ISO file to your local computer.
7. scp the ISO file to your droplet:

```
scp <path-to-iso-file> <user>@<droplet-ip>:~/
```

8. Log in to your droplet using SSH:

```
ssh <user>@<droplet-ip>
```

9. Change to the directory where you saved the ISO file:

```
cd ~/
```

10. Mount the ISO file:

```
sudo mount -o loop <iso-file> /mnt
```

11. Start the installation:

```
sudo virt-install \
--name windows \
--ram 2048 \
--disk path=/dev/vda,size=10G \
--os-type windows \
--os-variant windows2019 \
--boot uefi \
--cdrom /mnt
```

12. Follow the on-screen instructions to complete the installation.

Once the installation is complete, you can connect to your Windows VM using RDP.

### Resources

* [DigitalOcean Documentation: Installing Windows on a KVM-based VM](https://www.digitalocean.com/docs/droplets/how-to-install-windows-on-a-kvm-based-vm/)
* [How to Install Windows on a KVM Host](https://www.linuxtechi.com/install-windows-kvm-host/)
* [Installing Windows on KVM with libvirt](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/virtualization_guide/ch-installing_windows_on_kvm_with_libvirt)

### Hashtags

* #DigitalOcean
* #KVM
* #Windows
* #cloud
* #Virtualization
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock