[one-users] VM Opennebula with OpenVZ

Nikita Balashov balashov.nikita at gmail.com
Thu Feb 6 05:59:18 PST 2014


DATASTORE_LOCATION used only to specify location on hosts, not on the
frontend. So, you need to create the mentioned simlink on the frontend with
the current implementation of the driver


2014-02-06 Catalina Quinde <catalinaquinde at gmail.com>:

> Thanks Nikita for reply,
>
> I don't have symlink "ln -s /var/lib/one/datastores /vz/one/datastores",
> in configuration file oned.conf I have:
>
> DATASTORE_LOCATION = /vz/one/datastores
>
> Regards, Caty.
>
>
>
> 2014-02-06 6:45 GMT-05:00 Nikita Balashov <balashov.nikita at gmail.com>:
>
> Have you created a symlink on the front-end "ln -s /var/lib/one/datastores
>> /vz/one/datastores"?
>>
>>
>> 2014-02-06 Catalina Quinde <catalinaquinde at gmail.com>:
>>
>>> Hi Nikolay,
>>>
>>> Thanks for reply, I used Opennebula version 4.2 and OpenVZ version
>>> 2.6.32-042stab083.2, the vm log file is below, the mv runs correctly but
>>> when I put it on STOP has errors:
>>>
>>> alexopn at ubuntuOpNeb:~$ cat /var/log/one/14.log
>>> Wed Dec 18 15:46:10 2013 [DiM][I]: New VM state is ACTIVE.
>>> Wed Dec 18 15:46:10 2013 [LCM][I]: New VM state is PROLOG.
>>> Wed Dec 18 15:46:10 2013 [VM][I]: Virtual Machine has no context
>>> Wed Dec 18 15:46:48 2013 [LCM][I]: New VM state is BOOT
>>> Wed Dec 18 15:46:48 2013 [VMM][I]: Generating deployment file:
>>> /var/lib/one/vms/14/deployment.0
>>> Wed Dec 18 15:46:48 2013 [VMM][I]: ExitCode: 0
>>> Wed Dec 18 15:46:48 2013 [VMM][I]: Successfully execute network driver
>>> operation: pre.
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv
>>> "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"
>>> "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387399618" 2>
>>> /dev/null; true".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln
>>> -sf "/vz/one/datastores/0/14/disk.0"
>>> "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo
>>> /usr/sbin/vzctl create 1014 --layout ploop --ostemplate "debian-7.0-x86_64"
>>> --private "/vz/one/datastores/0/14/private" --root
>>> "/vz/one/datastores/0/14/root"".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo
>>> /usr/sbin/vzctl set 1014 --diskspace 2G:2.2G --save".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo tar
>>> -cf "/vz/one/datastores/0/14/disk.0" --gzip -Sp -C
>>> "/vz/one/datastores/0/14/private" . --ignore-failed-read".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo rm -f
>>> "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv
>>> "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387399618"
>>> "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz" 2> /dev/null; true".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo cp
>>> "/vz/one/datastores/0/14/vm_conf" "/etc/vz/conf/1014.conf"".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Not performing
>>> contextualization, no context given.
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo chown
>>> 1001:1001 -R /vz/one/datastores/0/14/private".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo
>>> /usr/sbin/vzctl start 1014".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo chown
>>> 1001:1001 /vz/one/datastores/0/14/root".
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: ExitCode: 0
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: Successfully execute virtualization
>>> driver operation: deploy.
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: ExitCode: 0
>>> Wed Dec 18 15:47:54 2013 [VMM][I]: Successfully execute network driver
>>> operation: post.
>>> Wed Dec 18 15:47:54 2013 [LCM][I]: New VM state is RUNNING
>>> Wed Dec 18 16:13:40 2013 [LCM][I]: New VM state is SAVE_STOP
>>> Wed Dec 18 16:13:56 2013 [VMM][I]: save: Executed "/usr/bin/sudo
>>> /usr/sbin/vzctl chkpnt 1014 --dumpfile /vz/one/datastores/0/14/checkpoint".
>>> Wed Dec 18 16:13:56 2013 [VMM][I]: save: Executed "/usr/bin/sudo chown
>>> oneadmin:oneadmin /vz/one/datastores/0/14/checkpoint".
>>> Wed Dec 18 16:13:56 2013 [VMM][I]: ExitCode: 0
>>> Wed Dec 18 16:13:56 2013 [VMM][I]: Successfully execute virtualization
>>> driver operation: save.
>>> Wed Dec 18 16:13:56 2013 [VMM][I]: ExitCode: 0
>>> Wed Dec 18 16:13:56 2013 [VMM][I]: Successfully execute network driver
>>> operation: clean.
>>> Wed Dec 18 16:13:56 2013 [LCM][I]: New VM state is EPILOG_STOP
>>> Wed Dec 18 16:14:02 2013 [TM][I]: Command execution fail:
>>> /var/lib/one/remotes/tm/ssh/mv ubuntu:/vz/one/datastores/0/14
>>> ubuntuOpNeb:/vz/one/datastores/0/14 14 0
>>> Wed Dec 18 16:14:02 2013 [TM][I]: mv: Moving
>>> ubuntu:/vz/one/datastores/0/14 to ubuntuOpNeb:/vz/one/datastores/0/14
>>> Wed Dec 18 16:14:02 2013 [TM][E]: mv: Command "eval ssh ubuntu 'tar -C
>>> /vz/one/datastores/0 -cf - 14' | ssh ubuntuOpNeb 'tar -C
>>> /vz/one/datastores/0 -xf -'" failed: tar: /vz/one/datastores/0: No se puede
>>> open: No existe el archivo o el directorio
>>> Wed Dec 18 16:14:02 2013 [TM][I]: tar: Error is not recoverable: exiting
>>> now
>>> Wed Dec 18 16:14:02 2013 [TM][E]: Error copying disk directory to target
>>> host
>>> Wed Dec 18 16:14:02 2013 [TM][I]: ExitCode: 2
>>> Wed Dec 18 16:14:02 2013 [TM][E]: Error executing image transfer script:
>>> Error copying disk directory to target host
>>> Wed Dec 18 16:14:02 2013 [DiM][I]: New VM state is FAILED
>>> Wed Dec 18 16:15:30 2013 [DiM][I]: New VM state is DONE.
>>> alexopn at ubuntuOpNeb:~$
>>>
>>> Thanks, Caty.
>>>
>>> _______________________________________________
>>> 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/20140206/b3cd6993/attachment-0002.htm>


More information about the Users mailing list