Re: [one-users] Errors, problems when creating VM using OpenNebula 3.6.0 in Ubuntu 12.04 with iSCSI datastore

2013-12-18 Thread Jaime Melis
Hi,

you should never use SOURCE but PATH. Can you try again with:

NAME = Winxp-iscsi
PATH = /var/lib/images/win-xp.qcow2
TYPE = OS
PUBLIC = YES

Cheers,
Jaime


On Wed, Dec 11, 2013 at 11:10 PM, Qiubo Su (David Su) qiub...@gmail.comwrote:

 Dear Jaime (and the OpenNebula Community members),

 Thanks for your reply.

 I will upgrade to OpenNebula 3.8.1/5 to see how it will go.

 1) when run oneimage show 0, it should have below output:

 ..


 SOURCE: iqn.2013-12.iSCSIHost:192.168.1.7.vg-one.lv-one-13
 PATH: /var/lib/images/win-xp.qcow2

 ..

 but it have below output:

 ..

 SOURCE: /var/lib/images/win-xp.qcow2.

 ..

 For the above result, the image template file winxp.img is defined as
 below:

 NAME = Winxp-iscsi
 SOURCE = /var/lib/images/win-xp.qcow2
 TYPE = OS
 PUBLIC = YES

 Image creation command is oneimage create winxp.img -d 100. 100 is the
 ID of in iSCSI Datastore.

 2) In the winxp.img, change the SOURCE to PATH, create the image again,
 then when run oneimage show 0, the result is different, as shown below:

 ..

 SOURCE:
 PATH: /var/lib/images/win-xp.qcow2

 ..

 The error message is Error copying image in the datastore: Error
 registering 192.168.1.1:/dev/vg-one/lv-one-3

 This show it is still incorrect.

 3) Will upgrade the OpenNebula to see the difference. It is much
 appreciated if you can email me the correct information on how to Create a
 winxp VM using OpenNebula 3.x.x in Ubuntu 12.04 with iSCSI datastore.

 Thanks kindly,
 Q.S.

 On Thu, Dec 12, 2013 at 6:43 AM, Jaime Melis jme...@c12g.com wrote:

 Hi,

 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.

 OpenNebula 3.6.0 should be definitetly upgraded to newer versions.

 Regarding your specific problem, can you please detail what command and
 image file did you use to create the image?

 cheers,
 Jaime


 On Wed, Dec 4, 2013 at 7:25 AM, Qiubo Su (David Su) qiub...@gmail.comwrote:

 Dear OpenNebula Community,

 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).

 The required setup, configuration for Front-end, NodeServer and
 iSCSIHost looks fine.

 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

 SOURCE: iqn.2013-12.iSCSIHost:192.168.1.7.vg-one.lv-one-13
 PATH: /var/lib/images/win-xp.qcow2

 while only can see SOURCE: /var/lib/images/win-xp.qcow2.

 the opennebula 3.6.0 used was downloaded in more than one year ago. is
 it the correct version of opennebula to use?

 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:

 Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is ACTIVE.
 Wed Dec  4 17:38:56 2013 [LCM][I]: New VM state is PROLOG.
 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
 Wed Dec  4 17:38:56 2013 [TM][E]: clone: Command set -e
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # get size
 Wed Dec  4 17:38:56 2013 [TM][I]: SIZE=$(sudo lvs --noheadings -o
 lv_size /dev//var/lib/image/win-xp-2/qcow2)
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # create lv
 Wed Dec  4 17:38:56 2013 [TM][I]: sudo lvcreate -L${SIZE}
 /var/lib/image/win-xp-2 -n qcow2-0
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # clone lv with dd
 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
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # new iscsi target
 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;}')
 Wed Dec  4 17:38:56 2013 [TM][I]:
 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
 Wed Dec  4 17:38:56 2013 [TM][I]: sudo tgtadm --lld iscsi --op bind
 --mode target --tid $TID -I ALL
 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
 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
 Wed Dec  4 17:38:56 2013 [TM][E]: Error cloning
 NodeServer:/dev//var/lib/image/win-xp-2/qcow2-0
 Wed Dec 

Re: [one-users] Errors, problems when creating VM using OpenNebula 3.6.0 in Ubuntu 12.04 with iSCSI datastore

2013-12-11 Thread Jaime Melis
Hi,

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.

OpenNebula 3.6.0 should be definitetly upgraded to newer versions.

Regarding your specific problem, can you please detail what command and
image file did you use to create the image?

cheers,
Jaime


