[one-users] Create VM in Opennebula for OpenVZ failed

knawnd knawnd at gmail.com
Fri Dec 13 23:52:27 PST 2013


Hi Caty,

Sorry for the long delay in reply (a lot of urgent things to do before 
the end of the year).

So according to info you provided now your system DS is ssh-based and 
not shared (NFS) anymore, right?

 > oneadmin at ubuntuOpNeb:~$ onedatastore list
 > ID NAME                SIZE AVAIL CLUSTER      IMAGES TYPE DS       TM
 > 0 system                 - -     -                 0 sys -        ssh

We have the following directory permissions on cluster nodes:
$ ll /vz/ |grep one
drwx------ 5 oneadmin oneadmin  4096 Nov 21 12:01 one

$ll /vz/one/
drwxrwxr-x 3 oneadmin oneadmin 4096 Nov 25 13:02 datastores
drwxr-x--- 9 oneadmin oneadmin 4096 Nov 21 12:01 scripts

$ll /vz/one/datastores/
total 4
drwxrwxr-x 5 oneadmin oneadmin 4096 Dec  4 20:51 0

$ ll /vz/one/datastores/0/
drwxrwxr-x 4 oneadmin oneadmin 4096 Nov 29 12:53 24
drwxrwxr-x 4 oneadmin oneadmin 4096 Dec  2 13:10 35
drwxrwxr-x 4 oneadmin oneadmin 4096 Dec  4 20:53 46


Hope it helps.
Nikolay.


On 12/13/2013 10:52 AM, Catalina Quinde wrote:
> Hi friends,
>
> 1.I created a VM in Opennebula for OpenVZ but this is failed, this is 
> your log:
>
> oneadmin at ubuntuOpNeb:~$ cat /var/log/one/1.log
> Fri Dec 13 01:45:56 2013 [DiM][I]: New VM state is ACTIVE.
> Fri Dec 13 01:45:56 2013 [LCM][I]: New VM state is PROLOG.
> Fri Dec 13 01:46:15 2013 [LCM][I]: New VM state is BOOT
> Fri Dec 13 01:46:15 2013 [VMM][I]: Generating deployment file: 
> /var/lib/one/vms/1/deployment.0
> Fri Dec 13 01:46:16 2013 [VMM][I]: ExitCode: 0
> Fri Dec 13 01:46:16 2013 [VMM][I]: Successfully execute network driver 
> operation: pre.
> Fri Dec 13 01:46:21 2013 [VMM][I]: Command execution fail: cat << EOT 
> | /vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/1/deployment.0' 
> 'ubuntu' 1 ubuntu
> Fri Dec 13 01:46:21 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.1386917185" 2> 
> /dev/null; true".
> Fri Dec 13 01:46:21 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln 
> -sf "/vz/one/datastores/0/1/disk.0" 
> "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".
> Fri Dec 13 01:46:21 2013 [VMM][E]: deploy: Command "/usr/bin/sudo 
> /usr/sbin/vzctl create 1001 --layout ploop --ostemplate 
> "debian-7.0-x86_64" --private "/vz/one/datastores/0/1/private" --root 
> "/vz/one/datastores/0/1/root"" failed.
> Fri Dec 13 01:46:21 2013 [VMM][E]: deploy: Can't create directory 
> /vz/one/datastores/0/1/private.tmp: Permission denied
> Fri Dec 13 01:46:21 2013 [VMM][I]: Unable to create directory 
> /vz/one/datastores/0/1/private.tmp: Permission denied
> Fri Dec 13 01:46:21 2013 [VMM][I]: Creation of container private area 
> failed
> Fri Dec 13 01:46:21 2013 [VMM][E]: Can't create directory 
> /vz/one/datastores/0/1/private.tmp: Permission denied
> Fri Dec 13 01:46:21 2013 [VMM][E]: Unable to create directory 
> /vz/one/datastores/0/1/private.tmp: Permission denied
> Fri Dec 13 01:46:21 2013 [VMM][E]: Creation of container private area 
> failed
> Fri Dec 13 01:46:21 2013 [VMM][E]:
> Fri Dec 13 01:46:21 2013 [VMM][I]: ExitCode: 48
> Fri Dec 13 01:46:21 2013 [VMM][I]: Failed to execute virtualization 
> driver operation: deploy.
> Fri Dec 13 01:46:21 2013 [VMM][E]: Error deploying virtual machine: 
> Can't create directory /vz/one/datastores/0/1/private.tmp: Permission 
> denied
> Fri Dec 13 01:46:21 2013 [DiM][I]: New VM state is FAILED
>
> 2. My template file contains:
>
> NIC=[NETWORK_ID="0"]
> OSTEMPLATE="debian-7.0-x86_64"
> DISK=[IMAGE_ID="0"]
> DISK=[SIZE="512",TYPE="swap"]
> CPU="0.01"
> VE_LAYOUT="ploop"
> RCLOCAL="rc.local"
> OS=[ARCH="x86_64"]
> CLUSTER_100="100"
> VCPU="1"
> REQUIREMENTS="CLUSTER_ID=\"100\""
> MEMORY="512"
> CONTEXT=[SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",NETWORK="YES"]
>
> 3. My datastores list contains:
>
> oneadmin at ubuntuOpNeb:~$ onedatastore list
>   ID NAME                SIZE AVAIL CLUSTER      IMAGES TYPE DS       TM
>    0 system                 - -     -                 0 sys -        ssh
>    1 default            15.6G 62%   ovz_x64           1 img fs       ssh
>    2 files              15.6G 62%   -                 0 fil fs       ssh
>
> Please help me solve this, is very important
> 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/20131214/5c298c6d/attachment-0002.htm>


More information about the Users mailing list