<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Nikita,<br><br></div><div class="gmail_quote">I installed new kernel 2.6.32-042stab076.8 and deployed VM indicated by you, but this errors displays in log file:<br>

<br>oneadmin@ubuntuOpNeb:~$ cat /var/log/one/62.log<br>Fri Nov 29 21:08:42 2013 [DiM][I]: New VM state is ACTIVE.<br>Fri Nov 29 21:08:42 2013 [LCM][I]: New VM state is PROLOG.<br>Fri Nov 29 21:08:42 2013 [VM][I]: Virtual Machine has no context<br>

Fri Nov 29 21:08:57 2013 [LCM][I]: New VM state is BOOT<br>Fri Nov 29 21:08:57 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/62/deployment.0<br>Fri Nov 29 21:08:58 2013 [VMM][I]: ExitCode: 0<br>Fri Nov 29 21:08:58 2013 [VMM][I]: Successfully execute network driver operation: pre.<br>

Fri Nov 29 21:09:02 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/ovz/deploy '/var/lib/one/datastores/104/62/deployment.0' 'ubuntu' 62 ubuntu<br>Fri Nov 29 21:09:02 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz" "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.1385777341" 2> /dev/null; true".<br>

Fri Nov 29 21:09:02 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf "/var/lib/one/datastores/104/62/disk.0" "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz"".<br>Fri Nov 29 21:09:02 2013 [VMM][E]: deploy: Command "/usr/bin/sudo /usr/sbin/vzctl create 1062 --layout ploop --ostemplate "debian-7.0-x64" --private "/var/lib/one/datastores/104/62/private" --root "/var/lib/one/datastores/104/62/root"" failed.<br>

Fri Nov 29 21:09:02 2013 [VMM][E]: deploy: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor<br>Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to create image: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor [23]<br>

Fri Nov 29 21:09:02 2013 [VMM][I]: Creation of container private area failed<br>Fri Nov 29 21:09:02 2013 [VMM][E]: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor<br>

Fri Nov 29 21:09:02 2013 [VMM][E]: Failed to create image: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor [23]<br>Fri Nov 29 21:09:02 2013 [VMM][E]: Creation of container private area failed<br>

Fri Nov 29 21:09:02 2013 [VMM][E]: <br>Fri Nov 29 21:09:02 2013 [VMM][I]: ExitCode: 151<br>Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.<br>Fri Nov 29 21:09:02 2013 [VMM][E]: Error deploying virtual machine: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor<br>

Fri Nov 29 21:09:02 2013 [DiM][I]: New VM state is FAILED<br><br></div><div class="gmail_quote">Thanks for you help Nikita.<br><br></div><div class="gmail_quote">Regards, Caty<br></div><div class="gmail_quote"><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"><div class="im">
Message: 2<br>
Date: Wed, 27 Nov 2013 17:23:09 +0400<br>
From: <a href="mailto:knawnd@gmail.com" target="_blank">knawnd@gmail.com</a><br></div>
To: <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.open,</a></blockquote><div><div class="h5"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<a href="mailto:users@lists.opennebula.org" target="_blank">nebula.org</a><br>

Subject: Re: [one-users] VM in Opennebula for OpenVZ failed<br>
Message-ID: <<a href="mailto:5295F23D.8040106@gmail.com" target="_blank">5295F23D.8040106@gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Hi Catalina,<br>
<br>
please see my comments inline<br>
<br>
Catalina Quinde wrote on 27/11/13 14:17:<br>
><br>
>     2. Maybe you got incorrect template, try deploying it by "vzctl create" to see if it works<br>
><br>
> In the process of creating the template I copy debian.conf as VMdebianm64.conf<br>
it was not necessary to do that. It should be enough just to specify a proper value in OSTEMPLATE<br>
opennebula VM template, e.g.<br>
OSTEMPLATE="debian-7.0-x64"<br>
In that case OpenVZ hypervisor should take into account /etc/vz/dists/debian.conf on the cloud node.<br>
><br>
>     3. What procedure did you perform to get an image archive for OpenNebula out of the created VM?<br>
><br>
> When I created the VM in OpenVZ node I used this:<br>
> sudo wget <a href="http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz" target="_blank">http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz</a>,<br>


> this archive is in /var/lib/vz/template/cache. then with command:<br>
> sudo vzctl create 101 --ostemplate debian-7.0-amd64-minimal, I created VM, I was in<br>
> /var/lib/vz/template/cache directory.<br>
><br>
> But in /etc/vz/dist/ directory is not present "debian-7.0-amd64-minimal" are present this:<br>
> alpine.conf            gentoo.conf slackware-9.1.conf<br>
> altlinux-2.4.conf        mandrake.conf slackware.conf<br>
> altlinux.conf            opensuse.conf    sles.conf<br>
> arch.conf            owl.conf        suse-7.3.conf<br>
> centos.conf            redhat-7.0.conf suse-8.0.conf<br>
> debian-3.0.conf            redhat-7.1.conf suse-8.1.conf<br>
> debian-3.1.conf            redhat-7.2.conf suse-8.2.conf<br>
> debian.conf            redhat-7.3.conf    suse.conf<br>
> default                redhat.conf ubuntu-6.06.conf<br>
> distribution.conf-template  rhel.conf ubuntu.conf<br>
> fedora.conf            scientific.conf VMdebianm64.conf<br>
> fedora-core.conf        scripts<br>
> funtoo.conf            slackware-9.0.conf<br>
Please perform the following steps as oneadmin user on front-end node:<br>
1) $ wget <a href="http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz" target="_blank">http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz</a> -P<br>


/tmp/<br>
<br>
2) $ oneimage create --name "debian-7.0-amd64-minimal" --path /tmp/debian-7.0-amd64-minimal.tar.gz<br>
--prefix sd --description "Debian 7.0 x64 minimal"<br>
<br>
3) Create VM template similar to one below:<br>
<br>
CPU="0.01"<br>
DISK=[<br>
   IMAGE_ID="6",<br>
   SIZE="20480" ]<br>
DISK=[<br>
   SIZE="2048",<br>
   TYPE="swap" ]<br>
LOOKUP_HOSTNAME="true"<br>
MEMORY="2048"<br>
NIC=[<br>
   NETWORK_ID="2" ]<br>
OS=[<br>
   ARCH="x86_64",<br>
   BOOT="sd" ]<br>
OSTEMPLATE="debian-7.0-x64"<br>
RCLOCAL="rc.local"<br>
VCPU="1"<br>
VE_LAYOUT="ploop"<br>
<br>
4)<br>
$ onetemplate instantiate <template id><br>
<br>
Please, report back on the result.<br>
<br>
Regards,<br>
Nikolay.<br>
<br>
><br>
><br>
>     Regards,<br>
>     Nikita<br>
><br>
<br>
<br>
<br></blockquote></div></div></div><br></div></div>
</div><br></div>