[one-users] VM in Opennebula for OpenVZ failed

Catalina Quinde catalinaquinde at gmail.com
Tue Nov 26 09:14:08 PST 2013


Hi, friends



- When I deploy VM in Opennebula to OpenVZ the status VM is BOOT for long
> time, and then the status changes FAILED, the log file is very large, so
> attached:
>
> -Vzctl version is 4.6

>
> - This is the content of /var/log/vzctl.log file for this day and time
>
> 2013-11-24T21:45:21-0500 vzctl : Setting CPU units: 1000
> 2013-11-24T21:45:21-0500 vzctl : WARNING: Settings were not saved to
> config and will be lost after CT restart (use --save flag)
> 2013-11-24T21:45:22-0500 vzeventd : Started
> 2013-11-24T22:05:12-0500 vzctl : CT 1056 : Creating container private area
> (debian)
> 2013-11-24T22:14:57-0500 vzctl : CT 1056 : Destroying container private
> area: /var/lib/one/datastores/104/56/private
> 2013-11-24T22:14:57-0500 vzctl : CT 1056 : Creation of container private
> area failed
>
> - I created previously a VM in openvz with id 101 and this VM I'm
> deploying in opennebula for openvz, this MV is destroyed now before VM
> deploy in opennebula.
>
> Thanks very much for reply and help me please.
>
> Regards, Caty.
>
>
>
>
>
>>
>>> 2013/11/21 Nikita Balashov <balashov.nikita at gmail.com>
>>>
>>>> Check your "vzctl --version", please. It seems to me that you are using
>>>> some old openvz version. I'm running vzctl version 4.6, so try updating if
>>>> yours is older.
>>>>
>>>> Regards,
>>>>  Nikita
>>>>
>>>>
>>>> 2013/11/21 Catalina Quinde <catalinaquinde at gmail.com>
>>>>
>>>>> Thanks for reply Nikita,
>>>>>
>>>>> I update whith hg, now, the log files contains:
>>>>>
>>>>> oneadmin at ubuntuOpNeb:~$ cat /var/log/one/52.log
>>>>> Thu Nov 21 04:58:04 2013 [DiM][I]: New VM state is ACTIVE.
>>>>> Thu Nov 21 04:58:04 2013 [LCM][I]: New VM state is PROLOG.
>>>>> Thu Nov 21 04:58:48 2013 [LCM][I]: New VM state is BOOT
>>>>> Thu Nov 21 04:58:48 2013 [VMM][I]: Generating deployment file:
>>>>> /var/lib/one/vms/52/deployment.0
>>>>> Thu Nov 21 04:58:48 2013 [VMM][I]: ExitCode: 0
>>>>> Thu Nov 21 04:58:48 2013 [VMM][I]: Successfully execute network driver
>>>>> operation: pre.
>>>>> Thu Nov 21 04:59:00 2013 [VMM][I]: Command execution fail: cat << EOT
>>>>> | /var/tmp/one/vmm/ovz/deploy '/var/lib/one/datastores/104/52/deployment.0'
>>>>> 'ubuntu' 52 ubuntu
>>>>> Thu Nov 21 04:59:00 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv
>>>>> "/var/lib/vz/template/cache/debian.tar.gz"
>>>>> "/var/lib/vz/template/cache/debian.tar.gz.1385027940" 2> /dev/null; true".
>>>>> Thu Nov 21 04:59:00 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln
>>>>> -sf "/var/lib/one/datastores/104/52/disk.0"
>>>>> "/var/lib/vz/template/cache/debian.tar.gz"".
>>>>> Thu Nov 21 04:59:00 2013 [VMM][E]: deploy: Command "/usr/bin/sudo
>>>>> /usr/sbin/vzctl create 1052 --layout simfs --ostemplate "debian" --private
>>>>> "/var/lib/one/datastores/104/52/private" --root
>>>>> "/var/lib/one/datastores/104/52/root"" failed.
>>>>> Thu Nov 21 04:59:00 2013 [VMM][E]: deploy: /usr/sbin/vzctl:
>>>>> unrecognized option '--layout'
>>>>> Thu Nov 21 04:59:00 2013 [VMM][E]: /usr/sbin/vzctl: unrecognized
>>>>> option '--layout'
>>>>> Thu Nov 21 04:59:00 2013 [VMM][E]:
>>>>> Thu Nov 21 04:59:00 2013 [VMM][I]: ExitCode: 21
>>>>> Thu Nov 21 04:59:00 2013 [VMM][I]: Failed to execute virtualization
>>>>> driver operation: deploy.
>>>>> Thu Nov 21 04:59:00 2013 [VMM][E]: Error deploying virtual machine:
>>>>> /usr/sbin/vzctl: unrecognized option '--layout'
>>>>> Thu Nov 21 04:59:01 2013 [DiM][I]: New VM state is FAILED
>>>>>
>>>>> I think this related datastores, my datastores location are in
>>>>> frontend node in /var/lib/one/datastores in the mail queue is this mentioned,
>>>>> because opennebula node works with four diferentes hypervisors, in
>>>>> oned.conf file DATASTORE_LOCATION = /var/lib/one/datastores, Is this error?
>>>>> How resolved it?
>>>>>
>>>>> Regards, Caty
>>>>>
>>>>>
>>>>> 2013/11/21 Nikita Balashov <balashov.nikita at gmail.com>
>>>>>
>>>>>> Hi Caty.
>>>>>>
>>>>>> deployment file looks fine, but the driver can't find ostemplate
>>>>>> variable in it. Have you installed the proper driver version, I mean have
>>>>>> you done hg update main-4.2 during install? You can also
>>>>>> check ONE_PATH/remotes/vmm/ovz/deploy file on your frontend and search for
>>>>>> string "OSTEMPLATE" in it. If you are using the proper version, then there
>>>>>> should be line "doc.elements.each('VM/USER_TEMPLATE/OSTEMPLATE')" in that
>>>>>> file. In case you are using the old driver, the line would
>>>>>> be "doc.elements.each('TEMPLATE/OSTEMPLATE') do |ost|"
>>>>>>
>>>>>> Regards,
>>>>>> Nikita
>>>>>>
>>>>>>
>>>>>> 2013/11/21 Catalina Quinde <catalinaquinde at gmail.com>
>>>>>>
>>>>>>>
>>>>>>> Hi, thanks for reply Nikita,
>>>>>>>
>>>>>>> - Datastore 104 contains:
>>>>>>>
>>>>>>> oneadmin at ubuntuOpNeb:~$ ls /var/lib/one/datastores/104/51
>>>>>>> deployment.0  disk.0  disk.1  disk.1.iso
>>>>>>>
>>>>>>> disk.0 file is in this folder.
>>>>>>>
>>>>>>> - deployment.0 file contains:
>>>>>>>
>>>>>>> oneadmin at ubuntuOpNeb:~$ cat
>>>>>>> /var/lib/one/datastores/104/51/deployment.0
>>>>>>> <VM><ID>51</ID><UID>0</UID><GID>0</GID><UNAME>oneadmin</UNAME><GNAME>oneadmin</GNAME><NAME>VMuOpenVZ</NAME><PERMISSIONS><OWNER_U>1</OWNER_U><OWNER_M>1</OWNER_M><OWNER_A>0</OWNER_A><GROUP_U>0</GROUP_U><GROUP_M>0</GROUP_M><GROUP_A>0</GROUP_A><OTHER_U>0</OTHER_U><OTHER_M>0</OTHER_M><OTHER_A>0</OTHER_A></PERMISSIONS><LAST_POLL>0</LAST_POLL><STATE>3</STATE><LCM_STATE>2</LCM_STATE><RESCHED>0</RESCHED><STIME>1384942214</STIME><ETIME>0</ETIME><DEPLOY_ID></DEPLOY_ID><MEMORY>0</MEMORY><CPU>0</CPU><NET_TX>0</NET_TX><NET_RX>0</NET_RX><TEMPLATE><AUTOMATIC_REQUIREMENTS><![CDATA[CLUSTER_ID
>>>>>>> =
>>>>>>> 101]]></AUTOMATIC_REQUIREMENTS><CONTEXT><DISK_ID><![CDATA[1]]></DISK_ID><ETH0_IP><![CDATA[192.168.147.70]]></ETH0_IP><NETWORK><![CDATA[YES]]></NETWORK><TARGET><![CDATA[hda]]></TARGET></CONTEXT><CPU><![CDATA[1]]></CPU><DISK><CLONE><![CDATA[YES]]></CLONE><CLUSTER_ID><![CDATA[101]]></CLUSTER_ID><DATASTORE><![CDATA[ssh_diOpvz]]></DATASTORE><DATASTORE_ID><![CDATA[105]]></DATASTORE_ID><DEV_PREFIX><![CDATA[sd]]></DEV_PREFIX><DISK_ID><![CDATA[0]]></DISK_ID><IMAGE><![CDATA[VMopenvzamd64]]></IMAGE><IMAGE_ID><![CDATA[17]]></IMAGE_ID><READONLY><![CDATA[NO]]></READONLY><SAVE><![CDATA[NO]]></SAVE><SOURCE><![CDATA[/var/lib/one/datastores/105/ab477695037bf599fad1863e2a340b84]]></SOURCE><TARGET><![CDATA[sda]]></TARGET><TM_MAD><![CDATA[ssh]]></TM_MAD><TYPE><![CDATA[FILE]]></TYPE></DISK><GRAPHICS><LISTEN><![CDATA[0.0.0.0]]></LISTEN><PORT><![CDATA[5900]]></PORT><TYPE><![CDATA[VNC]]></TYPE></GRAPHICS><MEMORY><![CDATA[512]]></MEMORY><NIC><BRIDGE><![CDATA[br0]]></BRIDGE><CLUSTER_ID><![CDATA[101]]></CLUSTER_ID><IP><![CDATA[192.168.147.70]]></IP><IP6_LINK><![CDATA[fe80::400:c0ff:fea8:9346]]></IP6_LINK><MAC><![CDATA[02:00:c0:a8:93:46]]></MAC><NETWORK><![CDATA[VMNetOpenVZ]]></NETWORK><NETWORK_ID><![CDATA[4]]></NETWORK_ID><NIC_ID><![CDATA[0]]></NIC_ID><VLAN><![CDATA[NO]]></VLAN></NIC><OS><ARCH><![CDATA[x86_64]]></ARCH><BOOT><![CDATA[hd]]></BOOT></OS><TEMPLATE_ID><![CDATA[6]]></TEMPLATE_ID><VMID><![CDATA[51]]></VMID></TEMPLATE><USER_TEMPLATE><CLUSTER_101><![CDATA[101]]></CLUSTER_101><OSTEMPLATE><![CDATA[debian]]></OSTEMPLATE><SCHED_REQUIREMENTS><![CDATA[CLUSTER_ID="101"]]></SCHED_REQUIREMENTS></USER_TEMPLATE><HISTORY_RECORDS><HISTORY><OID>51</OID><SEQ>0</SEQ><HOSTNAME>ubuntu</HOSTNAME><HID>3</HID><STIME>1384942223</STIME><ETIME>0</ETIME><VMMMAD>vmm_ovz</VMMMAD><VNMMAD>dummy</VNMMAD><TMMAD>ssh</TMMAD><DS_LOCATION>/var/lib/one/datastores</DS_LOCATION><DS_ID>104</DS_ID><PSTIME>1384942223</PSTIME><PETIME>1384942275</PETIME><RSTIME>1384942275</RSTIME><RETIME>0</RETIME><ESTIME>0</ESTIME><EETIME>0</EETIME><REASON>0</REASON><ACTION>0</ACTION></HISTORY></HISTORY_RECORDS></VM>
>>>>>>>
>>>>>>> Help me please.
>>>>>>>
>>>>>>> Regards, Caty.
>>>>>>>
>>>>>>> 2013/11/20 Nikita Balashov <balashov.nikita at gmail.com>
>>>>>>>
>>>>>>>> Hi Caty,
>>>>>>>>
>>>>>>>> It seems like OSTEMPLATE value is not set properly. Can you check
>>>>>>>> the deployment.0 file, it is in your datastore_location/0/vm_number folder.
>>>>>>>> Post it's entire content, please. It is an ordinary xml file, you can open
>>>>>>>> it with any text editor.
>>>>>>>>
>>>>>>>> Then check if disk.0 file is also in that folder. According to your
>>>>>>>> log it is missing.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Nikita
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2013/11/20 Catalina Quinde <catalinaquinde at gmail.com>
>>>>>>>
>>>>>>>> Hi friends, please help me.
>>>>>>>>
>>>>>>>> I have done the following:
>>>>>>>>
>>>>>>>> 1. Opennebula v4.2 works with varios hypervisors KVM, XEN, OpenVZ
>>>>>>>> and Esxi
>>>>>>>>
>>>>>>>> 2. I made a cluster for openvz node
>>>>>>>> oneadmin at ubuntuOpNeb:~$ onecluster show 101
>>>>>>>> CLUSTER 101
>>>>>>>> INFORMATION
>>>>>>>> ID                : 101
>>>>>>>> NAME              : OpenVZclus
>>>>>>>> SYSTEM DS         : 104
>>>>>>>>
>>>>>>>> CLUSTER
>>>>>>>> TEMPLATE
>>>>>>>>
>>>>>>>> HOSTS
>>>>>>>> 3
>>>>>>>>
>>>>>>>> VNETS
>>>>>>>> 4
>>>>>>>>
>>>>>>>> DATASTORES
>>>>>>>> 104
>>>>>>>> 105
>>>>>>>>
>>>>>>>> 3. I made two datastores in this cluster:
>>>>>>>>
>>>>>>>> oneadmin at ubuntuOpNeb:~$ onedatastore show 104
>>>>>>>> DATASTORE 104
>>>>>>>> INFORMATION
>>>>>>>> ID             : 104
>>>>>>>> NAME           : ssh_dsOpvz
>>>>>>>> USER           : oneadmin
>>>>>>>> GROUP          : oneadmin
>>>>>>>> CLUSTER        : OpenVZclus
>>>>>>>> TYPE           : SYSTEM
>>>>>>>> DS_MAD         : -
>>>>>>>> TM_MAD         : ssh
>>>>>>>> BASE PATH      : /var/lib/one/datastores/104
>>>>>>>> DISK_TYPE      : FILE
>>>>>>>>
>>>>>>>> DATASTORE
>>>>>>>> CAPACITY
>>>>>>>> TOTAL:         : -
>>>>>>>> USED:          : -
>>>>>>>> FREE:          : -
>>>>>>>>
>>>>>>>> PERMISSIONS
>>>>>>>>
>>>>>>>> OWNER          : um-
>>>>>>>> GROUP          : u--
>>>>>>>> OTHER          : ---
>>>>>>>>
>>>>>>>> DATASTORE
>>>>>>>> TEMPLATE
>>>>>>>> DS_MAD="-"
>>>>>>>> TM_MAD="ssh"
>>>>>>>> TYPE="SYSTEM_DS"
>>>>>>>>
>>>>>>>> IMAGES
>>>>>>>>
>>>>>>>> oneadmin at ubuntuOpNeb:~$ onedatastore show 105
>>>>>>>> DATASTORE 105
>>>>>>>> INFORMATION
>>>>>>>> ID             : 105
>>>>>>>> NAME           : ssh_diOpvz
>>>>>>>> USER           : oneadmin
>>>>>>>> GROUP          : oneadmin
>>>>>>>> CLUSTER        : OpenVZclus
>>>>>>>> TYPE           : IMAGE
>>>>>>>> DS_MAD         : fs
>>>>>>>> TM_MAD         : ssh
>>>>>>>> BASE PATH      : /var/lib/one/datastores/105
>>>>>>>> DISK_TYPE      : FILE
>>>>>>>>
>>>>>>>> DATASTORE
>>>>>>>> CAPACITY
>>>>>>>> TOTAL:         : 23.6G
>>>>>>>> USED:          : 189M
>>>>>>>> FREE:          : 2.5G
>>>>>>>>
>>>>>>>> PERMISSIONS
>>>>>>>>
>>>>>>>> OWNER          : um-
>>>>>>>> GROUP          : u--
>>>>>>>> OTHER          : ---
>>>>>>>>
>>>>>>>> DATASTORE
>>>>>>>> TEMPLATE
>>>>>>>> DS_MAD="fs"
>>>>>>>> NO_DECOMPRESS="yes"
>>>>>>>> TM_MAD="ssh"
>>>>>>>> TYPE="IMAGE_DS"
>>>>>>>>
>>>>>>>> IMAGES
>>>>>>>> 17
>>>>>>>>
>>>>>>>> 4. i register image for datastore 104 yours state is rdy
>>>>>>>> 5. I made a template file, contains:
>>>>>>>>
>>>>>>>> GRAPHICS=[PORT="5900",LISTEN="0.0.0.0",TYPE="VNC"]
>>>>>>>> CPU="1"
>>>>>>>> REQUIREMENTS="CLUSTER_ID=\"101\""
>>>>>>>> NIC=[NETWORK_ID="4"]
>>>>>>>>
>>>>>>>> OS=[ARCH="x86_64",BOOT="hd"]
>>>>>>>> CONTEXT=[SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",NETWORK="YES"]
>>>>>>>> OSTEMPLATE="debian"
>>>>>>>> DISK=[IMAGE_ID="17",DEV_PREFIX="sd"]
>>>>>>>> MEMORY="512"
>>>>>>>> CLUSTER_101="101"
>>>>>>>>
>>>>>>>> 6. In Openvz node in /etc/vz/dists contains
>>>>>>>> oneadmin at ubuntu:~$ ls /etc/vz/dists
>>>>>>>> altlinux-2.4.conf        gentoo.conf      slackware-9.0.conf
>>>>>>>> altlinux.conf            mandrake.conf    slackware-9.1.conf
>>>>>>>> arch.conf            opensuse.conf    slackware.conf
>>>>>>>> centos.conf            owl.conf         sles.conf
>>>>>>>> debian-3.0.conf            redhat-7.0.conf  suse-7.3.conf
>>>>>>>> debian-3.1.conf            redhat-7.1.conf  suse-8.0.conf
>>>>>>>> debian.conf            redhat-7.2.conf  suse-8.1.conf
>>>>>>>> default                redhat-7.3.conf  suse-8.2.conf
>>>>>>>> distribution.conf-template  redhat.conf      suse.conf
>>>>>>>> fedora.conf            rhel.conf         ubuntu-6.06.conf
>>>>>>>> fedora-core.conf        scientific.conf  ubuntu.conf
>>>>>>>> funtoo.conf            scripts
>>>>>>>>
>>>>>>>> then no contains "sl-6-x86_64", therefore I used OSTEMPLATE="debian"
>>>>>>>>
>>>>>>>> 7. when VM is deployed status is failed, the log file contains:
>>>>>>>>
>>>>>>>> oneadmin at ubuntuOpNeb:~$ cat /var/log/one/51.log
>>>>>>>> Wed Nov 20 05:10:23 2013 [DiM][I]: New VM state is ACTIVE.
>>>>>>>> Wed Nov 20 05:10:23 2013 [LCM][I]: New VM state is PROLOG.
>>>>>>>> Wed Nov 20 05:11:15 2013 [LCM][I]: New VM state is BOOT
>>>>>>>> Wed Nov 20 05:11:15 2013 [VMM][I]: Generating deployment file:
>>>>>>>> /var/lib/one/vms/51/deployment.0
>>>>>>>> Wed Nov 20 05:11:15 2013 [VMM][I]: ExitCode: 0
>>>>>>>> Wed Nov 20 05:11:15 2013 [VMM][I]: Successfully execute network
>>>>>>>> driver operation: pre.
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][I]: Command execution fail: cat <<
>>>>>>>> EOT | /var/tmp/one/vmm/ovz/deploy
>>>>>>>> '/var/lib/one/datastores/104/51/deployment.0' 'ubuntu' 51 ubuntu
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo
>>>>>>>> mv "/var/lib/vz/template/cache/default.tar.gz"
>>>>>>>> "/var/lib/vz/template/cache/default.tar.gz.1384942275" 2> /dev/null; true".
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][E]: deploy: Command "/usr/bin/sudo
>>>>>>>> ln -sf "" "/var/lib/vz/template/cache/default.tar.gz"" failed.
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][E]: deploy: ln: failed to create
>>>>>>>> symbolic link `/var/lib/vz/template/cache/default.tar.gz' -> `': No such
>>>>>>>> file or directory
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][E]: ln: failed to create symbolic
>>>>>>>> link `/var/lib/vz/template/cache/default.tar.gz' -> `': No such file or
>>>>>>>> directory
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][E]:
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][I]: ExitCode: 1
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][I]: Failed to execute virtualization
>>>>>>>> driver operation: deploy.
>>>>>>>> Wed Nov 20 05:11:16 2013 [VMM][E]: Error deploying virtual machine:
>>>>>>>> ln: failed to create symbolic link
>>>>>>>> `/var/lib/vz/template/cache/default.tar.gz' -> `': No such file or directory
>>>>>>>> Wed Nov 20 05:11:16 2013 [DiM][I]: New VM state is FAILED
>>>>>>>>
>>>>>>>> Please friends help me resolved this is urgent. Thanks.
>>>>>>>>
>>>>>>>> Regards, Caty.
>>>>>>>>
>>>>>>>> ------------------------------
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Message: 2
>>>>>>>>> Date: Tue, 19 Nov 2013 14:37:46 -0500
>>>>>>>>> From: Catalina Quinde <catalinaquinde at gmail.com>
>>>>>>>>>
>>>>>>>>> To: users at lists.opennebula.org
>>>>>>>>> Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
>>>>>>>>> Message-ID:
>>>>>>>>>         <
>>>>>>>>> CAPgz++xn85XkZVDH8s4jawUTY2VSnCuHep0JyhR8va0B07NMvA at mail.gmail.com
>>>>>>>>> >
>>>>>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi Nicolay,
>>>>>>>>>
>>>>>>>>> I made the change indicated by you, but the same error is
>>>>>>>>> executing,
>>>>>>>>> another idea, please?
>>>>>>>>>
>>>>>>>>> Thanks, Caty.
>>>>>>>>>
>>>>>>>>> Message: 2
>>>>>>>>> > Date: Tue, 19 Nov 2013 11:56:22 +0400
>>>>>>>>> > From: knawnd at gmail.com
>>>>>>>>> > To: users at lists.opennebula.org
>>>>>>>>> > Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
>>>>>>>>> > Message-ID: <528B19A6.1040501 at gmail.com>
>>>>>>>>> > Content-Type: text/plain; charset=UTF-8; format=flowed
>>>>>>>>> >
>>>>>>>>> > Make sure that in VM template you specify OSTEMPLATE variable
>>>>>>>>> with an
>>>>>>>>> > appropriate valueas it is written in the guide.
>>>>>>>>> > For example,
>>>>>>>>> > OSTEMPLATE="sl-6-x86_64"
>>>>>>>>> >
>>>>>>>>> > I does make a sense to use only those names what are mentioned
>>>>>>>>> inthe
>>>>>>>>> > filenames located in /etc/vz/dists/ since OpenVZ hypervisor
>>>>>>>>> invokes
>>>>>>>>> > corresponding scripts located in /etc/vz/dists/scripts/.
>>>>>>>>> > I.e. if you specify something like
>>>>>>>>> > OSTEMPLATE="mytestvm" and there is no config file mytestvm.conf
>>>>>>>>> in
>>>>>>>>> > /etc/vz/dists and no scripts in /etc/vz/dists/scripts/ then
>>>>>>>>> default
>>>>>>>>> > config and scripts will beused by openvz hypervisor on the cloud
>>>>>>>>> worker
>>>>>>>>> > node.
>>>>>>>>> >
>>>>>>>>> > Hope it helps,
>>>>>>>>> > Nikolay.
>>>>>>>>> >
>>>>>>>>> > Catalina Quinde wrote on 18/11/13 09:43:
>>>>>>>>> > > Nicolay Nikolay then send the mail before, I noticed an error
>>>>>>>>> in the
>>>>>>>>> > > sudoers file at OpenVZ node for requesting password, and I
>>>>>>>>> resolve, I
>>>>>>>>> > > made a new virtual machine, but the problem of the file
>>>>>>>>> > > "default.tar.gz" continues, I don't know because usedthis
>>>>>>>>> one.I send
>>>>>>>>> > > contains file 44.log:
>>>>>>>>> > >
>>>>>>>>> > > oneadmin at ubuntuOpNeb:~$ cat /var/log/one/44.log
>>>>>>>>> > > Mon Nov 18 00:29:26 2013 [DiM][I]: New VM state is ACTIVE.
>>>>>>>>> > > Mon Nov 18 00:29:26 2013 [LCM][I]: New VM state is PROLOG.
>>>>>>>>> > > Mon Nov 18 00:29:47 2013 [LCM][I]: New VM state is BOOT
>>>>>>>>> > > Mon Nov 18 00:29:47 2013 [VMM][I]: Generating deployment file:
>>>>>>>>> > > /var/lib/one/vms/44/deployment.0
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][I]: ExitCode: 0
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][I]: Successfully execute
>>>>>>>>> network driver
>>>>>>>>> > > operation: pre.
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][I]: Command execution fail: cat
>>>>>>>>> << EOT
>>>>>>>>> > > | /var/tmp/one/vmm/ovz/deploy
>>>>>>>>> > > '/var/lib/one/datastores/0/44/deployment.0' 'ubuntu' 44 ubuntu
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][I]: deploy: Executed
>>>>>>>>> "/usr/bin/sudo mv
>>>>>>>>> > > "/var/lib/vz/template/cache/default.tar.gz"
>>>>>>>>> > > "/var/lib/vz/template/cache/default.tar.gz.1384752587" 2>
>>>>>>>>> /dev/null;
>>>>>>>>> > > true".
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][E]: deploy: Command
>>>>>>>>> "/usr/bin/sudo ln
>>>>>>>>> > > -sf "" "/var/lib/vz/template/cache/default.tar.gz"" failed.
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][E]: deploy: ln: failed to create
>>>>>>>>> > > symbolic link `/var/lib/vz/template/cache/default.tar.gz' ->
>>>>>>>>> `': No
>>>>>>>>> > > such file or directory
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][E]: ln: failed to create
>>>>>>>>> symbolic link
>>>>>>>>> > > `/var/lib/vz/template/cache/default.tar.gz' -> `': No such
>>>>>>>>> file or
>>>>>>>>> > > directory
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][E]:
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][I]: ExitCode: 1
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][I]: Failed to execute
>>>>>>>>> virtualization
>>>>>>>>> > > driver operation: deploy.
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [VMM][E]: Error deploying virtual
>>>>>>>>> machine:
>>>>>>>>> > > ln: failed to create symbolic link
>>>>>>>>> > > `/var/lib/vz/template/cache/default.tar.gz' -> `': No such
>>>>>>>>> file or
>>>>>>>>> > > directory
>>>>>>>>> > > Mon Nov 18 00:29:48 2013 [DiM][I]: New VM state is FAILED
>>>>>>>>> > >
>>>>>>>>> > > Thanks Nicolay.
>>>>>>>>> > >
>>>>>>>>> > >
>>>>>>>>> > > 2013/11/18 Catalina Quinde <catalinaquinde at gmail.com
>>>>>>>>> > > <mailto:catalinaquinde at gmail.com>>
>>>>>>>>> > >
>>>>>>>>> > >     Hi, Nikolay
>>>>>>>>> > >
>>>>>>>>> > >     Thanks for reply, I used
>>>>>>>>> > >     https://bitbucket.org/hpcc_kpi/opennebula-openvz/wiki/Home
>>>>>>>>> > >     and I have a problem:
>>>>>>>>> > >
>>>>>>>>> > >     When VM deploy in OpenVZ node takes another name for the
>>>>>>>>> file.
>>>>>>>>> > >     "tar.gz" in my case is "VMopenvzamd64.tar.gz" but in the
>>>>>>>>> "43.log"
>>>>>>>>> > >     shows a file "default.tar.gz" and VM state is FAILED
>>>>>>>>> > >
>>>>>>>>> > >     1. 43.log file contains:
>>>>>>>>> > >
>>>>>>>>> > >     oneadmin at ubuntuOpNeb:~$ cat /var/log/one/43.log
>>>>>>>>> > >     Sun Nov 17 23:55:27 2013 [DiM][I]: New VM state is ACTIVE.
>>>>>>>>> > >     Sun Nov 17 23:55:27 2013 [LCM][I]: New VM state is PROLOG.
>>>>>>>>> > >     Sun Nov 17 23:55:41 2013 [LCM][I]: New VM state is BOOT
>>>>>>>>> > >     Sun Nov 17 23:55:41 2013 [VMM][I]: Generating deployment
>>>>>>>>> file:
>>>>>>>>> > >     /var/lib/one/vms/43/deployment.0
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: ExitCode: 0
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: Successfully execute
>>>>>>>>> network
>>>>>>>>> > >     driver operation: pre.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: Command execution fail:
>>>>>>>>> cat <<
>>>>>>>>> > >     EOT | /var/tmp/one/vmm/ovz/deploy
>>>>>>>>> > >     '/var/lib/one/datastores/0/43/deployment.0' 'ubuntu' 43
>>>>>>>>> ubuntu
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: deploy: Executed
>>>>>>>>> "/usr/bin/sudo
>>>>>>>>> > >     mv "/var/lib/vz/template/cache/default.tar.gz"
>>>>>>>>> > >     "/var/lib/vz/template/cache/default.tar.gz.1384750541" 2>
>>>>>>>>> > >     /dev/null; true".
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: deploy: Command
>>>>>>>>> "/usr/bin/sudo
>>>>>>>>> > >     ln -sf "" "/var/lib/vz/template/cache/default.tar.gz""
>>>>>>>>> failed.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: deploy: sudo: no tty
>>>>>>>>> present
>>>>>>>>> > >     and no askpass program specified
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: Sorry, try again.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: sudo: no tty present
>>>>>>>>> and no
>>>>>>>>> > >     askpass program specified
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: Sorry, try again.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: sudo: no tty present
>>>>>>>>> and no
>>>>>>>>> > >     askpass program specified
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: Sorry, try again.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: sudo: 3 incorrect
>>>>>>>>> password
>>>>>>>>> > attempts
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: sudo: no tty present
>>>>>>>>> and no
>>>>>>>>> > >     askpass program specified
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: Sorry, try again.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: sudo: no tty present
>>>>>>>>> and no
>>>>>>>>> > >     askpass program specified
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: Sorry, try again.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: sudo: no tty present
>>>>>>>>> and no
>>>>>>>>> > >     askpass program specified
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: Sorry, try again.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: sudo: 3 incorrect
>>>>>>>>> password
>>>>>>>>> > attempts
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]:
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: ExitCode: 1
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][I]: Failed to execute
>>>>>>>>> > >     virtualization driver operation: deploy.
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [VMM][E]: Error deploying virtual
>>>>>>>>> > >     machine: sudo: no tty present and no askpass program
>>>>>>>>> specified
>>>>>>>>> > >     Sun Nov 17 23:55:42 2013 [DiM][I]: New VM state is FAILED
>>>>>>>>> > >
>>>>>>>>> > >     2. The image file contains:
>>>>>>>>> > >
>>>>>>>>> > >     oneadmin at ubuntuOpNeb:~$ oneimage show 15
>>>>>>>>> > >     IMAGE 15 INFORMATION
>>>>>>>>> > >     ID             : 15
>>>>>>>>> > >     NAME           : VMopenvzamd64
>>>>>>>>> > >     USER           : oneadmin
>>>>>>>>> > >     GROUP          : oneadmin
>>>>>>>>> > >     DATASTORE      : default
>>>>>>>>> > >     TYPE           : OS
>>>>>>>>> > >     REGISTER TIME  : 11/14 16:21:11
>>>>>>>>> > >     PERSISTENT     : No
>>>>>>>>> > >     SOURCE         :
>>>>>>>>> > >     /var/lib/one/datastores/1/c01336142b657bca9afe183fe1755e5b
>>>>>>>>> > >     PATH           : /var/lib/images/VMopenvzamd64.tar.gz
>>>>>>>>> > >     SIZE           : 189M
>>>>>>>>> > >     STATE          : used
>>>>>>>>> > >     RUNNING_VMS    : 1
>>>>>>>>> > >
>>>>>>>>> > >     PERMISSIONS
>>>>>>>>> > >     OWNER          : um-
>>>>>>>>> > >     GROUP          : ---
>>>>>>>>> > >     OTHER          : ---
>>>>>>>>> > >
>>>>>>>>> > >     IMAGE TEMPLATE
>>>>>>>>> > >     DESCRIPTION="Pruebas VM OpenVZ"
>>>>>>>>> > >     DEV_PREFIX="hd"
>>>>>>>>> > >
>>>>>>>>> > >     VIRTUAL MACHINES
>>>>>>>>> > >
>>>>>>>>> > >         ID USER     GROUP    NAME            STAT UCPU    UMEM
>>>>>>>>> > >     HOST             TIME
>>>>>>>>> > >         43 oneadmin oneadmin VMuOpenVZ       fail 0
>>>>>>>>> > >     0K              0d 00h00
>>>>>>>>> > >
>>>>>>>>> > >     3. The template file contains:
>>>>>>>>> > >
>>>>>>>>> > >
>>>>>>>>> > >     OS=[ARCH="x86_64",BOOT="hd"]
>>>>>>>>> > >     GRAPHICS=[TYPE="VNC",PORT="5900",LISTEN="0.0.0.0"]
>>>>>>>>> > >     MEMORY="512"
>>>>>>>>> > >
>>>>>>>>> > >
>>>>>>>>> CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]"]
>>>>>>>>> > >     REQUIREMENTS="ID=\"3\""
>>>>>>>>> > >     DISK=[IMAGE_ID="15",DEV_PREFIX="sd"]
>>>>>>>>> > >     NIC=[NETWORK_ID="4"]
>>>>>>>>> > >     CPU="1"
>>>>>>>>> > >
>>>>>>>>> > >     Please help me Nicolay, thanks.
>>>>>>>>> > >     Have a nice day.
>>>>>>>>> > >
>>>>>>>>> > >     Caty.
>>>>>>>>> > >
>>>>>>>>> > >     2013/11/16 <users-request at lists.opennebula.org
>>>>>>>>> > >     <mailto:users-request at lists.opennebula.org>>
>>>>>>>>> > >
>>>>>>>>> > >         Send Users mailing list submissions to
>>>>>>>>> > >         users at lists.opennebula.org <mailto:
>>>>>>>>> users at lists.opennebula.org>
>>>>>>>>> > >
>>>>>>>>> > >         To subscribe or unsubscribe via the World Wide Web,
>>>>>>>>> visit
>>>>>>>>> > >
>>>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>>>>> > >         or, via email, send a message with subject or body
>>>>>>>>> 'help' to
>>>>>>>>> > >         users-request at lists.opennebula.org
>>>>>>>>> > >         <mailto:users-request at lists.opennebula.org>
>>>>>>>>> > >
>>>>>>>>> > >         You can reach the person managing the list at
>>>>>>>>> > >         users-owner at lists.opennebula.org
>>>>>>>>> > >         <mailto:users-owner at lists.opennebula.org>
>>>>>>>>> > >
>>>>>>>>> > >         When replying, please edit your Subject line so it is
>>>>>>>>> more
>>>>>>>>> > >         specific
>>>>>>>>> > >         than "Re: Contents of Users digest..."
>>>>>>>>> > >
>>>>>>>>> > >
>>>>>>>>> > >         Today's Topics:
>>>>>>>>> > >
>>>>>>>>> > >            1. Re: VM in Opennebula for OpenVZ failed (
>>>>>>>>> knawnd at gmail.com
>>>>>>>>> > >         <mailto:knawnd at gmail.com>)
>>>>>>>>> > >            2. Re: Create Swap locally (Alberto Pic?n Couselo)
>>>>>>>>> > >            3. Contextualisation with "Upstart" (Gareth Bult)
>>>>>>>>> > >            4. Context CDROM seen as hard drive (Daniel
>>>>>>>>> Dehennin)
>>>>>>>>> > >
>>>>>>>>> > >
>>>>>>>>> >
>>>>>>>>> -------------- next part --------------
>>>>>>>>> An HTML attachment was scrubbed...
>>>>>>>>> URL: <
>>>>>>>>> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131119/a9226303/attachment.html
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Users mailing list
>>>>>>>>> Users at lists.opennebula.org
>>>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> End of Users Digest, Vol 69, Issue 82
>>>>>>>>> *************************************
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131126/e19f5758/attachment-0002.htm>


More information about the Users mailing list