Iscsi disk attach to VM API command line

ajithen

New Member
Aug 5, 2020
3
0
1
38
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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!