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]>>
To: [email protected] <mailto:[email protected]>
Subject: Re: [one-users] Create VM in Opennebula for OpenVZ failed
Message-ID: <[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]>
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