<div dir="ltr"><div><div><div>Hi friends, please help me.<br><br></div>I have done the following:<br><br></div>1. Opennebula v4.2 works with varios hypervisors KVM, XEN, OpenVZ and Esxi<br><br></div>2. I made a cluster for openvz node <br>
<div><div><div><div><div class="gmail_extra">oneadmin@ubuntuOpNeb:~$ onecluster show 101<br>CLUSTER 101 INFORMATION <br>ID : 101 <br>NAME : OpenVZclus <br>
SYSTEM DS : 104 <br><br>CLUSTER TEMPLATE <br><br>HOSTS <br>3 <br><br>VNETS <br>4 <br><br>DATASTORES <br>
104 <br>105 <br><br><div class="gmail_quote">3. I made two datastores in this cluster:<br><br></div><div class="gmail_quote">oneadmin@ubuntuOpNeb:~$ onedatastore show 104<br>DATASTORE 104 INFORMATION <br>
ID : 104 <br>NAME : ssh_dsOpvz <br>USER : oneadmin <br>GROUP : oneadmin <br>CLUSTER : OpenVZclus <br>TYPE : SYSTEM <br>
DS_MAD : - <br>TM_MAD : ssh <br>BASE PATH : /var/lib/one/datastores/104<br>DISK_TYPE : FILE <br><br>DATASTORE CAPACITY <br>
TOTAL: : - <br>USED: : - <br>FREE: : - <br><br>PERMISSIONS <br>OWNER : um- <br>
GROUP : u-- <br>OTHER : --- <br><br>DATASTORE TEMPLATE <br>DS_MAD="-"<br>TM_MAD="ssh"<br>TYPE="SYSTEM_DS"<br>
<br>IMAGES <br><br>oneadmin@ubuntuOpNeb:~$ onedatastore show 105<br>DATASTORE 105 INFORMATION <br>ID : 105 <br>NAME : ssh_diOpvz <br>
USER : oneadmin <br>GROUP : oneadmin <br>CLUSTER : OpenVZclus <br>TYPE : IMAGE <br>DS_MAD : fs <br>TM_MAD : ssh <br>
BASE PATH : /var/lib/one/datastores/105<br>DISK_TYPE : FILE <br><br>DATASTORE CAPACITY <br>TOTAL: : 23.6G <br>USED: : 189M <br>
FREE: : 2.5G <br><br>PERMISSIONS <br>OWNER : um- <br>GROUP : u-- <br>OTHER : --- <br>
<br>DATASTORE TEMPLATE <br>DS_MAD="fs"<br>NO_DECOMPRESS="yes"<br>TM_MAD="ssh"<br>TYPE="IMAGE_DS"<br><br>IMAGES <br>
17 <br><br></div><div class="gmail_quote">4. i register image for datastore 104 yours state is rdy<br></div><div class="gmail_quote">5. I made a template file, contains:<br><br></div><div class="gmail_quote">GRAPHICS=[PORT="5900",LISTEN="0.0.0.0",TYPE="VNC"]<br>
CPU="1"<br>REQUIREMENTS="CLUSTER_ID=\"101\""<br>NIC=[NETWORK_ID="4"]<br>OS=[ARCH="x86_64",BOOT="hd"]<br>CONTEXT=[SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",NETWORK="YES"]<br>
OSTEMPLATE="debian"<br>DISK=[IMAGE_ID="17",DEV_PREFIX="sd"]<br>MEMORY="512"<br>CLUSTER_101="101"<br><br></div><div class="gmail_quote">6. In Openvz node in /etc/vz/dists contains<br>
oneadmin@ubuntu:~$ ls /etc/vz/dists<br>altlinux-2.4.conf gentoo.conf slackware-9.0.conf<br>altlinux.conf mandrake.conf slackware-9.1.conf<br>arch.conf opensuse.conf slackware.conf<br>
centos.conf owl.conf sles.conf<br>debian-3.0.conf redhat-7.0.conf suse-7.3.conf<br>debian-3.1.conf redhat-7.1.conf suse-8.0.conf<br>debian.conf redhat-7.2.conf suse-8.1.conf<br>
default redhat-7.3.conf suse-8.2.conf<br>distribution.conf-template redhat.conf suse.conf<br>fedora.conf rhel.conf ubuntu-6.06.conf<br>fedora-core.conf scientific.conf ubuntu.conf<br>
funtoo.conf scripts<br><br></div><div class="gmail_quote">then no contains "sl-6-x86_64", therefore I used OSTEMPLATE="debian"<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">
7. when VM is deployed status is failed, the log file contains:<br><br>oneadmin@ubuntuOpNeb:~$ cat /var/log/one/51.log<br>Wed Nov 20 05:10:23 2013 [DiM][I]: New VM state is ACTIVE.<br>Wed Nov 20 05:10:23 2013 [LCM][I]: New VM state is PROLOG.<br>
Wed Nov 20 05:11:15 2013 [LCM][I]: New VM state is BOOT<br>Wed Nov 20 05:11:15 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/51/deployment.0<br>Wed Nov 20 05:11:15 2013 [VMM][I]: ExitCode: 0<br>Wed Nov 20 05:11:15 2013 [VMM][I]: Successfully execute network driver operation: pre.<br>
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<br>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".<br>
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.<br>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<br>
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<br>Wed Nov 20 05:11:16 2013 [VMM][E]: <br>Wed Nov 20 05:11:16 2013 [VMM][I]: ExitCode: 1<br>
Wed Nov 20 05:11:16 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.<br>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<br>
Wed Nov 20 05:11:16 2013 [DiM][I]: New VM state is FAILED<br><br></div><div class="gmail_quote">Please friends help me resolved this is urgent. Thanks.<br><br></div><div class="gmail_quote">Regards, Caty.<br></div><div class="gmail_quote">
<br></div><div class="gmail_quote">------------------------------<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<br>
Message: 2<br>
Date: Tue, 19 Nov 2013 14:37:46 -0500<br>
From: Catalina Quinde <<a href="mailto:catalinaquinde@gmail.com">catalinaquinde@gmail.com</a>><br>
To: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
Subject: Re: [one-users] VM in Opennebula for OpenVZ failed<br>
Message-ID:<br>
<<a href="mailto:CAPgz%2B%2Bxn85XkZVDH8s4jawUTY2VSnCuHep0JyhR8va0B07NMvA@mail.gmail.com">CAPgz++xn85XkZVDH8s4jawUTY2VSnCuHep0JyhR8va0B07NMvA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Nicolay,<br>
<br>
I made the change indicated by you, but the same error is executing,<br>
another idea, please?<br>
<br>
Thanks, Caty.<br>
<br>
Message: 2<br>
> Date: Tue, 19 Nov 2013 11:56:22 +0400<br>
> From: <a href="mailto:knawnd@gmail.com">knawnd@gmail.com</a><br>
> To: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
> Subject: Re: [one-users] VM in Opennebula for OpenVZ failed<br>
> Message-ID: <<a href="mailto:528B19A6.1040501@gmail.com">528B19A6.1040501@gmail.com</a>><br>
> Content-Type: text/plain; charset=UTF-8; format=flowed<br>
><br>
> Make sure that in VM template you specify OSTEMPLATE variable with an<br>
> appropriate valueas it is written in the guide.<br>
> For example,<br>
> OSTEMPLATE="sl-6-x86_64"<br>
><br>
> I does make a sense to use only those names what are mentioned inthe<br>
> filenames located in /etc/vz/dists/ since OpenVZ hypervisor invokes<br>
> corresponding scripts located in /etc/vz/dists/scripts/.<br>
> I.e. if you specify something like<br>
> OSTEMPLATE="mytestvm" and there is no config file mytestvm.conf in<br>
> /etc/vz/dists and no scripts in /etc/vz/dists/scripts/ then default<br>
> config and scripts will beused by openvz hypervisor on the cloud worker<br>
> node.<br>
><br>
> Hope it helps,<br>
> Nikolay.<br>
><br>
> Catalina Quinde wrote on 18/11/13 09:43:<br>
> > Nicolay Nikolay then send the mail before, I noticed an error in the<br>
> > sudoers file at OpenVZ node for requesting password, and I resolve, I<br>
> > made a new virtual machine, but the problem of the file<br>
> > "default.tar.gz" continues, I don't know because usedthis one.I send<br>
> > contains file 44.log:<br>
> ><br>
> > oneadmin@ubuntuOpNeb:~$ cat /var/log/one/44.log<br>
> > Mon Nov 18 00:29:26 2013 [DiM][I]: New VM state is ACTIVE.<br>
> > Mon Nov 18 00:29:26 2013 [LCM][I]: New VM state is PROLOG.<br>
> > Mon Nov 18 00:29:47 2013 [LCM][I]: New VM state is BOOT<br>
> > Mon Nov 18 00:29:47 2013 [VMM][I]: Generating deployment file:<br>
> > /var/lib/one/vms/44/deployment.0<br>
> > Mon Nov 18 00:29:48 2013 [VMM][I]: ExitCode: 0<br>
> > Mon Nov 18 00:29:48 2013 [VMM][I]: Successfully execute network driver<br>
> > operation: pre.<br>
> > Mon Nov 18 00:29:48 2013 [VMM][I]: Command execution fail: cat << EOT<br>
> > | /var/tmp/one/vmm/ovz/deploy<br>
> > '/var/lib/one/datastores/0/44/deployment.0' 'ubuntu' 44 ubuntu<br>
> > Mon Nov 18 00:29:48 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv<br>
> > "/var/lib/vz/template/cache/default.tar.gz"<br>
> > "/var/lib/vz/template/cache/default.tar.gz.1384752587" 2> /dev/null;<br>
> > true".<br>
> > Mon Nov 18 00:29:48 2013 [VMM][E]: deploy: Command "/usr/bin/sudo ln<br>
> > -sf "" "/var/lib/vz/template/cache/default.tar.gz"" failed.<br>
> > Mon Nov 18 00:29:48 2013 [VMM][E]: deploy: ln: failed to create<br>
> > symbolic link `/var/lib/vz/template/cache/default.tar.gz' -> `': No<br>
> > such file or directory<br>
> > Mon Nov 18 00:29:48 2013 [VMM][E]: ln: failed to create symbolic link<br>
> > `/var/lib/vz/template/cache/default.tar.gz' -> `': No such file or<br>
> > directory<br>
> > Mon Nov 18 00:29:48 2013 [VMM][E]:<br>
> > Mon Nov 18 00:29:48 2013 [VMM][I]: ExitCode: 1<br>
> > Mon Nov 18 00:29:48 2013 [VMM][I]: Failed to execute virtualization<br>
> > driver operation: deploy.<br>
> > Mon Nov 18 00:29:48 2013 [VMM][E]: Error deploying virtual machine:<br>
> > ln: failed to create symbolic link<br>
> > `/var/lib/vz/template/cache/default.tar.gz' -> `': No such file or<br>
> > directory<br>
> > Mon Nov 18 00:29:48 2013 [DiM][I]: New VM state is FAILED<br>
> ><br>
> > Thanks Nicolay.<br>
> ><br>
> ><br>
> > 2013/11/18 Catalina Quinde <<a href="mailto:catalinaquinde@gmail.com">catalinaquinde@gmail.com</a><br>
> > <mailto:<a href="mailto:catalinaquinde@gmail.com">catalinaquinde@gmail.com</a>>><br>
> ><br>
> > Hi, Nikolay<br>
> ><br>
> > Thanks for reply, I used<br>
> > <a href="https://bitbucket.org/hpcc_kpi/opennebula-openvz/wiki/Home" target="_blank">https://bitbucket.org/hpcc_kpi/opennebula-openvz/wiki/Home</a><br>
> > and I have a problem:<br>
> ><br>
> > When VM deploy in OpenVZ node takes another name for the file.<br>
> > "tar.gz" in my case is "VMopenvzamd64.tar.gz" but in the "43.log"<br>
> > shows a file "default.tar.gz" and VM state is FAILED<br>
> ><br>
> > 1. 43.log file contains:<br>
> ><br>
> > oneadmin@ubuntuOpNeb:~$ cat /var/log/one/43.log<br>
> > Sun Nov 17 23:55:27 2013 [DiM][I]: New VM state is ACTIVE.<br>
> > Sun Nov 17 23:55:27 2013 [LCM][I]: New VM state is PROLOG.<br>
> > Sun Nov 17 23:55:41 2013 [LCM][I]: New VM state is BOOT<br>
> > Sun Nov 17 23:55:41 2013 [VMM][I]: Generating deployment file:<br>
> > /var/lib/one/vms/43/deployment.0<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: ExitCode: 0<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: Successfully execute network<br>
> > driver operation: pre.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: Command execution fail: cat <<<br>
> > EOT | /var/tmp/one/vmm/ovz/deploy<br>
> > '/var/lib/one/datastores/0/43/deployment.0' 'ubuntu' 43 ubuntu<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo<br>
> > mv "/var/lib/vz/template/cache/default.tar.gz"<br>
> > "/var/lib/vz/template/cache/default.tar.gz.1384750541" 2><br>
> > /dev/null; true".<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: deploy: Command "/usr/bin/sudo<br>
> > ln -sf "" "/var/lib/vz/template/cache/default.tar.gz"" failed.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: deploy: sudo: no tty present<br>
> > and no askpass program specified<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: Sorry, try again.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: sudo: no tty present and no<br>
> > askpass program specified<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: Sorry, try again.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: sudo: no tty present and no<br>
> > askpass program specified<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: Sorry, try again.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: sudo: 3 incorrect password<br>
> attempts<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: sudo: no tty present and no<br>
> > askpass program specified<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: Sorry, try again.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: sudo: no tty present and no<br>
> > askpass program specified<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: Sorry, try again.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: sudo: no tty present and no<br>
> > askpass program specified<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: Sorry, try again.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: sudo: 3 incorrect password<br>
> attempts<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]:<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: ExitCode: 1<br>
> > Sun Nov 17 23:55:42 2013 [VMM][I]: Failed to execute<br>
> > virtualization driver operation: deploy.<br>
> > Sun Nov 17 23:55:42 2013 [VMM][E]: Error deploying virtual<br>
> > machine: sudo: no tty present and no askpass program specified<br>
> > Sun Nov 17 23:55:42 2013 [DiM][I]: New VM state is FAILED<br>
> ><br>
> > 2. The image file contains:<br>
> ><br>
> > oneadmin@ubuntuOpNeb:~$ oneimage show 15<br>
> > IMAGE 15 INFORMATION<br>
> > ID : 15<br>
> > NAME : VMopenvzamd64<br>
> > USER : oneadmin<br>
> > GROUP : oneadmin<br>
> > DATASTORE : default<br>
> > TYPE : OS<br>
> > REGISTER TIME : 11/14 16:21:11<br>
> > PERSISTENT : No<br>
> > SOURCE :<br>
> > /var/lib/one/datastores/1/c01336142b657bca9afe183fe1755e5b<br>
> > PATH : /var/lib/images/VMopenvzamd64.tar.gz<br>
> > SIZE : 189M<br>
> > STATE : used<br>
> > RUNNING_VMS : 1<br>
> ><br>
> > PERMISSIONS<br>
> > OWNER : um-<br>
> > GROUP : ---<br>
> > OTHER : ---<br>
> ><br>
> > IMAGE TEMPLATE<br>
> > DESCRIPTION="Pruebas VM OpenVZ"<br>
> > DEV_PREFIX="hd"<br>
> ><br>
> > VIRTUAL MACHINES<br>
> ><br>
> > ID USER GROUP NAME STAT UCPU UMEM<br>
> > HOST TIME<br>
> > 43 oneadmin oneadmin VMuOpenVZ fail 0<br>
> > 0K 0d 00h00<br>
> ><br>
> > 3. The template file contains:<br>
> ><br>
> ><br>
> > OS=[ARCH="x86_64",BOOT="hd"]<br>
> > GRAPHICS=[TYPE="VNC",PORT="5900",LISTEN="0.0.0.0"]<br>
> > MEMORY="512"<br>
> ><br>
> > CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]"]<br>
> > REQUIREMENTS="ID=\"3\""<br>
> > DISK=[IMAGE_ID="15",DEV_PREFIX="sd"]<br>
> > NIC=[NETWORK_ID="4"]<br>
> > CPU="1"<br>
> ><br>
> > Please help me Nicolay, thanks.<br>
> > Have a nice day.<br>
> ><br>
> > Caty.<br>
> ><br>
> > 2013/11/16 <<a href="mailto:users-request@lists.opennebula.org">users-request@lists.opennebula.org</a><br>
> > <mailto:<a href="mailto:users-request@lists.opennebula.org">users-request@lists.opennebula.org</a>>><br>
> ><br>
> > Send Users mailing list submissions to<br>
> > <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a> <mailto:<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>
> ><br>
> > To subscribe or unsubscribe via the World Wide Web, visit<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>
> > or, via email, send a message with subject or body 'help' to<br>
> > <a href="mailto:users-request@lists.opennebula.org">users-request@lists.opennebula.org</a><br>
> > <mailto:<a href="mailto:users-request@lists.opennebula.org">users-request@lists.opennebula.org</a>><br>
> ><br>
> > You can reach the person managing the list at<br>
> > <a href="mailto:users-owner@lists.opennebula.org">users-owner@lists.opennebula.org</a><br>
> > <mailto:<a href="mailto:users-owner@lists.opennebula.org">users-owner@lists.opennebula.org</a>><br>
> ><br>
> > When replying, please edit your Subject line so it is more<br>
> > specific<br>
> > than "Re: Contents of Users digest..."<br>
> ><br>
> ><br>
> > Today's Topics:<br>
> ><br>
> > 1. Re: VM in Opennebula for OpenVZ failed (<a href="mailto:knawnd@gmail.com">knawnd@gmail.com</a><br>
> > <mailto:<a href="mailto:knawnd@gmail.com">knawnd@gmail.com</a>>)<br>
> > 2. Re: Create Swap locally (Alberto Pic?n Couselo)<br>
> > 3. Contextualisation with "Upstart" (Gareth Bult)<br>
> > 4. Context CDROM seen as hard drive (Daniel Dehennin)<br>
> ><br>
> ><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131119/a9226303/attachment.html" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131119/a9226303/attachment.html</a>><br>
<br>
------------------------------<br>
<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>
<br>
End of Users Digest, Vol 69, Issue 82<br>
*************************************<br>
</div></blockquote></div><br></div></div></div></div></div></div>