Hi Caty,

as I wrote you before, please, don't send personal emails, use opennebulausers mail list so others can also benefit on that. Opennebula users mail list archive is kept online. So if someone in the future will have the same error message as you he/her will be able to find a solution on the web in opennebula mail list archive.

As for your problem, try to add SIZE subattribute (in megabytes) to DISK 
attributee.g. as below:

NAME="VMdebianm64"
GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0",PORT="5900"]
VE_LAYOUT="ploop"
VCPU="1"
MEMORY="512"
RCLOCAL="rc.local"
NIC=[NETWORK_ID="0"]
OSTEMPLATE="VMdebianm64"
DISK=[IMAGE_ID="1",SIZE="10240"]
CPU="0.01"
REQUIREMENTS="CLUSTER_ID=\"100\""
OS=[ARCH="x86_64"]

HTH,
Nikolay.

Catalina Quinde wrote on 18/12/13 07:30:
Hi, Nikolay

This is Caty again, I forget attach template

NAME="VMdebianm64"
GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0",PORT="5900"]
VE_LAYOUT="ploop"
VCPU="1"
MEMORY="512"
RCLOCAL="rc.local"
NIC=[NETWORK_ID="0"]
OSTEMPLATE="VMdebianm64"
DISK=[IMAGE_ID="1"]
CPU="0.01"
REQUIREMENTS="CLUSTER_ID=\"100\""
OS=[ARCH="x86_64"]

too VNC don't work in other VM running.

Thanks again, Nikolay.


2013/12/17 Catalina Quinde <[email protected] 
<mailto:[email protected]>>

    Hi Nikolay,

    Thanks for reply, some time ago, I made a backup of VM made on OpenVZ for 
distributed its by
    Opennebula, I used steps detailed in file attached, but when I deploy that 
VM, this failed,
    this is log:

    alexopn@ubuntuOpNeb:~$ cat /var/log/one/7.log
    Sun Dec 15 22:29:14 2013 [DiM][I]: New VM state is ACTIVE.
    Sun Dec 15 22:29:14 2013 [LCM][I]: New VM state is PROLOG.
    Sun Dec 15 22:29:14 2013 [VM][I]: Virtual Machine has no context
    Sun Dec 15 22:29:21 2013 [LCM][I]: New VM state is BOOT
    Sun Dec 15 22:29:21 2013 [VMM][I]: Generating deployment file: 
/var/lib/one/vms/7/deployment.0
    Sun Dec 15 22:29:21 2013 [VMM][I]: ExitCode: 0
    Sun Dec 15 22:29:21 2013 [VMM][I]: Successfully execute network driver 
operation: pre.
    Sun Dec 15 22:29:22 2013 [VMM][I]: Command execution fail: cat << EOT |
    /vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/7/deployment.0' 
'ubuntu' 7 ubuntu
    Sun Dec 15 22:29:22 2013 [VMM][I]: gzip: stdin: unexpected end of file
    Sun Dec 15 22:29:22 2013 [VMM][I]: tar: Child returned status 1
    Sun Dec 15 22:29:22 2013 [VMM][I]: tar: Error is not recoverable: exiting 
now
    Sun Dec 15 22:29:22 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.1387164568" 2> /dev/null; 
true".
    Sun Dec 15 22:29:22 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf
    "/vz/one/datastores/0/7/disk.0" 
"/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".
    Sun Dec 15 22:29:22 2013 [VMM][E]: deploy: Command "/usr/bin/sudo 
/usr/sbin/vzctl create 1007
    --layout simfs --ostemplate "debian-7.0-x86_64" --private 
"/vz/one/datastores/0/7/private"
    --root "/vz/one/datastores/0/7/root"" failed.
    Sun Dec 15 22:29:22 2013 [VMM][E]: deploy: 
