[one-users] VM in opennebula failing

Sudeep Narayan Banerjee snbanerjee at iitgn.ac.in
Tue Jun 24 05:44:16 PDT 2014


Hello All,

I tried to instantiate a VM once again using the below commands.

[oneadmin at front ~]$ onetemplate instantiate "CentOS-6.5" --name "myvm1"
VM ID: 22

But it gave error with an additional new error.

//*internal error process exited while connecting to monitor: qemu: could
not load kernel '/vmlinuz': No such file or directory*// Since I added a
tag called "kernel = /vmlinuz" in the /etc/one/vmm_exec/vmm_exec_kvm.conf
file

//Log File//

[oneadmin at front ~]$ tail -f /var/log/one/22.log
Tue Jun 24 18:07:10 2014 [DiM][I]: New VM state is ACTIVE.
Tue Jun 24 18:07:10 2014 [LCM][I]: New VM state is PROLOG.
Tue Jun 24 18:08:29 2014 [LCM][I]: New VM state is BOOT
Tue Jun 24 18:08:29 2014 [VMM][I]: Generating deployment file:
/var/lib/one/vms/22/deployment.0
Tue Jun 24 18:08:29 2014 [VMM][I]: ExitCode: 0
Tue Jun 24 18:08:29 2014 [VMM][I]: Successfully execute network driver
operation: pre.
Tue Jun 24 18:08:30 2014 [VMM][I]: Command execution fail: cat << EOT |
/var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/22/deployment.0'
'nc1' 22 nc1
Tue Jun 24 18:08:30 2014 [VMM][I]: error: Failed to create domain from
/var/lib/one/datastores/0/22/deployment.0

*Tue Jun 24 18:08:30 2014 [VMM][I]: error: internal error process exited
while connecting to monitor: qemu: could not load kernel '/vmlinuz': No
such file or directory*

Tue Jun 24 18:08:30 2014 [VMM][I]:
Tue Jun 24 18:08:30 2014 [VMM][E]: Could not create domain from
/var/lib/one/datastores/0/22/deployment.0
Tue Jun 24 18:08:30 2014 [VMM][I]: ExitCode: 255
Tue Jun 24 18:08:30 2014 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
Tue Jun 24 18:08:30 2014 [VMM][E]: Error deploying virtual machine: Could
not create domain from /var/lib/one/datastores/0/22/deployment.0
Tue Jun 24 18:08:30 2014 [DiM][I]: New VM state is FAILED

Sudeep Narayan  Banerjee



On Tue, Jun 24, 2014 at 5:50 PM, Sudeep Narayan Banerjee <
snbanerjee at iitgn.ac.in> wrote:

> Dear Sir,
>
> Thanks for your responses, Please find my inputs,
>
>
> From this message it looks like a selinux problem:
>
> error: unable to set security context
> 'unconfined_u:object_r:svirt_image_t:s0:c514,c893'
>
> You can try disabling selinux in the nodes with the command (as root):
>
> [oneadmin at front ~]$ getenforce         // Front end//
> Disabled
>
> [root at nc1 ~]# getenforce                  // Node//
> Enforcing
> [root at nc1 ~]# setenforce 0
> [root at nc1 ~]#
> Permissive
> [root at nc1 ~]# lokkit --disabled
>
> Yes, in the node it had selinux. Do not know how I could miss it!!
>
> *Do I need to reboot the node to take the effect?*
>
> Sudeep Narayan Banerjee
>
>
>
>
>
> On Tue, Jun 24, 2014 at 5:40 PM, Javier Fontan <jfontan at opennebula.org>
> wrote:
>
>> From this message it looks like a selinux problem:
>>
>> error: unable to set security context
>> 'unconfined_u:object_r:svirt_image_t:s0:c514,c893'
>>
>> You can try disabling selinux in the nodes with the command (as root):
>>
>> # setenforce 0
>>
>>
>> On Tue, Jun 24, 2014 at 10:02 AM, Sudeep Narayan Banerjee
>> <snbanerjee at iitgn.ac.in> 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
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>>
>>
>>
>> --
>> Javier Fontán Muiños
>> Developer
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>> www.OpenNebula.org | @OpenNebula | github.com/jfontan
>>
>
>
>
> --
> Thanks & Regards,
> Sudeep Narayan Banerjee
>



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


More information about the Users mailing list