Passthrough hdd ke guest VM windows di Proxmox VE

Bismillah ..

pertama stop VM windows nya , kemudian install lshw untuk mendetek id hdd nya

root@cloud8:~# apt install lshwReading package lists… Done
Building dependency tree
Reading state information… Done
The following package was automatically installed and is no longer required:
pve-kernel-5.4.114-1-pve
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
lshw
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 254 kB of archives.
After this operation, 781 kB of additional disk space will be used.
Get:1 http://ftp.debian.org/debian buster/main amd64 lshw amd64 02.18.85-0.1 [254 kB]
Fetched 254 kB in 0s (633 kB/s)
Selecting previously unselected package lshw.
(Reading database … 64720 files and directories currently installed.)
Preparing to unpack …/lshw_02.18.85-0.1_amd64.deb …
Unpacking lshw (02.18.85-0.1) …
Setting up lshw (02.18.85-0.1) …
Processing triggers for man-db (2.8.5-2) …
root@cloud8:~#

search id dari hdd nya , dengan menggunakan perintah lshw

root@cloud8:~# lshw

akan muncul semua list hardware , kita akan fokus pada hdd saja

*-disk:0
description: ATA Disk
product: SP-8 PRO 1TB
physical id: 0
bus info: scsi@1:0.0.0
logical name: /dev/sda
version: XKR
serial: 2105T1130A000051
size: 931GiB (1TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: ansiversion=5 guid=2797ff54-f22f-45dc-b5e6-1e43e6cfda7f logicalsectorsize=512 sectorsize=512
---------------------------------------------------
*-disk:1
description: ATA Disk
product: WDC WD1003FZEX-0
vendor: Western Digital
physical id: 1
bus info: scsi@3:0.0.0
logical name: /dev/sdb
version: 1A01
serial: WD-WCC6Y0SUX2HA
size: 931GiB (1TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: ansiversion=5 guid=37995a19-4ea0-4c5b-a4da-19c0cd75ceab logicalsectorsize=512 sectorsize=40

di kasus saya, saya memiliki 2 disk , dsik 0 ssd untuk sistem proxmox nya dan disk 1 yang akan saya passthrough ke vm windows nya , maka saya ambil id di bagian serial nya : serial: WD-WCC6Y0SUX2HA

selanjut nya kita akan cari full id nya dengan perintah ” ls -l /dev/disk/by-id/ |grep WD-WCC6Y0SUX2HA “

root@cloud8:~# ls -l /dev/disk/by-id/ |grep WD-WCC6Y0SUX2HA
lrwxrwxrwx 1 root root 9 Nov 25 20:57 ata-WDC_WD1003FZEX-00K3CA0_WD-WCC6Y0SUX2HA -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 25 20:57 ata-WDC_WD1003FZEX-00K3CA0_WD-WCC6Y0SUX2HA-part1 -> ../../sdb1
root@cloud8:~#

kemudian kita set untuk direct passthrough disk tersebut ke vm windows nya dengan perintah seperti berikut

root@cloud8:~# qm set 100 -scsi1 /dev/disk/by-id/ata-WDC_WD1003FZEX-00K3CA0_WD-WCC6Y0SUX2HA
update VM 100: -scsi1 /dev/disk/by-id/ata-WDC_WD1003FZEX-00K3CA0_WD-WCC6Y0SUX2HA
root@cloud8:~#

maka proxmox akan mengupdate settingan disk di id vm tersebut

step terahir , start vm windows nya kemudian create volume dan format disk nya

semoga bermanfaat

No Comments, Be The First!

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.