---
# System prepended metadata

title: Untitled
tags: [VM]

---

###### tags: `VM`
HW02-1072254-王亭皓

:::info
1. 緣由
    題目：在ubuntu實體機安裝ubuntu VM的流程報告
2. 系統簡介(含硬體說明) 
    作業系統:ubuntu 20.04 lts桌面版
    
3. 安裝過程
    
   
```gherkin=
egrep -c '(vmx|svm)' /proc/cpuinfo
```
![](https://i.imgur.com/gR5Kj7b.png)
    確認輸出非0即可安裝kvm
```gherkin=2
sudo kvm-ok
```
![](https://i.imgur.com/09yhFUE.png)
確認系統可使用kvm
```gherkin=3
sudo apt install cpu-checker
sudo apt update
```
![](https://i.imgur.com/fjicxYl.png)

![](https://i.imgur.com/oNlymy8.png)

```gherkin=5
sudo apt install qemu-kvm libvirt-daemon-system 
```
![](https://i.imgur.com/yf9p4ux.png)

```gherkin=6
sudo apt install libvirt-clients bridge-utils
```
![](https://i.imgur.com/B1LP1Mk.png)

```gherkin=7
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
```
```gherkin=8
sudo adduser ‘username’ libvirt
sudo adduser ‘username’ kvm
virsh list –a
```
![](https://i.imgur.com/YUokkZT.png)

![](https://i.imgur.com/BWD9fk4.png)

![](https://i.imgur.com/WiqbFDW.png)
新增使用者並確認


```gherkin=11
sudo systemctl status libvirtd
sudo apt install virt-manager
```
依序新增虛擬機

![](https://i.imgur.com/xOXoWgo.png)

![](https://i.imgur.com/kC6aizN.png)

![](https://i.imgur.com/7t1tIzN.png)

![](https://i.imgur.com/NdmVelx.png)

![](https://i.imgur.com/eCUtrNS.png)

![](https://i.imgur.com/cifLJyR.png)

![](https://i.imgur.com/wgagcr6.png)

![](https://i.imgur.com/Ds85PoY.png)

![](https://i.imgur.com/c9gX3y6.png)

![](https://i.imgur.com/pWO6D48.png)

![](https://i.imgur.com/aa1S2D1.png)

![](https://i.imgur.com/dN3Q6j0.png)

![](https://i.imgur.com/LTACrKA.png)






4. 結論
    整體來說,安裝過程沒什麼問題



:::
