<div dir="ltr">Hi,<div><br></div><div>OpenNebula 4.4 which has been just released has deprectated iSCSI. The main reason is that the tgt iSCSI daemon is not very flexible and we recommend using other storage mechanisms instead.</div>
<div><br></div><div>OpenNebula 3.6.0 should be definitetly upgraded to newer versions.</div><div><br></div><div>Regarding your specific problem, can you please detail what command and image file did you use to create the image?</div>
<div><br></div><div>cheers,<br>Jaime</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 4, 2013 at 7:25 AM, Qiubo Su (David Su) <span dir="ltr"><<a href="mailto:qiubosu@gmail.com" target="_blank">qiubosu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Dear OpenNebula Community,<br><br></div><div>1) To create VM using OpenNebula 3.6.0 in Ubuntu 12.04 with iSCSI datastore, I create Front-end, NodeServer and iSCSIHost (an iSCSI target VM created within the NodeServer. The IP of iSCSIHost is 192.168.1.7).<br>
</div>
<br></div><div>The required setup, configuration for Front-end, NodeServer and iSCSIHost looks fine.<br><br></div><div>The host,
image, vnet and datastore creation under NodeServer are ok (except of the VM creation in below 2) ), but when "oneimage show 0", can't see output of<div>
<br>"SOURCE: iqn.2013-12.iSCSIHost:192.168.1.7.vg-one.lv-one-13<br>PATH: /var/lib/images/win-xp.qcow2"<br><br></div></div><div>while
only can see "SOURCE: /var/lib/images/win-xp.qcow2". <br><br>the
opennebula 3.6.0 used was downloaded in more than one year ago. is it the correct version of opennebula to use?<br>
<br></div><div></div><div>2) the VM creation is failed and got "error executing image transfer script: error cloning NodeServer:/dev//var/lib/image/win-xp-2/qcow2-0". Below is the vm.log for this VM creation:<br>
<br>Wed Dec 4 17:38:56 2013 [DiM][I]: New VM state is ACTIVE.<br>
Wed Dec 4 17:38:56 2013 [LCM][I]: New VM state is PROLOG.<br>Wed Dec 4 17:38:56 2013 [TM][I]: Command execution fail: /var/lib/one/var/remotes/tm/iscsi/clone Front-end:/var/lib/image/win-xp-2.qcow2 NodeServer:/var/lib/one/var//datastores/0/0/disk.0 0 101<br>
Wed Dec 4 17:38:56 2013 [TM][E]: clone: Command " set -e<br>Wed Dec 4 17:38:56 2013 [TM][I]: <br>Wed Dec 4 17:38:56 2013 [TM][I]: # get size<br>Wed Dec 4 17:38:56 2013 [TM][I]: SIZE=$(sudo lvs --noheadings -o lv_size "/dev//var/lib/image/win-xp-2/qcow2")<br>
Wed Dec 4 17:38:56 2013 [TM][I]: <br>Wed Dec 4 17:38:56 2013 [TM][I]: # create lv<br>Wed Dec 4 17:38:56 2013 [TM][I]: sudo lvcreate -L${SIZE} /var/lib/image/win-xp-2 -n qcow2-0<br>Wed Dec 4 17:38:56 2013 [TM][I]: <br>
Wed Dec 4 17:38:56 2013 [TM][I]: # clone lv with dd<br>Wed Dec 4 17:38:56 2013 [TM][I]: sudo dd if=/dev//var/lib/image/win-xp-2/qcow2 of=/dev//var/lib/image/win-xp-2/qcow2-0 bs=64k<br>Wed Dec 4 17:38:56 2013 [TM][I]: <br>
Wed Dec 4 17:38:56 2013 [TM][I]: # new iscsi target<br>Wed Dec 4
17:38:56 2013 [TM][I]: TID=$(sudo tgtadm --lld iscsi --op show --mode
target | grep "Target" | tail -n 1 | awk
'{split($2,tmp,":"); print tmp[1]+1;}')<br>
Wed Dec 4 17:38:56 2013 [TM][I]: <br>Wed Dec 4 17:38:56 2013 [TM][I]:
sudo tgtadm --lld iscsi --op new --mode target --tid $TID --targetname
Front-end:/var/lib/image/win-xp-2.qcow2-0<br>Wed Dec 4 17:38:56 2013 [TM][I]: sudo tgtadm --lld iscsi --op bind --mode target --tid $TID -I ALL<br>
Wed Dec 4 17:38:56 2013 [TM][I]: sudo tgtadm --lld iscsi --op new
--mode logicalunit --tid $TID --lun 1 --backing-store
/dev//var/lib/image/win-xp-2/qcow2-0<br>Wed Dec 4 17:38:56 2013
[TM][I]: sudo tgt-admin --dump |sudo tee /etc/tgt/targets.conf >&
/dev/null" failed: ssh: Could not resolve hostname
/var/lib/image/win-xp-2.qcow2: Name or service not known<br>
Wed Dec 4 17:38:56 2013 [TM][E]: Error cloning NodeServer:/dev//var/lib/image/win-xp-2/qcow2-0<br>Wed Dec 4 17:38:56 2013 [TM][I]: ExitCode: 255<br>Wed Dec 4 17:38:56 2013 [TM][E]: Error executing image transfer script: Error cloning NodeServer:/dev//var/lib/image/win-xp-2/qcow2-0<br>
Wed Dec 4 17:38:56 2013 [DiM][I]: New VM state is FAILED<br></div><div><br></div>3)
the iSCSI INITIATOR is only installed in the NodeServer. the tgt (for tgt admin) is only installed in the
iSCSIHost, so the /etc/tgt/targets.conf is only in
the iSCSIHost.<br>
<br></div>From the result, it doesn't look like the Front-end and
NodeServer can well communicate with the iSCSIHost, can access the iSCSI storage partition created under the iSCSIHost target.<br><br></div></div>It is much appreciated if anyone can help with the above.<br><br></div>Thanks kindly,<br>
Q.S.<div><div><img></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Jaime Melis<br>C12G Labs - Flexible Enterprise Cloud Made Simple<br><a href="http://www.c12g.com" target="_blank">http://www.c12g.com</a> | <a href="mailto:jmelis@c12g.com" target="_blank">jmelis@c12g.com</a><br>
<div><br></div><div>--</div><div><br></div><div>Confidentiality Warning: The information contained in this e-mail and</div><div>any accompanying documents, unless otherwise expressly indicated, is</div><div>confidential and privileged, and is intended solely for the person</div>
<div>and/or entity to whom it is addressed (i.e. those identified in the</div><div>"To" and "cc" box). They are the property of C12G Labs S.L..</div><div>Unauthorized distribution, review, use, disclosure, or copying of this</div>
<div>communication, or any part thereof, is strictly prohibited and may be</div><div>unlawful. If you have received this e-mail in error, please notify us</div><div>immediately by e-mail at <a href="mailto:abuse@c12g.com" target="_blank">abuse@c12g.com</a> and delete the e-mail and</div>
<div>attachments and any copy from your system. C12G's thanks you for your</div><div>cooperation.</div></div>