[one-users] VM in opennebula failing

Sudeep Narayan Banerjee snbanerjee at iitgn.ac.in
Tue Jun 24 13:55:51 PDT 2014


Dear All,

I have checked the status of Selinux in both the servers & tried to deploy.

Current Status of node:
[root at nc1 ~]# getenforce
Disabled


Current Status of front:
[root at front ~]# getenforce
Disabled

Tried to create a VM from front using this command:

[oneadmin at front ~]$ onetemplate instantiate "CentOS-6.5" --name "myvm1"
VM ID: 23
[oneadmin at front ~]$ onevm list
    ID USER     GROUP    NAME            STAT UCPU    UMEM HOST
TIME
    23 oneadmin oneadmin myvm1           runn    0    512M nc1          0d
00h05


Output of /var/log/one/23.log
[oneadmin at front ~]$ tail -f /var/log/one/23.log
Wed Jun 25 02:13:28 2014 [VMM][I]: Generating deployment file:
/var/lib/one/vms/23/deployment.0
Wed Jun 25 02:13:28 2014 [VMM][I]: ExitCode: 0
Wed Jun 25 02:13:28 2014 [VMM][I]: Successfully execute network driver
operation: pre.
Wed Jun 25 02:13:29 2014 [VMM][I]: ExitCode: 0
Wed Jun 25 02:13:29 2014 [VMM][I]: Successfully execute virtualization
driver operation: deploy.
Wed Jun 25 02:13:29 2014 [VMM][I]: ExitCode: 0
Wed Jun 25 02:13:29 2014 [VMM][I]: Successfully execute network driver
operation: post.
Wed Jun 25 02:13:29 2014 [LCM][I]: New VM state is RUNNING
*Wed Jun 25 02:13:30 2014 [LCM][I]: New VM state is UNKNOWN*
Wed Jun 25 02:13:35 2014 [VMM][I]: VM found again, state is RUNNING

Why the state should be Running & Unknown at the same time? Any clue?

Although it is running & I could login to that VM doing simple ssh <IP
ADDRESS>

Sudeep Narayan Banerjee


On Tue, Jun 24, 2014 at 7:33 PM, Steven Timm <timm at fnal.gov> wrote:

> 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
>



-- 
Thanks & Regards,
Sudeep Narayan Banerjee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140625/081f832f/attachment.htm>


More information about the Users mailing list