[one-users] VM in opennebula failing

Steven Timm timm at fnal.gov
Tue Jun 24 07:03:41 PDT 2014


After you disabled SELinux and rebooted the VM host are you 
still getting the error about the deploy command failing?

Steve Timm

On Tue, 24 Jun 2014, Sudeep Narayan Banerjee wrote:

> Hello,
> 
> Yes it is possible & I made it disable via following commands.
> 
> [root at nc1 ~]# setenforce 0
> [root at nc1 ~]# getenforce
7> Permissive
> [root at nc1 ~]# lokkit --disabled
> 
> Also system-config-firewall says Firewall is off. But is reboot required.
> 
> But I am not understanding this error "Command execution fail: cat << EOT |
> > /var/tmp/one/vmm/kvm/deploy
> '/var/lib/one/datastores/0/15/deployment.0' 'nc1' 15 nc1"
> 
> Sudeep Narayan Banerjee
> 
> 
> 
> On Tue, Jun 24, 2014 at 7:12 PM, Steven Timm <timm at fnal.gov> wrote:
>       This error is an SELinux error.  Is it possible
>       for you to disable SELinux on the VM host in question?
>
>       Steve Timm
> 
>
>       On Tue, 24 Jun 2014, Sudeep Narayan Banerjee wrote:
>
>             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.
>
>             =====================================================================
>             nc1 = node
>             front = frontend
>
>             [root at nc1 ~]# grep -vE '^($|#)'
>             /etc/libvirt/libvirtd.conf
>             listen_tls = 0
>             listen_tcp = 1
>             unix_sock_group = "oneadmin"
>             unix_sock_rw_perms = "0777"
>             auth_unix_ro = "none"
>             auth_unix_rw = "none"
>
>             [root at nc1 ~]# grep -vE '^($|#)'
>             /etc/libvirt/qemu.conf
>             user  = "oneadmin"
>             group = "oneadmin"
>             dynamic_ownership = 0
>
>             [root at front ~]# virsh -c qemu:///system nodeinfo
>             CPU model:           x86_64
>             CPU(s):              8
>             CPU frequency:       1600 MHz
>             CPU socket(s):       1
>             Core(s) per socket:  4
>             Thread(s) per core:  2
>             NUMA cell(s):        1
>             Memory size:         3793396 KiB
>
>             [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
>             Tue Jun 24 13:20:49 2014 [VMM][I]: ExitCode: 255
>             Tue Jun 24 13:20:49 2014 [VMM][I]: Failed to execute
>             virtualization driver
>             operation: deploy.
>             Tue Jun 24 13:20:49 2014 [VMM][E]: Error deploying
>             virtual machine: Could
>             not create domain from
>             /var/lib/one/datastores/0/15/deployment.0
>             Tue Jun 24 13:20:50 2014 [DiM][I]: New VM state is
>             FAILED
>             Tue Jun 24 13:21:01 2014 [DiM][I]: New VM state is
>             DONE.
>             Tue Jun 24 13:21:02 2014 [TM][W]: Ignored: TRANSFER
>             SUCCESS 15 -
> 
>
>             Any help will be greatly appreciated!
>
>             Sudeep Narayan Banerjee
>
>             --
>             Thanks & Regards,Sudeep Narayan Banerjee
> 
> 
> 
> ------------------------------------------------------------------
> Steven C. Timm, Ph.D  (630) 840-8525
> timm at fnal.gov  http://home.fnal.gov/~timm/
> Fermilab Scientific Computing Division, Scientific Computing Services
> Quad.
> Grid and Cloud Services Dept., Associate Dept. Head for Cloud
> Computing
> 
> 
> 
> 
> --
> Thanks & Regards,Sudeep Narayan Banerjee
> 
>

------------------------------------------------------------------
Steven C. Timm, Ph.D  (630) 840-8525
timm at fnal.gov  http://home.fnal.gov/~timm/
Fermilab Scientific Computing Division, Scientific Computing Services Quad.
Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing


More information about the Users mailing list