[one-users] Users Digest, Vol 69, Issue 141

Catalina Quinde catalinaquinde at gmail.com
Fri Nov 29 19:38:18 PST 2013


Hi Nikita,

I installed new kernel 2.6.32-042stab076.8 and deployed VM indicated by
you, but this errors displays in log file:

oneadmin at ubuntuOpNeb:~$ cat /var/log/one/62.log
Fri Nov 29 21:08:42 2013 [DiM][I]: New VM state is ACTIVE.
Fri Nov 29 21:08:42 2013 [LCM][I]: New VM state is PROLOG.
Fri Nov 29 21:08:42 2013 [VM][I]: Virtual Machine has no context
Fri Nov 29 21:08:57 2013 [LCM][I]: New VM state is BOOT
Fri Nov 29 21:08:57 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/62/deployment.0
Fri Nov 29 21:08:58 2013 [VMM][I]: ExitCode: 0
Fri Nov 29 21:08:58 2013 [VMM][I]: Successfully execute network driver
operation: pre.
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
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".
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"".
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.
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
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]
Fri Nov 29 21:09:02 2013 [VMM][I]: Creation of container private area failed
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
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]
Fri Nov 29 21:09:02 2013 [VMM][E]: Creation of container private area failed
Fri Nov 29 21:09:02 2013 [VMM][E]:
Fri Nov 29 21:09:02 2013 [VMM][I]: ExitCode: 151
Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
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
Fri Nov 29 21:09:02 2013 [DiM][I]: New VM state is FAILED

Thanks for you help Nikita.

Regards, Caty


Message: 2
> Date: Wed, 27 Nov 2013 17:23:09 +0400
> From: knawnd at gmail.com
> To: users at lists.open, <users at lists.opennebula.org>


nebula.org <users at lists.opennebula.org>
> Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
> Message-ID: <5295F23D.8040106 at gmail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hi Catalina,
>
> please see my comments inline
>
> Catalina Quinde wrote on 27/11/13 14:17:
> >
> >     2. Maybe you got incorrect template, try deploying it by "vzctl
> create" to see if it works
> >
> > In the process of creating the template I copy debian.conf as
> VMdebianm64.conf
> it was not necessary to do that. It should be enough just to specify a
> proper value in OSTEMPLATE
> opennebula VM template, e.g.
> OSTEMPLATE="debian-7.0-x64"
> In that case OpenVZ hypervisor should take into account
> /etc/vz/dists/debian.conf on the cloud node.
> >
> >     3. What procedure did you perform to get an image archive for
> OpenNebula out of the created VM?
> >
> > When I created the VM in OpenVZ node I used this:
> > sudo wget
> http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz
> ,
> > this archive is in /var/lib/vz/template/cache. then with command:
> > sudo vzctl create 101 --ostemplate debian-7.0-amd64-minimal, I created
> VM, I was in
> > /var/lib/vz/template/cache directory.
> >
> > But in /etc/vz/dist/ directory is not present "debian-7.0-amd64-minimal"
> are present this:
> > alpine.conf            gentoo.conf slackware-9.1.conf
> > altlinux-2.4.conf        mandrake.conf slackware.conf
> > altlinux.conf            opensuse.conf    sles.conf
> > arch.conf            owl.conf        suse-7.3.conf
> > centos.conf            redhat-7.0.conf suse-8.0.conf
> > debian-3.0.conf            redhat-7.1.conf suse-8.1.conf
> > debian-3.1.conf            redhat-7.2.conf suse-8.2.conf
> > debian.conf            redhat-7.3.conf    suse.conf
> > default                redhat.conf ubuntu-6.06.conf
> > distribution.conf-template  rhel.conf ubuntu.conf
> > fedora.conf            scientific.conf VMdebianm64.conf
> > fedora-core.conf        scripts
> > funtoo.conf            slackware-9.0.conf
> Please perform the following steps as oneadmin user on front-end node:
> 1) $ wget
> http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz-P
> /tmp/
>
> 2) $ oneimage create --name "debian-7.0-amd64-minimal" --path
> /tmp/debian-7.0-amd64-minimal.tar.gz
> --prefix sd --description "Debian 7.0 x64 minimal"
>
> 3) Create VM template similar to one below:
>
> CPU="0.01"
> DISK=[
>    IMAGE_ID="6",
>    SIZE="20480" ]
> DISK=[
>    SIZE="2048",
>    TYPE="swap" ]
> LOOKUP_HOSTNAME="true"
> MEMORY="2048"
> NIC=[
>    NETWORK_ID="2" ]
> OS=[
>    ARCH="x86_64",
>    BOOT="sd" ]
> OSTEMPLATE="debian-7.0-x64"
> RCLOCAL="rc.local"
> VCPU="1"
> VE_LAYOUT="ploop"
>
> 4)
> $ onetemplate instantiate <template id>
>
> Please, report back on the result.
>
> Regards,
> Nikolay.
>
> >
> >
> >     Regards,
> >     Nikita
> >
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131129/c3e38c32/attachment.htm>


More information about the Users mailing list