[one-users] VM in Opennebula for OpenVZ failed

Catalina Quinde catalinaquinde at gmail.com
Mon Dec 2 20:47:30 PST 2013


Hi friends, the same errors:

I have done everything as described

1. I created a cluster, in this one the path by datastore is
"/var/lib/datastore", add Openvz node, etc. next displays for onecluster
show OpVZclus

oneadmin at ubuntuOpNeb:~$ onecluster show OpVZclus
CLUSTER 102
INFORMATION
ID                : 102
NAME              : OpVZclus
SYSTEM DS         : 110

CLUSTER
TEMPLATE
DATASTORE_LOCATION="/var/lib/datastore"

HOSTS
3

VNETS
4

DATASTORES
110
111

2. The datastore created with TM as ssh, next displays onedatastore show

oneadmin at ubuntuOpNeb:~$ onedatastore show 110
DATASTORE 110
INFORMATION
ID             : 110
NAME           : ssh_dsOpvz2
USER           : oneadmin
GROUP          : oneadmin
CLUSTER        : OpVZclus
TYPE           : SYSTEM
DS_MAD         : -
TM_MAD         : ssh
BASE PATH      : /var/lib/datastore/110
DISK_TYPE      : FILE

DATASTORE
CAPACITY
TOTAL:         : -
USED:          : -
FREE:          : -

PERMISSIONS

OWNER          : um-
GROUP          : u--
OTHER          : ---

DATASTORE
TEMPLATE
BRIDGE_LIST="192.168.147.134"
TM_MAD="ssh"
TYPE="SYSTEM_DS"

IMAGES


oneadmin at ubuntuOpNeb:~$ onedatastore show 111
DATASTORE 111
INFORMATION
ID             : 111
NAME           : ssh_diOpvz2
USER           : oneadmin
GROUP          : oneadmin
CLUSTER        : OpVZclus
TYPE           : IMAGE
DS_MAD         : fs
TM_MAD         : ssh
BASE PATH      : /var/lib/datastore/111
DISK_TYPE      : FILE

DATASTORE
CAPACITY
TOTAL:         : 23.6G
USED:          : 75M
FREE:          : 2.2G

PERMISSIONS

OWNER          : um-
GROUP          : u--
OTHER          : ---

DATASTORE
TEMPLATE
BRIDGE_LIST="192.168.147.134"
DS_MAD="fs"
NO_DECOMPRESS="yes"
TM_MAD="ssh"
TYPE="IMAGE_DS"

IMAGES
21

3. When I deploy VM with VE_LAYOUT ="ploop" display the same error "...bad
file descriptor..."
oneadmin at ubuntuOpNeb:~$ cat /var/log/one/72.log
Mon Dec  2 23:07:34 2013 [DiM][I]: New VM state is ACTIVE.
Mon Dec  2 23:07:34 2013 [LCM][I]: New VM state is PROLOG.
Mon Dec  2 23:07:34 2013 [VM][I]: Virtual Machine has no context
Mon Dec  2 23:07:54 2013 [LCM][I]: New VM state is BOOT
Mon Dec  2 23:07:54 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/72/deployment.0
Mon Dec  2 23:07:54 2013 [VMM][I]: ExitCode: 0
Mon Dec  2 23:07:54 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Mon Dec  2 23:07:58 2013 [VMM][I]: Command execution fail: cat << EOT |
/var/tmp/one/vmm/ovz/deploy '/var/lib/datastore/110/72/deployment.0'
'ubuntu' 72 ubuntu
Mon Dec  2 23:07:58 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv
"/var/lib/vz/template/cache/debian-7.0-x64.tar.gz"
"/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.1386043679" 2> /dev/null;
true".
Mon Dec  2 23:07:58 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf
"/var/lib/datastore/110/72/disk.0"
"/var/lib/vz/template/cache/debian-7.0-x64.tar.gz"".
Mon Dec  2 23:07:58 2013 [VMM][E]: deploy: Command "/usr/bin/sudo
/usr/sbin/vzctl create 1072 --layout ploop --ostemplate "debian-7.0-x64"
--private "/var/lib/datastore/110/72/private" --root
"/var/lib/datastore/110/72/root"" failed.
Mon Dec  2 23:07:58 2013 [VMM][E]: deploy: Error in do_lock (lock.c:136):
Error in
flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor
Mon Dec  2 23:07:58 2013 [VMM][I]: Failed to create image: Error in do_lock
(lock.c:136): Error in
flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor [23]
Mon Dec  2 23:07:58 2013 [VMM][I]: Creation of container private area failed
Mon Dec  2 23:07:58 2013 [VMM][E]: Error in do_lock (lock.c:136): Error in
flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor
Mon Dec  2 23:07:58 2013 [VMM][E]: Failed to create image: Error in do_lock
(lock.c:136): Error in
flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor [23]
Mon Dec  2 23:07:58 2013 [VMM][E]: Creation of container private area failed
Mon Dec  2 23:07:58 2013 [VMM][E]:
Mon Dec  2 23:07:58 2013 [VMM][I]: ExitCode: 151
Mon Dec  2 23:07:58 2013 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
Mon Dec  2 23:07:58 2013 [VMM][E]: Error deploying virtual machine: Error
in do_lock (lock.c:136): Error in
flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor
Mon Dec  2 23:07:58 2013 [DiM][I]: New VM state is FAILED

