VirtualBox

16 年 前 建立

15 年 前 結束

#4197 closed defect (invalid)

VirtualBox not working with FreeNAS iSCSI targets

回報者: hb 負責人:
元件: virtual disk 版本: VirtualBox 2.2.4
關鍵字: iSCSI target FreeNAS 副本:
Guest type: other Host type: Linux

描述

I'm using an Ubuntu 8.10 AMD64 host here running VirtualBox 2.2.2 r46594.

I've set up an iSCSI target using FreeNAS with the following version:

0.69.1 Omnius (revision 4554) built on Sat Apr 18 23:20:57 UTC 2009

I've added the iSCSI target I generated to the available VBox medias with the following command: VBoxManage addiscsidisk --server 192.168.0.166 --target iqn.1994-04.org.netbsd.iscsi-target:target0

The target was correctly added (at least VBox doesn`t report any issues). Unfortunately VBox reports the iSCSI target always as not ready / unaccessable.

When I attach the target to a VM and start the machine with an ISO attached for guest OS installation the following message appears: Medium '192.168.0.166|iqn.1994-04.org.netbsd.iscsi-target:target0' is not accessible. Could not open the hard disk '192.168.0.166|iqn.1994-04.org.netbsd.iscsi-target:target0'. VD: error opening image file '192.168.0.166|iqn.1994-04.org.netbsd.iscsi-target:target0' (VERR_TIMEOUT).

Fehlercode: NS_ERROR_FAILURE (0x80004005) Komponente: Machine Interface: IMachine {13420cbb-175a-4456-85d0-301126dfdec7}

I can at least confirm that iSCSI targets generated with FreeNAS work fine with a WinXP host and the Microsoft iSCSI initiator. I can perfectly access those targets, format the "disk" and assign them to the host.

On the other hand I could use the VBox iSCSI feature by setting up an iSCSI target with the userspace implementation on my Ubuntu host. Strange....

附加檔案 (1)

patch-statsn (258 位元組 ) - 16 年 前, 由 403 新增

下載所有附檔: .zip

更動歷史 (5)

comment:1 16 年 前403 編輯

This is a bug in netbsd-iscsi, see the attached patch.

16 年 前403 編輯

附檔: 新增 patch-statsn

comment:2 16 年 前hb 編輯

@403: Thanks for pointing out. So it´s actually a problem of the FreeNAS iSCSI target implementation. Could you please elaborate the problem a bit more and provide a bit more information on your patch (e.g. what you changed because of what reason). I would like to forward this to the FreeNAS developers. I think FreeNAS is nice option for building a NAS on budget and for me it looks more stable than OpenFiler.

TIA, HolgerB

comment:3 16 年 前403 編輯

It seems that FreeNAS 0.7 is going to use another iscsi target implementation -- istgt so they might not care for netbsd-iscsi. The problem is that the target sets the StatSN field of the second login response to an unexpected value which confuses virtualbox. The reason is sess->StatSN not being in sync with the StatSN sent in the first login response and a simple fix is in the patch.

comment:4 15 年 前aeichner 編輯

狀態: newclosed
處理結果: invalid
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette