Problem with Native ISCIS for use with KVM hypervisor. Reports KVM at startup: vm: -drive file=iscsi://192.168.0.200/iqn.2012-06.storage:target0/10,if=none,id=drive-virtio0,aio=native,cache=none: iSCSI: Failed to connect to LUN : SENSE KEY:UNIT_ATTENTION(6) ASCQ:(null)(0x2901) Can run with the second or third attempt. After a successful run is no problem. This problem is very serious obstacle, as a result of migration does not work or autostart virtual machines (VM) after a reboot of the hypervisor. Environment: FreeBSD storage.oc.chics.ru 10.0-RELEASE-p3 FreeBSD 10.0-RELEASE-p3 #0: Tue May 13 18:31:10 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 How-To-Repeat: Add new LUN in /etc/ctl.conf, make 'service ctld reload'. Start KVM: kvm -drive 'file=iscsi://<IP>/<TARGET>/<LUN>' get error: Failed to connect to LUN : SENSE KEY:UNIT_ATTENTION(6) ASCQ:(null)(0x2901)
Over to maintainer(s).
I believe this is due to a bug in libiscsi, which is used by KVM. Maintainer was notified some time ago; are you running a latest version available?
*** Bug 190472 has been marked as a duplicate of this bug. ***
I'm using https://github.com/proxmox/libiscsi (1.9.0) version and have no problems with istgt (freebsd) or comstar (solaris).
A workaround for this libiscsi bug was committed to 11-CURRENT as r272040, and MFCed as r272203. Which is to say, it should be fixed in 10.1. Could you try 10.1-RC1 and see if the problem persists?
I updated the hypervisor and libiscsi to version 1.12.0 and problems solved (tested on 10.0-RELEASE and 10.1-RC2).
Thanks!
P.S. 10.0-RELEASE there was a problem. In version 10.1-RC2, the problem solved.