<div dir="ltr"><div><div><div><div><div>Dear OpenNebula Community,<br><br></div>Below is the email sent to you about "<span id=":2nb" class="" tabindex="-1">Errors, problems when "creating VM using OpenNebula 3.6.0 in Ubuntu 12.04 with iSCSI datastore"</span>".<br>
<br></div>The Front-end isn't a physical machine, while a VM created under a physical machine. The NodeServer is another physical machine and the iSCSIHost is a VM created under this physical machine.<br><br></div>Just want to clarify the environment.<br>
<br></div>Thanks kindly,<br></div>Q.S.<br><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 4, 2013 at 7:25 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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 src="https://mail.google.com/mail/images/cleardot.gif"></div></div></div>
</blockquote></div><br></div></div></div></div></div></div></div></div>