Iscsi disk attach to VM API command line

ajithen

New Member
Aug 5, 2020
3
0
1
39
I have tried to attach iscsi disk to KVM vm through command line, but its not getting sucessfull, If I add through UI its working.
Please let let me know which command and structure I can use it?


Storage: Iscsi-disk (Created through free nas)
Disk Image : CH 00 ID 0 LUN 0
 
pvesh create /storage --storage eeee --type lvm --base CH 00 ID 0 LUN 0 --vgname akakakak --voulme dd
qm set 111 -scsi2 NAME-iscsi-111
 
error during cfs-locked 'storage-ajith-iscsi-111' operation: can't allocate space in iscsi storage

While adding through UI, its working, PFA
 

Attachments

  • Screenshot_10.jpg
    Screenshot_10.jpg
    24.3 KB · Views: 16
  • Screenshot_11.jpg
    Screenshot_11.jpg
    13.1 KB · Views: 15