[one-users] VM in Opennebula for OpenVZ failed

Catalina Quinde catalinaquinde at gmail.com
Sun Nov 17 21:19:23 PST 2013


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>

> Send Users mailing list submissions to
>         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
>
> You can reach the person managing the list at
>         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)
>    2. Re: Create Swap locally (Alberto Pic?n Couselo)
>    3. Contextualisation with "Upstart" (Gareth Bult)
>    4. Context CDROM seen as hard drive (Daniel Dehennin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 16 Nov 2013 13:52:40 +0400
> From: knawnd at gmail.com
> To: users at lists.opennebula.org
> Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
> Message-ID: <52874068.4090706 at gmail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Catalina Quinde wrote on 15/11/13 23:11:
> > Hi Nikolay
> >
> > I use http://wiki.opennebula.org/openvz4opennebula, this guide helped
> > me installed  openvz for opennebula
> Hi, Caty!
>
> Please, use https://bitbucket.org/hpcc_kpi/opennebula-openvz/wiki/Home
> since the one you are referring to is outdated (it was written for
> OpenNebula v2.2.1).
>
> I would suggest you to deploy your ONE node from scratch using the link
> I posted above.
>
> Regards,
> Nikolay.
>
> >
> > Regards, Caty
> >
> > Hi Matias,
> >
> > I should have typed inadvertently space
> >
> > Thanks, Caty.
> >
> >
> >     Message: 4
> >     Date: Fri, 15 Nov 2013 21:33:26 +0400
> >     From: knawnd at gmail.com <mailto:knawnd at gmail.com>
> >     To: users at lists.opennebula.org <mailto:users at lists.opennebula.org>
> >     Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
> >     Message-ID: <52865AE6.6040407 at gmail.com
> >     <mailto:52865AE6.6040407 at gmail.com>>
> >     Content-Type: text/plain; charset=UTF-8; format=flowed
> >
> >     Catalina Quinde wrote on 15/11/13 20:23:
> >     > Please help me, do not find much information opennebula with
> openvz.
> >     Hi, Caty!
> >
> >     What openvz driver are you using?
> >     I am using that one [1].
> >     [1] https://bitbucket.org/hpcc_kpi/opennebula-openvz/wiki/Home
> >
> >     Regards,
> >     Nikolay.
> >
> >     >
> >     > Regards, Caty
> >     >
> >     >
> >     > _______________________________________________
> >     > Users mailing list
> >     > Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
> >     > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
> >
> >     ------------------------------
> >
> >     Message: 5
> >     Date: Fri, 15 Nov 2013 19:33:46 +0100
> >     From: Matthias Albert <matthias.albert at inovex.de
> >     <mailto:matthias.albert at inovex.de>>
> >     To: Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
> >     Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
> >     Message-ID: <3EEC3C36-AFAE-4791-A789-6EEF91E3D3EC at inovex.de
> >     <mailto:3EEC3C36-AFAE-4791-A789-6EEF91E3D3EC at inovex.de>>
> >     Content-Type: text/plain; charset="iso-8859-1"
> >
> >     Hi Caty,
> >
> >     it seems that there is only a small typo.
> >
> >     > Fri Nov 15 10:38:29 2013 [VMM][I]: bas h:
> >     /var/tmp/one/vmm/ovz/deploy: /bin/env: bad interpreter: No such
> >     file or directory
> >
> >     There is a space between "bas" and "h". Should be "bash"
> >
> >     Cheers,
> >
> >             Matthias
> >
> >     Am 15.11.2013 um 17:23 schrieb Catalina Quinde
> >     <catalinaquinde at gmail.com <mailto:catalinaquinde at gmail.com>>:
> >
> >     > Hi, friends,
> >     >
> >     > Please help me,
> >     >
> >     > I'm trying to deploy a VM from OpenNebula to a node with OpenVZ
> >     hypervisor, but status is failed
> >     >
> >     > 1. This is the template file:
> >     >
> >     > REQUIREMENTS="ID=\"3\""
> >     > CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]"]
> >     > OS=[ARCH="x86_64",BOOT="hd"]
> >     > CPU="1"
> >     > DISK=[IMAGE_ID="15"]
> >     > NIC=[NETWORK_ID="4"]
> >     > MEMORY="512"
> >     > GRAPHICS=[PORT="5900",LISTEN="0.0.0.0",TYPE="VNC"]
> >     >
> >     >
> >     > 2. The status of the picture for DISK is Rdy
> >     >
> >     > 3.. The 39.log file in / var / log / one contains
> >     > oneadmin at ubuntuOpNeb:~$ cat /var/log/one/39.log
> >     > Fri Nov 15 10:38:01 2013 [DiM][I]: New VM state is ACTIVE.
> >     > Fri Nov 15 10:38:01 2013 [LCM][I]: New VM state is PROLOG.
> >     > Fri Nov 15 10:38:29 2013 [LCM][I]: New VM state is BOOT
> >     > Fri Nov 15 10:38:29 2013 [VMM][I]: Generating deployment file:
> >     /var/lib/one/vms/39/deployment.0
> >     > Fri Nov 15 10:38:29 2013 [VMM][I]: ExitCode: 0
> >     > Fri Nov 15 10:38:29 2013 [VMM][I]: Successfully execute network
> >     driver operation: pre.
> >     > Fri Nov 15 10:38:29 2013 [VMM][I]: Command execution fail: cat
> >     << EOT | /var/tmp/one/vmm/ovz/deploy
> >     '/var/lib/one/datastores/0/39/deployment.0' 'ubuntu' 39 ubuntu
> >     > Fri Nov 15 10:38:29 2013 [VMM][I]: bas h:
> >     /var/tmp/one/vmm/ovz/deploy: /bin/env: bad interpreter: No such
> >     file or directory
> >     > Fri Nov 15 10:38:29 2013 [VMM][I]: ExitCode: 126
> >     > Fri Nov 15 10:38:29 2013 [VMM][I]: Failed to execute
> >     virtualization driver operation: deploy.
> >     > Fri Nov 15 10:38:29 2013 [VMM][E]: Error deploying virtual machine
> >     > Fri Nov 15 10:38:29 2013 [DiM][I]: New VM state is FAILED
> >     >
> >     > Please help me, do not find much information opennebula with
> openvz.
> >     >
> >     > Regards, Caty
> >     > _______________________________________________
> >     > Users mailing list
> >     > Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
> >     > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >     -------------- next part --------------
> >     A non-text attachment was scrubbed...
> >     Name: signature.asc
> >     Type: application/pgp-signature
> >     Size: 495 bytes
> >     Desc: Message signed with OpenPGP using GPGMail
> >     URL:
> >     <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131115/942ec4c4/attachment.pgp
> >
> >
> >     ------------------------------
> >
> >     _______________________________________________
> >     Users mailing list
> >     Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
> >     http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
> >     End of Users Digest, Vol 69, Issue 63
> >     *************************************
> >
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131118/b315bd89/attachment-0002.htm>


More information about the Users mailing list