From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoXnO-0004oP-Fw for qemu-devel@nongnu.org; Sat, 21 Jan 2012 05:03:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoXnK-0002nQ-BT for qemu-devel@nongnu.org; Sat, 21 Jan 2012 05:03:38 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:47620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoXnK-0002nM-7V for qemu-devel@nongnu.org; Sat, 21 Jan 2012 05:03:34 -0500 Received: by iadk27 with SMTP id k27so2645340iad.4 for ; Sat, 21 Jan 2012 02:03:33 -0800 (PST) From: Ronnie Sahlberg Date: Sat, 21 Jan 2012 21:03:22 +1100 Message-Id: <1327140203-3165-1-git-send-email-ronniesahlberg@gmail.com> Subject: [Qemu-devel] [PATCH] Add configuration variables for iscsi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kwolf@redhat.com Kevin, List This is version 2 of the patch to add configuration variables for iSCSI. This version adds the feature to specify configuration blocks that apply to a specific target name, allowing qemu to use different settings if/when connecting one guest to multiple different iscsi targets. This patch adds configuration variables for iSCSI to set initiator-name to use when logging in to the target, which type of header-digest to negotiate with the target and username and password for CHAP authentication. This allows specifying a initiator-name either from the command line -iscsi initiator-name=iqn.2004-01.com.example:test or from a configuration file included with -readconfig [iscsi] initiator-name = iqn.2004-01.com.example:test header-digest = CRC32C|CRC32C-NONE|NONE-CRC32C|NONE user = CHAP username password = CHAP password In the configuration file it is also possible to set a target specific configuratyion block using the header [iscsi "iqn.target.name"] When a iscsi session is initialized, it will first try to use a configuration section that matches the target name. If no such block is found, it will fall-back to try the default [iscsi] section instead. regards ronnie sahlberg