4. When I deploy VM with VE_LAYOUT ="simfs" display the error
"...tar...cannot change ownership to uid0, gid0: Operation not permitted",
a little extract of log file:

Mon Dec  2 23:19:04 2013 [VMM][E]: tar: ./usr/sbin: Cannot change ownership
to uid 0, gid 0: Operation not permitted
Mon Dec  2 23:19:04 2013 [VMM][E]: tar: ./usr: Cannot change ownership to
uid 0, gid 0: Operation not permitted
Mon Dec  2 23:19:04 2013 [VMM][E]: tar: .: Cannot change ownership to uid
0, gid 0: Operation not permitted
Mon Dec  2 23:19:04 2013 [VMM][E]: tar: Exiting with failure status due to
previous errors
Mon Dec  2 23:19:04 2013 [VMM][E]: vps-create ERROR: Unpack
/var/lib/vz/template/cache/debian-7.0-x64.tar.gz failed
Mon Dec  2 23:19:04 2013 [VMM][E]: Creation of container private area failed
Mon Dec  2 23:19:04 2013 [VMM][E]:
Mon Dec  2 23:19:04 2013 [VMM][I]: ExitCode: 48
Mon Dec  2 23:19:04 2013 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
Mon Dec  2 23:19:04 2013 [VMM][E]: Error deploying virtual machine: tar:
./usr/local/include: Cannot change ownership to uid 0, gid 50: Operation
not permitted
Mon Dec  2 23:19:04 2013 [DiM][I]: New VM state is FAILED

Inside previous mails, I attached the same log files.

I do not know what to do, please help me.

Regards, Caty.




