Hoping someone can help me with this one.
I'm using a NAS in which I have multiple targets. I need to connect Proxmox VM's to these multiple targets, each of which is using mutual CHAP authentication. That part is non-negotiable at the moment.
Since Proxmox has no facility for configuring CHAP (or any other advanced) settings for iSCSI portals/nodes/targets, I've had to do this configuration via iscsiadm in the shell. This part went off without a hitch -- all connections are good. I can get Proxmox to use these connections by subsequently enabling them in the GUI (but only after I've established the correct configuration via iscsiadm, as explained below...).
The problem is that Proxmox refuses to leave the configuration files alone. It seems that whenever the iSCSI targets are enabled in the Proxmox GUI, Proxmox will actively monitor connection status and then, in the case of a failure, overwrite my working configuration with a default configuration (thus killing individual session settings like CHAP, etc.). I have not found any way to keep the targets visible and usable by the VM's in Proxmox while turning off Proxmox's active overwriting of the open-iscsi configuration files.
So, there are multiple questions here:
I'm using a NAS in which I have multiple targets. I need to connect Proxmox VM's to these multiple targets, each of which is using mutual CHAP authentication. That part is non-negotiable at the moment.
Since Proxmox has no facility for configuring CHAP (or any other advanced) settings for iSCSI portals/nodes/targets, I've had to do this configuration via iscsiadm in the shell. This part went off without a hitch -- all connections are good. I can get Proxmox to use these connections by subsequently enabling them in the GUI (but only after I've established the correct configuration via iscsiadm, as explained below...).
The problem is that Proxmox refuses to leave the configuration files alone. It seems that whenever the iSCSI targets are enabled in the Proxmox GUI, Proxmox will actively monitor connection status and then, in the case of a failure, overwrite my working configuration with a default configuration (thus killing individual session settings like CHAP, etc.). I have not found any way to keep the targets visible and usable by the VM's in Proxmox while turning off Proxmox's active overwriting of the open-iscsi configuration files.
So, there are multiple questions here:
- Am I correct that Proxmox is doing this overwriting of configuration as part of some attempt to re-establish connection to broken iSCSI targets?
- If so, is there a way to disable that overwriting/active management of iSCSI configuration, such that it will only use whatever has been configured already in the config files and not touch them?
- If not, is there any other solution out there to get around this issue? The only other solution I can imagine is writing a cron job or similar that monitors the config files being overwritten, disables Proxmox iSCSI targets, rewrites the correct configuration, re-establishes all iSCSI sessions, and then re-enables Proxmox iSCSI targets. This would be a lot of work for something that seems like it should be an easy feature disablement in Proxmox, but if it's all I've got, I'll take it...