path: root/qemu-options.hx
diff options
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2012-01-26 09:39:02 +1100
committerKevin Wolf <kwolf@redhat.com>2012-02-09 16:17:50 +0100
commitf9dadc9855ae1554a98c53a10a3a962859992865 (patch)
tree0caa488862f25a75658e28b0b01f636f5143ba29 /qemu-options.hx
parent71b58b82dac1e1dc5e08a005a14bbcafecbd9e2a (diff)
iSCSI: add configuration variables for iSCSI
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 If you use several different targets, you can also configure this on a per target basis by using a group name: [iscsi "iqn.target.name"] ... The configuration file can be read using -readconfig. Example : qemu-system-i386 -drive file=iscsi:// -readconfig iscsi.conf Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-options.hx')
1 files changed, 12 insertions, 4 deletions
diff --git a/qemu-options.hx b/qemu-options.hx
index f577cc8470..42d22aebf9 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -1829,24 +1829,32 @@ Syntax for specifying iSCSI LUNs is
Example (without authentication):
-qemu -cdrom iscsi:// \
---drive file=iscsi://
+qemu -iscsi initiator-name=iqn.2001-04.com.example:my-initiator \
+-cdrom iscsi:// \
+-drive file=iscsi://
@end example
Example (CHAP username/password via URL):
-qemu --drive file=iscsi://user%password@@
+qemu -drive file=iscsi://user%password@@
@end example
Example (CHAP username/password via environment variables):
-qemu --drive file=iscsi://
+qemu -drive file=iscsi://
@end example
iSCSI support is an optional feature of QEMU and only available when
compiled and linked against libiscsi.
+DEF("iscsi", HAS_ARG, QEMU_OPTION_iscsi,
+ "-iscsi [user=user][,password=password]\n"
+ " [,header-digest=CRC32C|CR32C-NONE|NONE-CRC32C|NONE\n"
+ " [,initiator-name=iqn]\n"
+ " iSCSI session parameters\n", QEMU_ARCH_ALL)
@item NBD
QEMU supports NBD (Network Block Devices) both using TCP protocol as well