[one-users] Users Digest, Vol 70, Issue 90

Catalina Quinde catalinaquinde at gmail.com
Sun Dec 15 21:58:47 PST 2013


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 at 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")
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"
DISK=[IMAGE_ID="2"]
GRAPHICS=[TYPE="VNC",PORT="5900",LISTEN="0.0.0.0"]

- The log file:
oneadmin at ubuntuOpNeb:~$ cat /var/log/one/11.log
Sun Dec 15 23:56:53 2013 [DiM][I]: New VM state is ACTIVE.
Sun Dec 15 23:56:53 2013 [LCM][I]: New VM state is PROLOG.
Sun Dec 15 23:56:53 2013 [VM][I]: Virtual Machine has no context
Sun Dec 15 23:57:31 2013 [LCM][I]: New VM state is BOOT
Sun Dec 15 23:57:31 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/11/deployment.0
Sun Dec 15 23:57:32 2013 [VMM][I]: ExitCode: 0
Sun Dec 15 23:57:32 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Mon Dec 16 00:05:26 2013 [VMM][I]: Command execution fail: cat << EOT |
/vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/11/deployment.0'
'ubuntu' 11 ubuntu
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv
"/var/lib/vz/template/cache/VMopenvzamd64.tar.gz"
"/var/lib/vz/template/cache/VMopenvzamd64.tar.gz.1387169862" 2> /dev/null;
true".
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf
"/vz/one/datastores/0/11/disk.0"
"/var/lib/vz/template/cache/VMopenvzamd64.tar.gz"".
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo
/usr/sbin/vzctl create 1011 --layout simfs --ostemplate "VMopenvzamd64"
--private "/vz/one/datastores/0/11/private" --root
"/vz/one/datastores/0/11/root"".
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo rm -f
"/var/lib/vz/template/cache/VMopenvzamd64.tar.gz"".
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv
"/var/lib/vz/template/cache/VMopenvzamd64.tar.gz.1387169862"
"/var/lib/vz/template/cache/VMopenvzamd64.tar.gz" 2> /dev/null; true".
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo cp
"/vz/one/datastores/0/11/vm_conf" "/etc/vz/conf/1011.conf"".
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Not performing
contextualization, no context given.
Mon Dec 16 00:05:26 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo chown
1001:1001 -R /vz/one/datastores/0/11/private".
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

THANKS VERY MUCH NIKOLAY
BEAUTIFUL DAY FOR YOU.

Caty.


> Message: 3
> Date: Sun, 15 Dec 2013 12:50:59 +0400
> From: knawnd <knawnd at gmail.com>
> To: users at lists.opennebula.org
> Subject: Re: [one-users] Create VM in Opennebula for OpenVZ failed
> Message-ID: <52AD6D73.5040704 at gmail.com>
> 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
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> End of Users Digest, Vol 70, Issue 90
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131216/8ffcb197/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 96 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131216/8ffcb197/attachment.gif>


More information about the Users mailing list