On Wed, Dec 4, 2013 at 7:25 AM, Qiubo Su (David Su) qiub...@gmail.comwrote:

 Dear OpenNebula Community,

 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).

 The required setup, configuration for Front-end, NodeServer and iSCSIHost
 looks fine.

 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

 SOURCE: iqn.2013-12.iSCSIHost:192.168.1.7.vg-one.lv-one-13
 PATH: /var/lib/images/win-xp.qcow2

 while only can see SOURCE: /var/lib/images/win-xp.qcow2.

 the opennebula 3.6.0 used was downloaded in more than one year ago. is it
 the correct version of opennebula to use?

 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:

 Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is ACTIVE.
 Wed Dec  4 17:38:56 2013 [LCM][I]: New VM state is PROLOG.
 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
 Wed Dec  4 17:38:56 2013 [TM][E]: clone: Command set -e
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # get size
 Wed Dec  4 17:38:56 2013 [TM][I]: SIZE=$(sudo lvs --noheadings -o lv_size
 /dev//var/lib/image/win-xp-2/qcow2)
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # create lv
 Wed Dec  4 17:38:56 2013 [TM][I]: sudo lvcreate -L${SIZE}
 /var/lib/image/win-xp-2 -n qcow2-0
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # clone lv with dd
 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
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # new iscsi target
 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;}')
 Wed Dec  4 17:38:56 2013 [TM][I]:
 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
 Wed Dec  4 17:38:56 2013 [TM][I]: sudo tgtadm --lld iscsi --op bind --mode
 target --tid $TID -I ALL
 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
 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
 Wed Dec  4 17:38:56 2013 [TM][E]: Error cloning
 NodeServer:/dev//var/lib/image/win-xp-2/qcow2-0
 Wed Dec  4 17:38:56 2013 [TM][I]: ExitCode: 255
 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
 Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is FAILED

 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.

 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.

 It is much appreciated if anyone can help with the above.

 Thanks kindly,
 Q.S.

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




-- 
Jaime Melis
C12G Labs - Flexible Enterprise Cloud Made Simple
http://www.c12g.com | jme...@c12g.com

--

Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
To and cc box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and

Re: [one-users] Errors, problems when creating VM using OpenNebula 3.6.0 in Ubuntu 12.04 with iSCSI datastore

2013-12-11 Thread Qiubo Su (David Su)
Dear Jaime (and the OpenNebula Community members),

Thanks for your reply.

I will upgrade to OpenNebula 3.8.1/5 to see how it will go.

1) when run oneimage show 0, it should have below output:

..

SOURCE: iqn.2013-12.iSCSIHost:192.168.1.7.vg-one.lv-one-13
PATH: /var/lib/images/win-xp.qcow2

..

but it have below output:

..

SOURCE: /var/lib/images/win-xp.qcow2.

..

For the above result, the image template file winxp.img is defined as below:

NAME = Winxp-iscsi
SOURCE = /var/lib/images/win-xp.qcow2
TYPE = OS
PUBLIC = YES

Image creation command is oneimage create winxp.img -d 100. 100 is the ID
of in iSCSI Datastore.

2) In the winxp.img, change the SOURCE to PATH, create the image again,
then when run oneimage show 0, the result is different, as shown below:

..

SOURCE:
PATH: /var/lib/images/win-xp.qcow2

..

The error message is Error copying image in the datastore: Error
registering 192.168.1.1:/dev/vg-one/lv-one-3

This show it is still incorrect.

3) Will upgrade the OpenNebula to see the difference. It is much
appreciated if you can email me the correct information on how to Create a
winxp VM using OpenNebula 3.x.x in Ubuntu 12.04 with iSCSI datastore.

Thanks kindly,
Q.S.

On Thu, Dec 12, 2013 at 6:43 AM, Jaime Melis jme...@c12g.com wrote:

 Hi,

 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.

 OpenNebula 3.6.0 should be definitetly upgraded to newer versions.

 Regarding your specific problem, can you please detail what command and
 image file did you use to create the image?

 cheers,
 Jaime


 On Wed, Dec 4, 2013 at 7:25 AM, Qiubo Su (David Su) qiub...@gmail.comwrote:

 Dear OpenNebula Community,

 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).

 The required setup, configuration for Front-end, NodeServer and iSCSIHost
 looks fine.

 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

 SOURCE: iqn.2013-12.iSCSIHost:192.168.1.7.vg-one.lv-one-13
 PATH: /var/lib/images/win-xp.qcow2

 while only can see SOURCE: /var/lib/images/win-xp.qcow2.

 the opennebula 3.6.0 used was downloaded in more than one year ago. is it
 the correct version of opennebula to use?

 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:

 Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is ACTIVE.
 Wed Dec  4 17:38:56 2013 [LCM][I]: New VM state is PROLOG.
 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
 Wed Dec  4 17:38:56 2013 [TM][E]: clone: Command set -e
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # get size
 Wed Dec  4 17:38:56 2013 [TM][I]: SIZE=$(sudo lvs --noheadings -o lv_size
 /dev//var/lib/image/win-xp-2/qcow2)
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # create lv
 Wed Dec  4 17:38:56 2013 [TM][I]: sudo lvcreate -L${SIZE}
 /var/lib/image/win-xp-2 -n qcow2-0
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # clone lv with dd
 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
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # new iscsi target
 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;}')
 Wed Dec  4 17:38:56 2013 [TM][I]:
 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
 Wed Dec  4 17:38:56 2013 [TM][I]: sudo tgtadm --lld iscsi --op bind
 --mode target --tid $TID -I ALL
 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
 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
 Wed Dec  4 17:38:56 2013 [TM][E]: Error cloning
 NodeServer:/dev//var/lib/image/win-xp-2/qcow2-0
 Wed Dec  4 17:38:56 2013 [TM][I]: ExitCode: 255
 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
 Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is FAILED

 3) the iSCSI INITIATOR is 

