<div dir="ltr"><div><div>Hi Nikolay,<br><br></div><span id="result_box" class="" lang="en"><span class="">Receive a big hug and thank you very much, the MV is now RUNNING, thanks, was how to mount the datastore, thank you <img goomoji="330" style="margin: 0px 0.2ex; vertical-align: middle;" src="cid:330@goomoji.gmail">.<br>
<br>The MV that is running is a general, now I have a VM that I made earlier, you remember, I made a template of the MV, the deployment fails, but I can not understand where is the mistake, I made two templates with diferents OSTEMPLATE but failed, I send templates and file log:<br>
</span><span class=""><br>1. <br>NAME="VMdebianm64"<br>NIC=[NETWORK_ID="0"]<br>OS=[ARCH="x86_64"]<br>VE_LAYOUT="ploop"<br>MEMORY="512"<br>CPU="0.01"<br>VCPU="1"<br>
REQUIREMENTS="CLUSTER_ID=\"100\""<br>RCLOCAL="rc.local"<br>OSTEMPLATE="debian-7.0-x86_64"<br>DISK=[IMAGE_ID="2"]<br>GRAPHICS=[TYPE="VNC",PORT="5900",LISTEN="0.0.0.0"]<br>
<br></span></span></div><span id="result_box" class="" lang="en"><span class="">- Log file:<br><br></span></span><div><div><div><div class="gmail_extra">oneadmin@ubuntuOpNeb:~$ cat /var/log/one/10.log<br>Sun Dec 15 23:42:27 2013 [DiM][I]: New VM state is ACTIVE.<br>
Sun Dec 15 23:42:27 2013 [LCM][I]: New VM state is PROLOG.<br>Sun Dec 15 23:42:27 2013 [VM][I]: Virtual Machine has no context<br>Sun Dec 15 23:43:19 2013 [LCM][I]: New VM state is BOOT<br>Sun Dec 15 23:43:19 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/10/deployment.0<br>
Sun Dec 15 23:43:20 2013 [VMM][I]: ExitCode: 0<br>Sun Dec 15 23:43:20 2013 [VMM][I]: Successfully execute network driver operation: pre.<br>Sun Dec 15 23:51:20 2013 [VMM][I]: Command execution fail: cat << EOT | /vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/10/deployment.0' 'ubuntu' 10 ubuntu<br>
Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz" "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387169010" 2> /dev/null; true".<br>
Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf "/vz/one/datastores/0/10/disk.0" "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".<br>Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo /usr/sbin/vzctl create 1010 --layout simfs --ostemplate "debian-7.0-x86_64" --private "/vz/one/datastores/0/10/private" --root "/vz/one/datastores/0/10/root"".<br>
Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo rm -f "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".<br>Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387169010" "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz" 2> /dev/null; true".<br>
Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo cp "/vz/one/datastores/0/10/vm_conf" "/etc/vz/conf/1010.conf"".<br>Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Not performing contextualization, no context given.<br>
Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo chown 1001:1001 -R /vz/one/datastores/0/10/private".<br>Sun Dec 15 23:51:20 2013 [VMM][E]: deploy: Command "/usr/bin/sudo /usr/sbin/vzctl start 1010" failed.<br>
Sun Dec 15 23:51:20 2013 [VMM][E]: deploy: Container start failed (try to check kernel messages, e.g. "dmesg | tail")<br>Sun Dec 15 23:51:20 2013 [VMM][E]: Container start failed (try to check kernel messages, e.g. "dmesg | tail")<br>
Sun Dec 15 23:51:20 2013 [VMM][E]: <br>Sun Dec 15 23:51:20 2013 [VMM][I]: ExitCode: 79<br>Sun Dec 15 23:51:20 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.<br>Sun Dec 15 23:51:20 2013 [VMM][E]: Error deploying virtual machine: Container start failed (try to check kernel messages, e.g. "dmesg | tail")<br>
Sun Dec 15 23:51:20 2013 [DiM][I]: New VM state is FAILED<br><br><br></div><div class="gmail_extra">2. Another template<br>NAME="VMopenvzamd64"<br>NIC=[NETWORK_ID="0"]<br>OS=[ARCH="x86_64"]<br>
VE_LAYOUT="ploop"<br>MEMORY="512"<br>CPU="0.01"<br>VCPU="1"<br>REQUIREMENTS="CLUSTER_ID=\"100\""<br>RCLOCAL="rc.local"<br>OSTEMPLATE="VMopenvzamd64"<br>
DISK=[IMAGE_ID="2"]<br>GRAPHICS=[TYPE="VNC",PORT="5900",LISTEN="0.0.0.0"]<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">- The log file:<br></div><div class="gmail_extra">
<div class="gmail_quote">oneadmin@ubuntuOpNeb:~$ cat /var/log/one/11.log<br>Sun Dec 15 23:56:53 2013 [DiM][I]: New VM state is ACTIVE.<br>Sun Dec 15 23:56:53 2013 [LCM][I]: New VM state is PROLOG.<br>Sun Dec 15 23:56:53 2013 [VM][I]: Virtual Machine has no context<br>
Sun Dec 15 23:57:31 2013 [LCM][I]: New VM state is BOOT<br>Sun Dec 15 23:57:31 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/11/deployment.0<br>Sun Dec 15 23:57:32 2013 [VMM][I]: ExitCode: 0<br>Sun Dec 15 23:57:32 2013 [VMM][I]: Successfully execute network driver operation: pre.<br>
Mon Dec 16 00:05:26 2013 [VMM][I]: Command execution fail: cat << EOT | /vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/11/deployment.0' 'ubuntu' 11 ubuntu<br>Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv "/var/lib/vz/template/cache/VMopenvzamd64.tar.gz" "/var/lib/vz/template/cache/VMopenvzamd64.tar.gz.1387169862" 2> /dev/null; true".<br>
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf "/vz/one/datastores/0/11/disk.0" "/var/lib/vz/template/cache/VMopenvzamd64.tar.gz"".<br>Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo /usr/sbin/vzctl create 1011 --layout simfs --ostemplate "VMopenvzamd64" --private "/vz/one/datastores/0/11/private" --root "/vz/one/datastores/0/11/root"".<br>
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo rm -f "/var/lib/vz/template/cache/VMopenvzamd64.tar.gz"".<br>Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv "/var/lib/vz/template/cache/VMopenvzamd64.tar.gz.1387169862" "/var/lib/vz/template/cache/VMopenvzamd64.tar.gz" 2> /dev/null; true".<br>
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo cp "/vz/one/datastores/0/11/vm_conf" "/etc/vz/conf/1011.conf"".<br>Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Not performing contextualization, no context given.<br>
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo chown 1001:1001 -R /vz/one/datastores/0/11/private".<br>Mon Dec 16 00:05:26 2013 [VMM][E]: deploy: Command "/usr/bin/sudo /usr/sbin/vzctl start 1011" failed.<br>
Mon Dec 16 00:05:26 2013 [VMM][E]: deploy: Warning: configuration file for distribution VMopenvzamd64 not found, using defaults from /etc/vz/dists/default<br>Mon Dec 16 00:05:26 2013 [VMM][I]: Unable to start init, probably incorrect template<br>
Mon Dec 16 00:05:26 2013 [VMM][I]: Container start failed<br>Mon Dec 16 00:05:26 2013 [VMM][E]: Warning: configuration file for distribution VMopenvzamd64 not found, using defaults from /etc/vz/dists/default<br>Mon Dec 16 00:05:26 2013 [VMM][E]: Unable to start init, probably incorrect template<br>
Mon Dec 16 00:05:26 2013 [VMM][E]: Container start failed<br>Mon Dec 16 00:05:26 2013 [VMM][E]: <br>Mon Dec 16 00:05:26 2013 [VMM][I]: ExitCode: 47<br>Mon Dec 16 00:05:26 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.<br>
Mon Dec 16 00:05:26 2013 [VMM][E]: Error deploying virtual machine: Warning: configuration file for distribution VMopenvzamd64 not found, using defaults from /etc/vz/dists/default<br>Mon Dec 16 00:05:26 2013 [DiM][I]: New VM state is FAILED<br>
<br></div><div class="gmail_quote">THANKS VERY MUCH NIKOLAY<br></div><div class="gmail_quote">BEAUTIFUL DAY FOR YOU.<br><br></div><div class="gmail_quote">Caty.<br></div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Message: 3<br>
Date: Sun, 15 Dec 2013 12:50:59 +0400<br>
From: knawnd <<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] Create VM in Opennebula for OpenVZ failed<br>
Message-ID: <<a href="mailto:52AD6D73.5040704@gmail.com">52AD6D73.5040704@gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
Hi Caty,<br>
<br>
I've just checked and ploop openvz VM could be run on cluster node with<br>
mounted nfsv3 shared system DS.<br>
So please check very carefully your directories permissons and in case<br>
of NFS share also exporting and mount options.<br>
<br>
Regards,<br>
Nikolay.<br>
<br>
On 12/14/2013 09:21 PM, knawnd wrote:<br>
> Moreover, I could successfully run simfs VM on NFS shared system DS.<br>
> My settings was the following:<br>
> 1) on NFS server /etc/exports has the line<br>
> /var/lib/one/datastores <network/mask>(rw,no_subtree_check,no_root_squash)<br>
><br>
> 2) NFS directory on the cluster node was mounted as<br>
> mount -t nfs -o vers=3 <nfs-server IP address>:/var/lib/one/datastores<br>
> /vz/one/datastores/<br>
> mount |grep datastores<br>
> <nfs-server IP>:/var/lib/one/datastores on /vz/one/datastores type nfs<br>
> (rw,vers=3,addr=<nfs-server IP address>)<br>
><br>
> Directories permissions on cluster node are as below:<br>
> $ ll /vz|grep one<br>
> drwxr-xr-x 4 oneadmin oneadmin 4096 Dec 14 10:36 one<br>
><br>
> $ ll /vz/one<br>
> total 8<br>
> drwxr-x--- 7 oneadmin oneadmin 4096 Dec 14 11:56 datastores<br>
> drwxr-x--- 9 oneadmin oneadmin 4096 Dec 14 10:36 scripts<br>
><br>
> $ ll /vz/one/datastores/<br>
> total 16<br>
> drwxr-x--- 4 oneadmin oneadmin 4096 Dec 14 12:52 0<br>
> drwxr-x--- 3 oneadmin oneadmin 4096 Dec 14 10:38 1<br>
> drwxrwxr-x 2 oneadmin oneadmin 4096 Aug 5 17:21 2<br>
> drwxr-xr-x 2 root root 4096 Dec 14 11:59 vztmp<br>
><br>
> $ ll /vz/one/datastores/0/<br>
> total 8<br>
> drwxrwxr-x 3 oneadmin oneadmin 4096 Dec 14 12:48 1<br>
> drwxrwxr-x 4 oneadmin oneadmin 4096 Dec 14 13:40 2<br>
><br>
> Hope it helps.<br>
> Regards,<br>
> Nikolay.<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131215/428c5316/attachment-0001.htm" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131215/428c5316/attachment-0001.htm</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 70, Issue 90<br>
*************************************<br>
</blockquote></div><br></div></div></div></div></div>