如果使用 PVE 的 CT,版本需要選擇 12.X
apt update && apt install -y tgt lvm2
systemctl enable tgt && systemctl start tgt
dd if=/dev/zero of=/root/target.img bs=1G count=0 seek=512
nano /etc/tgt/conf.d/target.conf
內容如下
<target iqn.2026-01.jsc.idv.me:target> backing-store /root/target.img </target>
systemctl restart tgt && tgt-admin --show
Deleting the wiki page "Service:TGT" cannot be undone. Continue?