Re: [one-users] Errors, problems when creating VM using OpenNebula 3.6.0 in Ubuntu 12.04 with iSCSI datastore

2013-12-04 Thread Qiubo Su (David Su)
Dear OpenNebula Community,

Below is the email sent to you about Errors, problems when creating VM
using OpenNebula 3.6.0 in Ubuntu 12.04 with iSCSI datastore.

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.

Just want to clarify the environment.

Thanks kindly,
Q.S.

On Wed, Dec 4, 2013 at 7:25 PM, Qiubo Su (David Su) qiub...@gmail.comwrote:

 Dear OpenNebula Community,

 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).

 The required setup, configuration for Front-end, NodeServer and iSCSIHost
 looks fine.

 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

 SOURCE: iqn.2013-12.iSCSIHost:192.168.1.7.vg-one.lv-one-13
 PATH: /var/lib/images/win-xp.qcow2

 while only can see SOURCE: /var/lib/images/win-xp.qcow2.

 the opennebula 3.6.0 used was downloaded in more than one year ago. is it
 the correct version of opennebula to use?

 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:

 Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is ACTIVE.
 Wed Dec  4 17:38:56 2013 [LCM][I]: New VM state is PROLOG.
 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
 Wed Dec  4 17:38:56 2013 [TM][E]: clone: Command set -e
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # get size
 Wed Dec  4 17:38:56 2013 [TM][I]: SIZE=$(sudo lvs --noheadings -o lv_size
 /dev//var/lib/image/win-xp-2/qcow2)
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # create lv
 Wed Dec  4 17:38:56 2013 [TM][I]: sudo lvcreate -L${SIZE}
 /var/lib/image/win-xp-2 -n qcow2-0
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # clone lv with dd
 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
 Wed Dec  4 17:38:56 2013 [TM][I]:
 Wed Dec  4 17:38:56 2013 [TM][I]: # new iscsi target
 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;}')
 Wed Dec  4 17:38:56 2013 [TM][I]:
 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
 Wed Dec  4 17:38:56 2013 [TM][I]: sudo tgtadm --lld iscsi --op bind --mode
 target --tid $TID -I ALL
 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
 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
 Wed Dec  4 17:38:56 2013 [TM][E]: Error cloning
 NodeServer:/dev//var/lib/image/win-xp-2/qcow2-0
 Wed Dec  4 17:38:56 2013 [TM][I]: ExitCode: 255
 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
 Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is FAILED

 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.

 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.

 It is much appreciated if anyone can help with the above.

 Thanks kindly,
 Q.S.

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Errors, problems when creating VM using OpenNebula 3.6.0 in Ubuntu 12.04 with iSCSI datastore

2013-12-03 Thread Qiubo Su (David Su)
Dear OpenNebula Community,

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).

The required setup, configuration for Front-end, NodeServer and iSCSIHost
looks fine.

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

SOURCE: iqn.2013-12.iSCSIHost:192.168.1.7.vg-one.lv-one-13
PATH: /var/lib/images/win-xp.qcow2

while only can see SOURCE: /var/lib/images/win-xp.qcow2.

the opennebula 3.6.0 used was downloaded in more than one year ago. is it
the correct version of opennebula to use?

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:

Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is ACTIVE.
Wed Dec  4 17:38:56 2013 [LCM][I]: New VM state is PROLOG.
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
Wed Dec  4 17:38:56 2013 [TM][E]: clone: Command set -e
Wed Dec  4 17:38:56 2013 [TM][I]:
Wed Dec  4 17:38:56 2013 [TM][I]: # get size
Wed Dec  4 17:38:56 2013 [TM][I]: SIZE=$(sudo lvs --noheadings -o lv_size
/dev//var/lib/image/win-xp-2/qcow2)
Wed Dec  4 17:38:56 2013 [TM][I]:
Wed Dec  4 17:38:56 2013 [TM][I]: # create lv
Wed Dec  4 17:38:56 2013 [TM][I]: sudo lvcreate -L${SIZE}
/var/lib/image/win-xp-2 -n qcow2-0
Wed Dec  4 17:38:56 2013 [TM][I]:
Wed Dec  4 17:38:56 2013 [TM][I]: # clone lv with dd
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
Wed Dec  4 17:38:56 2013 [TM][I]:
Wed Dec  4 17:38:56 2013 [TM][I]: # new iscsi target
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;}')
Wed Dec  4 17:38:56 2013 [TM][I]:
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
Wed Dec  4 17:38:56 2013 [TM][I]: sudo tgtadm --lld iscsi --op bind --mode
target --tid $TID -I ALL
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
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
Wed Dec  4 17:38:56 2013 [TM][E]: Error cloning
NodeServer:/dev//var/lib/image/win-xp-2/qcow2-0
Wed Dec  4 17:38:56 2013 [TM][I]: ExitCode: 255
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
Wed Dec  4 17:38:56 2013 [DiM][I]: New VM state is FAILED

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.

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.

It is much appreciated if anyone can help with the above.

Thanks kindly,
Q.S.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org