[one-users] VM in opennebula failing

Stefan Kooman stefan at bit.nl
Tue Jun 24 04:15:27 PDT 2014


Quoting Sudeep Narayan Banerjee (snbanerjee at iitgn.ac.in):
> Dear Sir,
> 
> This is in response to the subject that I posted on June-21, but still no
> response.
> 
> I have tried to improve little bit from there but still no the VM is
> failing; but now throwing new error.
> 
> I am posting some output of the configuration files, please have a look and
> kindly8 respond.
 
> [root at nc1 ~]# grep -vE '^($|#)' /etc/default/libvirt-bin
> grep: /etc/default/libvirt-bin: No such file or directory
> 
> [oneadmin at front ~]$ onehost list
>   ID NAME            CLUSTER   RVM      ALLOCATED_CPU      ALLOCATED_MEM
> STAT
>    3 nc1             -           0       0 / 800 (0%)     0K / 3.6G (0%) on
> 
> [oneadmin at front ~]$ oneimage list
>   ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER STAT
> RVMS
>    0 oneadmin   oneadmin   CentOS-6.5_x86_ default       267M OS    No
> rdy     0
> 
> [oneadmin at front ~]$ onetemplate list
>   ID USER            GROUP           NAME
> REGTIME
>    0 oneadmin        oneadmin        CentOS-6.5                   06/21
> 23:09:56
> 
> Output of one <VM-id>.log file
> ---------------------------------------------
> [oneadmin at front ~]$ cat /var/log/one/15.log
> Tue Jun 24 13:19:31 2014 [DiM][I]: New VM state is ACTIVE.
> Tue Jun 24 13:19:31 2014 [LCM][I]: New VM state is PROLOG.
> Tue Jun 24 13:20:48 2014 [LCM][I]: New VM state is BOOT
> Tue Jun 24 13:20:48 2014 [VMM][I]: Generating deployment file:
> /var/lib/one/vms/15/deployment.0
> Tue Jun 24 13:20:49 2014 [VMM][I]: ExitCode: 0
> Tue Jun 24 13:20:49 2014 [VMM][I]: Successfully execute network driver
> operation: pre.
> Tue Jun 24 13:20:49 2014 [VMM][I]: Command execution fail: cat << EOT |
> /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/15/deployment.0'
> 'nc1' 15 nc1
> Tue Jun 24 13:20:49 2014 [VMM][I]: error: Failed to create domain from
> /var/lib/one/datastores/0/15/deployment.0
> Tue Jun 24 13:20:49 2014 [VMM][I]: error: unable to set security context
> 'unconfined_u:object_r:svirt_image_t:s0:c514,c893' on
> '/var/lib/one/datastores/0/15/disk.0': Permission denied
> Tue Jun 24 13:20:49 2014 [VMM][E]: Could not create domain from
> /var/lib/one/datastores/0/15/deployment.0

It looks like a permission issue. As oneadmin user (su - oneadmin), can
you "touch" anything in /var/lib/one/datastores/0? What are the
permissions on /var/lib/one (ls -larth)? Are you using nfsv4 (grep nfs4
/proc/mounts)?  Are the permissions the same on the frontend and the
hosts?

Gr. Stefan


-- 
| BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
| GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl


More information about the Users mailing list