Date: Mon, 2 Dec 2013 15:35:46 +0400
> From: Nikita Balashov <balashov.nikita at gmail.com>
> To: Catalina Quinde <catalinaquinde at gmail.com>
> Cc: users at lists.opennebula.org
> Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
> Message-ID:
>         <CADp2OfvxvF20bvcbQAcDDaHcWMa+gbQPK0=
> iR-Sj1T4V5VN7-w at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Currently the ovz driver doesn't support shared TM for system and default
> datastores - try changing them to ssh
>
> Regards,
> Nikita
>
>
> 2013/12/2 Catalina Quinde <catalinaquinde at gmail.com>
>
> > Hi Nikita,
> >
> > Thanks for your help
> >
> > I do this changes:
> >
> > 1. In the /etc/default/nfs-kernel-server, I inactivated nfsv4 in this
> line
> > RPCMOUNTDOPTS="--manage-gids --no-nfs-version 4"
> >
> > 2. My /etc/exports file contains:
> > /var/lib/one/datastores
> > 192.168.147.0/255.255.255.0(rw,anonuid=1001,anongid=1001)
> >
> > 3. In /etc/fstab file in openvz node contains:
> > 192.168.147.129:/var/lib/one/datastores /var/lib/one/datastores nfs
> > _netdev,auto    0    0
> >
> > 4. output onedatastore command is
> >
> >   ID NAME                SIZE AVAIL CLUSTER      IMAGES TYPE DS
> > TM
> >    0 system                 - -     -                 0 sys  -
> > shared
> >    1 default            23.6G 10%   -                 2 img  fs
> > shared
> >    2 files              23.6G 10%   -                 0 fil  fs       ssh
> >  102 ssh_dsEsxi             - -     Esxiclus          0 sys  -
>  vmfs
> >  103 ssh_diEsxi            0M -     Esxiclus          0 img  vmfs
> vmfs
> >  104 ssh_dsOpvz             - -     OpenVZclus        0 sys  -        ssh
> >  105 ssh_diOpvz         23.6G 10%   OpenVZclus        2 img  fs       ssh
> >
> > the datastores 104 and 105 are by openvz node.
> >
> > 5. I deploy VM but errors are same:
> > oneadmin at ubuntuOpNeb:~$ cat /var/log/one/67.log
> > Sun Dec  1 23:52:20 2013 [DiM][I]: New VM state is ACTIVE.
> > Sun Dec  1 23:52:20 2013 [LCM][I]: New VM state is PROLOG.
> > Sun Dec  1 23:52:20 2013 [VM][I]: Virtual Machine has no context
> > Sun Dec  1 23:52:40 2013 [LCM][I]: New VM state is BOOT
> > Sun Dec  1 23:52:40 2013 [VMM][I]: Generating deployment file:
> > /var/lib/one/vms/67/deployment.0
> > Sun Dec  1 23:52:40 2013 [VMM][I]: ExitCode: 0
> > Sun Dec  1 23:52:40 2013 [VMM][I]: Successfully execute network driver
> > operation: pre.
> > Sun Dec  1 23:52:45 2013 [VMM][I]: Command execution fail: cat << EOT |
> > /var/tmp/one/vmm/ovz/deploy '/var/lib/one/datastores/104/67/deployment.0'
> > 'ubuntu' 67 ubuntu
> > Sun Dec  1 23:52:45 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv
> > "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz"
> > "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.1385959963" 2>
> /dev/null;
> > true".
> > Sun Dec  1 23:52:45 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf
> > "/var/lib/one/datastores/104/67/disk.0"
> > "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz"".
> > Sun Dec  1 23:52:45 2013 [VMM][E]: deploy: Command "/usr/bin/sudo
> > /usr/sbin/vzctl create 1067 --layout ploop --ostemplate "debian-7.0-x64"
> > --private "/var/lib/one/datastores/104/67/private" --root
> > "/var/lib/one/datastores/104/67/root"" failed.
> > Sun Dec  1 23:52:45 2013 [VMM][E]: deploy: Error in do_lock (lock.c:136):
> > Error in
> >
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):
> > Bad file descriptor
> > Sun Dec  1 23:52:45 2013 [VMM][I]: Failed to create image: Error in
> > do_lock (lock.c:136): Error in
> >
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):
> > Bad file descriptor [23]
> > Sun Dec  1 23:52:45 2013 [VMM][I]: Creation of container private area
> > failed
> > Sun Dec  1 23:52:45 2013 [VMM][E]: Error in do_lock (lock.c:136): Error
> in
> >
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):
> > Bad file descriptor
> > Sun Dec  1 23:52:45 2013 [VMM][E]: Failed to create image: Error in
> > do_lock (lock.c:136): Error in
> >
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):
> > Bad file descriptor [23]
> > Sun Dec  1 23:52:45 2013 [VMM][E]: Creation of container private area
> > failed
> > Sun Dec  1 23:52:45 2013 [VMM][E]:
> > Sun Dec  1 23:52:45 2013 [VMM][I]: ExitCode: 151
> > Sun Dec  1 23:52:45 2013 [VMM][I]: Failed to execute virtualization
> driver
> > operation: deploy.
> > Sun Dec  1 23:52:45 2013 [VMM][E]: Error deploying virtual machine: Error
> > in do_lock (lock.c:136): Error in
> >
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):
> > Bad file descriptor
> > Sun Dec  1 23:52:45 2013 [DiM][I]: New VM state is FAILED
> >
> > 6. I used VE_LAYOUT="simfs" in template but the result in state is fail,
> > with errors command tar, I attached the 68.log file.
> >
> > I'm doing wrong??
> >
> > Regards, Caty.
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131202/a17ecee6/attachment-0002.htm>


More information about the Users mailing list