[one-users] VM in Opennebula for OpenVZ failed
Catalina Quinde
catalinaquinde at gmail.com
Tue Nov 19 11:37:46 PST 2013
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-0001.htm>
More information about the Users
mailing list