/usr/libexec/vzctl/scripts/vps-create: 86: [:
    Illegal number: 0.0283203
    Sun Dec 15 22:29:22 2013 [VMM][I]: vps-create ERROR: Insufficient disk 
space in
    /vz/one/datastores/0/7/private.tmp; available: 12156808, needed: 0.0283203
    Sun Dec 15 22:29:22 2013 [VMM][I]: Creation of container private area failed
    Sun Dec 15 22:29:22 2013 [VMM][E]: /usr/libexec/vzctl/scripts/vps-create: 
86: [: Illegal
    number: 0.0283203
    Sun Dec 15 22:29:22 2013 [VMM][E]: vps-create ERROR: Insufficient disk 
space in
    /vz/one/datastores/0/7/private.tmp; available: 12156808, needed: 0.0283203
    Sun Dec 15 22:29:22 2013 [VMM][E]: Creation of container private area failed
    Sun Dec 15 22:29:22 2013 [VMM][E]:
    Sun Dec 15 22:29:22 2013 [VMM][I]: ExitCode: 46
    Sun Dec 15 22:29:22 2013 [VMM][I]: Failed to execute virtualization driver 
operation: deploy.
    Sun Dec 15 22:29:22 2013 [VMM][E]: Error deploying virtual machine:
    /usr/libexec/vzctl/scripts/vps-create: 86: [: Illegal number: 0.0283203
    Sun Dec 15 22:29:22 2013 [DiM][I]: New VM state is FAILED

    Do not know what I did wrong.

    Excuse me Nikolay so many questions, thanks very much for you help,

    Regards, Caty.


    2013/12/16 <[email protected] <mailto:[email protected]>>

        Hi Caty,

        Catalina Quinde wrote on 16/12/13 09:58:

            Hi Nikolay,

            Receive a big hug and thank you very much, the MV is now RUNNING, 
thanks, was how to
            mount the datastore, thank you .

            The MV that is running is a general, now I have a VM that I made 
earlier, you
            remember, I made a template of the MV, the deployment fails, but I 
can not understand
            where is the mistake, I made two templates with diferents 
OSTEMPLATE but failed, I
            send templates and file log:

            1.
            NAME="VMdebianm64"
            NIC=[NETWORK_ID="0"]
            OS=[ARCH="x86_64"]
            VE_LAYOUT="ploop"
            MEMORY="512"
            CPU="0.01"
            VCPU="1"
            REQUIREMENTS="CLUSTER_ID=\"100\""
            RCLOCAL="rc.local"
            OSTEMPLATE="debian-7.0-x86_64"
            DISK=[IMAGE_ID="2"]
            GRAPHICS=[TYPE="VNC",PORT="5900",LISTEN="0.0.0.0"]

            - Log file:

            oneadmin@ubuntuOpNeb:~$ cat /var/log/one/10.log
            Sun Dec 15 23:42:27 2013 [DiM][I]: New VM state is ACTIVE.
            Sun Dec 15 23:42:27 2013 [LCM][I]: New VM state is PROLOG.
            Sun Dec 15 23:42:27 2013 [VM][I]: Virtual Machine has no context
            Sun Dec 15 23:43:19 2013 [LCM][I]: New VM state is BOOT
            Sun Dec 15 23:43:19 2013 [VMM][I]: Generating deployment file:
            /var/lib/one/vms/10/deployment.0
            Sun Dec 15 23:43:20 2013 [VMM][I]: ExitCode: 0
            Sun Dec 15 23:43:20 2013 [VMM][I]: Successfully execute network 
driver operation: pre.
            Sun Dec 15 23:51:20 2013 [VMM][I]: Command execution fail: cat << 
EOT |
            /vz/one/scripts/vmm/ovz/deploy 
'/vz/one/datastores/0/10/deployment.0' 'ubuntu' 10 ubuntu
            Sun Dec 15 23:51:20 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.1387169010" 2> 
/dev/null; true".
            Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo 
ln -sf
            "/vz/one/datastores/0/10/disk.0" 
"/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".
            Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo 
/usr/sbin/vzctl
            create 1010 --layout simfs --ostemplate "debian-7.0-x86_64" 
--private
            "/vz/one/datastores/0/10/private" --root 
"/vz/one/datastores/0/10/root"".
            Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo 
rm -f
            "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".
            Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo 
mv
            "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387169010"
            "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz" 2> /dev/null; 
true".
            Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo 
cp
            "/vz/one/datastores/0/10/vm_conf" "/etc/vz/conf/1010.conf"".
            Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Not performing 
contextualization, no
            context given.
            Sun Dec 15 23:51:20 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo 
chown 1001:1001 -R
            /vz/one/datastores/0/10/private".
            Sun Dec 15 23:51:20 2013 [VMM][E]: deploy: Command "/usr/bin/sudo 
/usr/sbin/vzctl
            start 1010" failed.
            Sun Dec 15 23:51:20 2013 [VMM][E]: deploy: Container start failed 
(try to check kernel
            messages, e.g. "dmesg | tail")
            Sun Dec 15 23:51:20 2013 [VMM][E]: Container start failed (try to 
check kernel
            messages, e.g. "dmesg | tail")

        what is the output of "dmesg|tail" command as it is suggested in the 
error messages? What
        is the content of the corresponding part of /var/log/vzctl.log?



            Sun Dec 15 23:51:20 2013 [VMM][E]:
            Sun Dec 15 23:51:20 2013 [VMM][I]: ExitCode: 79
            Sun Dec 15 23:51:20 2013 [VMM][I]: Failed to execute virtualization 
driver operation:
            deploy.
            Sun Dec 15 23:51:20 2013 [VMM][E]: Error deploying virtual machine: 
Container start
            failed (try to check kernel messages, e.g. "dmesg | tail")
            Sun Dec 15 23:51:20 2013 [DiM][I]: New VM state is FAILED


            2. Another template
            NAME="VMopenvzamd64"
            NIC=[NETWORK_ID="0"]
            OS=[ARCH="x86_64"]
            VE_LAYOUT="ploop"
            MEMORY="512"
            CPU="0.01"
            VCPU="1"
            REQUIREMENTS="CLUSTER_ID=\"100\""
            RCLOCAL="rc.local"
            OSTEMPLATE="VMopenvzamd64"

        If you use non-standard OpeNVZ OS template names please make sure there 
are appropriate
        conf files in /etc/vz/dists/ which names corresponds to distro you are 
reffering to.
        Otherwise the default one will be used which is RHEL one. That's why 
you have a problem
        since OpenVZ tried to use the default config which is RHEL but it looks 
like it's not
        compatible with the OS inside VMopenvzamd64 OS template archive 
(actually error messages
        says that:

            Mon Dec 16 00:05:26 2013 [VMM][E]: deploy: Command "/usr/bin/sudo 
/usr/sbin/vzctl
            start 1011" failed.
            Mon Dec 16 00:05:26 2013 [VMM][E]: deploy: Warning: configuration 
file for
            distribution VMopenvzamd64 not found, using defaults from 
/etc/vz/dists/default
            Mon Dec 16 00:05:26 2013 [VMM][I]: Unable to start init, probably 
incorrect template
            Mon Dec 16 00:05:26 2013 [VMM][I]: Container start failed
            Mon Dec 16 00:05:26 2013 [VMM][E]: Warning: configuration file for 
distribution
            VMopenvzamd64 not found, using defaults from /etc/vz/dists/default
            Mon Dec 16 00:05:26 2013 [VMM][E]: Unable to start init, probably 
incorrect template
            Mon Dec 16 00:05:26 2013 [VMM][E]: Container start failed
            Mon Dec 16 00:05:26 2013 [VMM][E]:
            Mon Dec 16 00:05:26 2013 [VMM][I]: ExitCode: 47
            Mon Dec 16 00:05:26 2013 [VMM][I]: Failed to execute virtualization 
driver operation:
            deploy.
            Mon Dec 16 00:05:26 2013 [VMM][E]: Error deploying virtual machine: 
Warning:
            configuration file for distribution VMopenvzamd64 not found, using 
defaults from
            /etc/vz/dists/default
            Mon Dec 16 00:05:26 2013 [DiM][I]: New VM state is FAILED

        Regards,
        Nikolay.

            THANKS VERY MUCH NIKOLAY
            BEAUTIFUL DAY FOR YOU.

            Caty.


                Message: 3
                Date: Sun, 15 Dec 2013 12:50:59 +0400
                From: knawnd <[email protected] <mailto:[email protected]> 
<mailto:[email protected]
            <mailto:[email protected]>>>
                To: [email protected] 
<mailto:[email protected]>
            <mailto:[email protected] 
<mailto:[email protected]>>

                Subject: Re: [one-users] Create VM in Opennebula for OpenVZ 
failed
                Message-ID: <[email protected] 
<mailto:[email protected]>
            <mailto:[email protected] 
<mailto:[email protected]>>>

                Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

                Hi Caty,

                I've just checked and ploop openvz VM could be run on cluster 
node with
                mounted nfsv3 shared system DS.
                So please check very carefully your directories permissons and 
in case
                of NFS share also exporting and mount options.

                Regards,
                Nikolay.

                On 12/14/2013 09:21 PM, knawnd wrote:
                > Moreover, I could successfully run simfs VM on NFS shared 
system DS.
                > My settings was the following:
                > 1) on NFS server /etc/exports has the line
                > /var/lib/one/datastores 
<network/mask>(rw,no_subtree_check,no_root_squash)
                >
                > 2) NFS directory on the cluster node was mounted as
                > mount -t nfs -o vers=3 <nfs-server IP 
address>:/var/lib/one/datastores
                > /vz/one/datastores/
                > mount |grep datastores
                > <nfs-server IP>:/var/lib/one/datastores on /vz/one/datastores 
type nfs
                > (rw,vers=3,addr=<nfs-server IP address>)
                >
                > Directories permissions on cluster node are as below:
                > $ ll /vz|grep one
                > drwxr-xr-x 4 oneadmin oneadmin 4096 Dec 14 10:36 one
                >
                > $ ll /vz/one
                > total 8
                > drwxr-x--- 7 oneadmin oneadmin 4096 Dec 14 11:56 datastores
                > drwxr-x--- 9 oneadmin oneadmin 4096 Dec 14 10:36 scripts
                >
                > $ ll /vz/one/datastores/
                > total 16
                > drwxr-x--- 4 oneadmin oneadmin 4096 Dec 14 12:52 0
                > drwxr-x--- 3 oneadmin oneadmin 4096 Dec 14 10:38 1
                > drwxrwxr-x 2 oneadmin oneadmin 4096 Aug  5 17:21 2
                > drwxr-xr-x 2 root     root 4096 Dec 14 11:59 vztmp
                >
                > $ ll /vz/one/datastores/0/
                > total 8
                > drwxrwxr-x 3 oneadmin oneadmin 4096 Dec 14 12:48 1
                > drwxrwxr-x 4 oneadmin oneadmin 4096 Dec 14 13:40 2
                >
                > Hope it  helps.
                > Regards,
                > Nikolay.

                -------------- next part --------------
                An HTML attachment was scrubbed...
                URL:
<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131215/428c5316/attachment-0001.htm>

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

                _______________________________________________
                Users mailing list
            [email protected] <mailto:[email protected]>
            <mailto:[email protected] 
<mailto:[email protected]>>

            http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


                End of Users Digest, Vol 70, Issue 90
                *************************************






_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to