[one-users] VM in Opennebula for OpenVZ failed

Catalina Quinde catalinaquinde at gmail.com
Wed Nov 20 02:34:16 PST 2013


Hi friends, please help me.

I have done the following:

1. Opennebula v4.2 works with varios hypervisors KVM, XEN, OpenVZ and Esxi

2. I made a cluster for openvz node
oneadmin at ubuntuOpNeb:~$ onecluster show 101
CLUSTER 101
INFORMATION
ID                : 101
NAME              : OpenVZclus
SYSTEM DS         : 104

CLUSTER
TEMPLATE

HOSTS
3

VNETS
4

DATASTORES
104
105

3. I made two datastores in this cluster:

oneadmin at ubuntuOpNeb:~$ onedatastore show 104
DATASTORE 104
INFORMATION
ID             : 104
NAME           : ssh_dsOpvz
USER           : oneadmin
GROUP          : oneadmin
CLUSTER        : OpenVZclus
TYPE           : SYSTEM
DS_MAD         : -
TM_MAD         : ssh
BASE PATH      : /var/lib/one/datastores/104
DISK_TYPE      : FILE

DATASTORE
CAPACITY
TOTAL:         : -
USED:          : -
FREE:          : -

PERMISSIONS

OWNER          : um-
GROUP          : u--
OTHER          : ---

DATASTORE
TEMPLATE
DS_MAD="-"
TM_MAD="ssh"
TYPE="SYSTEM_DS"

IMAGES

oneadmin at ubuntuOpNeb:~$ onedatastore show 105
DATASTORE 105
INFORMATION
ID             : 105
NAME           : ssh_diOpvz
USER           : oneadmin
GROUP          : oneadmin
CLUSTER        : OpenVZclus
TYPE           : IMAGE
DS_MAD         : fs
TM_MAD         : ssh
BASE PATH      : /var/lib/one/datastores/105
DISK_TYPE      : FILE

DATASTORE
CAPACITY
TOTAL:         : 23.6G
USED:          : 189M
FREE:          : 2.5G

PERMISSIONS

OWNER          : um-
GROUP          : u--
OTHER          : ---

DATASTORE
TEMPLATE
DS_MAD="fs"
NO_DECOMPRESS="yes"
TM_MAD="ssh"
TYPE="IMAGE_DS"

IMAGES
17

4. i register image for datastore 104 yours state is rdy
5. I made a template file, contains:

GRAPHICS=[PORT="5900",LISTEN="0.0.0.0",TYPE="VNC"]
CPU="1"
REQUIREMENTS="CLUSTER_ID=\"101\""
NIC=[NETWORK_ID="4"]
OS=[ARCH="x86_64",BOOT="hd"]
CONTEXT=[SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",NETWORK="YES"]
OSTEMPLATE="debian"
DISK=[IMAGE_ID="17",DEV_PREFIX="sd"]
MEMORY="512"
CLUSTER_101="101"

6. In Openvz node in /etc/vz/dists contains
oneadmin at ubuntu:~$ ls /etc/vz/dists
altlinux-2.4.conf        gentoo.conf      slackware-9.0.conf
altlinux.conf            mandrake.conf    slackware-9.1.conf
arch.conf            opensuse.conf    slackware.conf
centos.conf            owl.conf         sles.conf
debian-3.0.conf            redhat-7.0.conf  suse-7.3.conf
debian-3.1.conf            redhat-7.1.conf  suse-8.0.conf
debian.conf            redhat-7.2.conf  suse-8.1.conf
default                redhat-7.3.conf  suse-8.2.conf
distribution.conf-template  redhat.conf      suse.conf
fedora.conf            rhel.conf         ubuntu-6.06.conf
fedora-core.conf        scientific.conf  ubuntu.conf
funtoo.conf            scripts

then no contains "sl-6-x86_64", therefore I used OSTEMPLATE="debian"

7. when VM is deployed status is failed, the log file contains:

oneadmin at ubuntuOpNeb:~$ cat /var/log/one/51.log
Wed Nov 20 05:10:23 2013 [DiM][I]: New VM state is ACTIVE.
Wed Nov 20 05:10:23 2013 [LCM][I]: New VM state is PROLOG.
Wed Nov 20 05:11:15 2013 [LCM][I]: New VM state is BOOT
Wed Nov 20 05:11:15 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/51/deployment.0
Wed Nov 20 05:11:15 2013 [VMM][I]: ExitCode: 0
Wed Nov 20 05:11:15 2013 [VMM][I]: Successfully execute network driver
operation: pre.
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
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".
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.
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
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
Wed Nov 20 05:11:16 2013 [VMM][E]:
Wed Nov 20 05:11:16 2013 [VMM][I]: ExitCode: 1
Wed Nov 20 05:11:16 2013 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
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
Wed Nov 20 05:11:16 2013 [DiM][I]: New VM state is FAILED

Please friends help me resolved this is urgent. Thanks.

Regards, Caty.

------------------------------

>
> Message: 2
> Date: Tue, 19 Nov 2013 14:37:46 -0500
> From: Catalina Quinde <catalinaquinde at gmail.com>
> To: users at lists.opennebula.org
> Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
> Message-ID:
>         <
> CAPgz++xn85XkZVDH8s4jawUTY2VSnCuHep0JyhR8va0B07NMvA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Nicolay,
>
> I made the change indicated by you, but the same error is executing,
> another idea, please?
>
> Thanks, Caty.
>
> Message: 2
> > Date: Tue, 19 Nov 2013 11:56:22 +0400
> > From: knawnd at gmail.com
> > To: users at lists.opennebula.org
> > Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
> > Message-ID: <528B19A6.1040501 at gmail.com>
> > Content-Type: text/plain; charset=UTF-8; format=flowed
> >
> > Make sure that in VM template you specify OSTEMPLATE variable with an
> > appropriate valueas it is written in the guide.
> > For example,
> > OSTEMPLATE="sl-6-x86_64"
> >
> > I does make a sense to use only those names what are mentioned inthe
> > filenames located in /etc/vz/dists/ since OpenVZ hypervisor invokes
> > corresponding scripts located in /etc/vz/dists/scripts/.
> > I.e. if you specify something like
> > OSTEMPLATE="mytestvm" and there is no config file mytestvm.conf in
> > /etc/vz/dists and no scripts in /etc/vz/dists/scripts/ then default
> > config and scripts will beused by openvz hypervisor on the cloud worker
> > node.
> >
> > Hope it helps,
> > Nikolay.
> >
> > Catalina Quinde wrote on 18/11/13 09:43:
> > > Nicolay Nikolay then send the mail before, I noticed an error in the
> > > sudoers file at OpenVZ node for requesting password, and I resolve, I
> > > made a new virtual machine, but the problem of the file
> > > "default.tar.gz" continues, I don't know because usedthis one.I send
> > > contains file 44.log:
> > >
> > > oneadmin at ubuntuOpNeb:~$ cat /var/log/one/44.log
> > > Mon Nov 18 00:29:26 2013 [DiM][I]: New VM state is ACTIVE.
> > > Mon Nov 18 00:29:26 2013 [LCM][I]: New VM state is PROLOG.
> > > Mon Nov 18 00:29:47 2013 [LCM][I]: New VM state is BOOT
> > > Mon Nov 18 00:29:47 2013 [VMM][I]: Generating deployment file:
> > > /var/lib/one/vms/44/deployment.0
> > > Mon Nov 18 00:29:48 2013 [VMM][I]: ExitCode: 0
> > > Mon Nov 18 00:29:48 2013 [VMM][I]: Successfully execute network driver
> > > operation: pre.
> > > Mon Nov 18 00:29:48 2013 [VMM][I]: Command execution fail: cat << EOT
> > > | /var/tmp/one/vmm/ovz/deploy
> > > '/var/lib/one/datastores/0/44/deployment.0' 'ubuntu' 44 ubuntu
> > > Mon Nov 18 00:29:48 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.1384752587" 2> /dev/null;
> > > true".
> > > Mon Nov 18 00:29:48 2013 [VMM][E]: deploy: Command "/usr/bin/sudo ln
> > > -sf "" "/var/lib/vz/template/cache/default.tar.gz"" failed.
> > > Mon Nov 18 00:29:48 2013 [VMM][E]: deploy: ln: failed to create
> > > symbolic link `/var/lib/vz/template/cache/default.tar.gz' -> `': No
> > > such file or directory
> > > Mon Nov 18 00:29:48 2013 [VMM][E]: ln: failed to create symbolic link
> > > `/var/lib/vz/template/cache/default.tar.gz' -> `': No such file or
> > > directory
> > > Mon Nov 18 00:29:48 2013 [VMM][E]:
> > > Mon Nov 18 00:29:48 2013 [VMM][I]: ExitCode: 1
> > > Mon Nov 18 00:29:48 2013 [VMM][I]: Failed to execute virtualization
> > > driver operation: deploy.
> > > Mon Nov 18 00:29:48 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
> > > Mon Nov 18 00:29:48 2013 [DiM][I]: New VM state is FAILED
> > >
> > > Thanks Nicolay.
> > >
> > >
> > > 2013/11/18 Catalina Quinde <catalinaquinde at gmail.com
> > > <mailto:catalinaquinde at gmail.com>>
> > >
> > >     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
> > >     <mailto:users-request at lists.opennebula.org>>
> > >
> > >         Send Users mailing list submissions to
> > >         users at lists.opennebula.org <mailto: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
> > >         <mailto:users-request at lists.opennebula.org>
> > >
> > >         You can reach the person managing the list at
> > >         users-owner at lists.opennebula.org
> > >         <mailto: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
> > >         <mailto: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)
> > >
> > >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131119/a9226303/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> End of Users Digest, Vol 69, Issue 82
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131120/4740c09d/attachment-0002.htm>


More information about the Users mailing list