# Lần đầu Install Configuration for Proxmox

Chỉnh sữa file: **/etc/apt/sources.list**

```
nano /etc/apt/sources.list
```

```
deb http://ftp.debian.org/debian bookworm main contrib

deb http://ftp.debian.org/debian bookworm-updates main contrib

# security updates
deb http://security.debian.org bookworm-security main contrib

# not for production use
deb http://download.proxmox.com/debian buster pve-no-subscriptionOA

```

Chỉnh sửa file dành cho proxmox &gt;8.0: /etc/apt/sources.list.d/pve-no-enterprise.list

```
nano /etc/apt/sources.list.d/pve-no-enterprise.list
```

```
# not for production use
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
```

Kế tiếp comment out cái dòng enterprise update list ở file: /etc/apt/sources.list.d/pve-enterprise.list

```
nano /etc/apt/sources.list.d/pve-enterprise.list
```

```
#deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
```

Chạy các update sau:

```
apt-get update
apt dist-upgrade
```

nhấn y để chấp nhận update

sau đó reboot system.

```
reboot
```

IOMMU ([PCI Passthrough](https://pve.proxmox.com/wiki/PCI_Passthrough))

sửa file grub dành cho intel hay amd iommu:

```
nano /etc/default/grub
```

nếu đang xài amd thì sửa intel\_iommu thành **amd\_iommu**

```
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
```

save file lại và update grub

Sửa file /etc/modules

```
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

```

```
update-initramfs -u -k all
```

```
reboot
```

update DNS nameserver nếu đang xài pi hole.

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2023-11/scaled-1680-/PIWimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2023-11/PIWimage.png)

Kế tiếp: tạo cloud image