<div dir="ltr"><div><div>Hello All,<br></div><div><br></div>I tried to instantiate a VM once again using the below commands.<br><br>[oneadmin@front ~]$ onetemplate instantiate "CentOS-6.5" --name "myvm1"<br>
VM ID: 22<br><br>But it gave error with an additional new error.<br><br>//<b>internal error process exited while connecting to monitor: qemu: could not load kernel '/vmlinuz': No such file or directory</b>// Since I added a tag called "kernel = /vmlinuz" in the /etc/one/vmm_exec/vmm_exec_kvm.conf file<br>
<br></div>//Log File//<br><br><div>[oneadmin@front ~]$ tail -f /var/log/one/22.log<br>Tue Jun 24 18:07:10 2014 [DiM][I]: New VM state is ACTIVE.<br>Tue Jun 24 18:07:10 2014 [LCM][I]: New VM state is PROLOG.<br>Tue Jun 24 18:08:29 2014 [LCM][I]: New VM state is BOOT<br>
Tue Jun 24 18:08:29 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/22/deployment.0<br>Tue Jun 24 18:08:29 2014 [VMM][I]: ExitCode: 0<br>Tue Jun 24 18:08:29 2014 [VMM][I]: Successfully execute network driver operation: pre.<br>
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<br>Tue Jun 24 18:08:30 2014 [VMM][I]: error: Failed to create domain from /var/lib/one/datastores/0/22/deployment.0<br>
<br><b>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</b><br><br>Tue Jun 24 18:08:30 2014 [VMM][I]: <br>
Tue Jun 24 18:08:30 2014 [VMM][E]: Could not create domain from /var/lib/one/datastores/0/22/deployment.0<br>Tue Jun 24 18:08:30 2014 [VMM][I]: ExitCode: 255<br>Tue Jun 24 18:08:30 2014 [VMM][I]: Failed to execute virtualization driver operation: deploy.<br>
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<br>Tue Jun 24 18:08:30 2014 [DiM][I]: New VM state is FAILED<br><br></div><div>Sudeep Narayan Banerjee<br>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 5:50 PM, Sudeep Narayan Banerjee <span dir="ltr"><<a href="mailto:snbanerjee@iitgn.ac.in" target="_blank">snbanerjee@iitgn.ac.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear Sir,<br><br>Thanks for your responses, Please find my inputs,<div class=""><br><br>From this message it looks like a selinux problem:<br>
<div><br>
error: unable to set security context 'unconfined_u:object_r:svirt_image_t:s0:c514,c893'<br>
<br>
</div>You can try disabling selinux in the nodes with the command (as root):<br>
<br></div>[oneadmin@front ~]$ getenforce // Front end//<br>Disabled<br><br>[root@nc1 ~]# getenforce // Node//<br>Enforcing<br>[root@nc1 ~]# setenforce 0<br>[root@nc1 ~]# <br>Permissive<br>[root@nc1 ~]# lokkit --disabled<br>
<br></div>Yes, in the node it had selinux. Do not know how I could miss it!! <b><br><br>Do I need to reboot the node to take the effect?</b><span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Sudeep Narayan Banerjee<br>
<div><div><br><br><br></div></div></font></span></div><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 5:40 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From this message it looks like a selinux problem:<br>
<div><br>
error: unable to set security context<br>
'unconfined_u:object_r:svirt_image_t:s0:c514,c893'<br>
<br>
</div>You can try disabling selinux in the nodes with the command (as root):<br>
<br>
# setenforce 0<br>
<div><div><br>
<br>
On Tue, Jun 24, 2014 at 10:02 AM, Sudeep Narayan Banerjee<br>
<<a href="mailto:snbanerjee@iitgn.ac.in" target="_blank">snbanerjee@iitgn.ac.in</a>> wrote:<br>
> Dear Sir,<br>
><br>
> This is in response to the subject that I posted on June-21, but still no<br>
> response.<br>
><br>
> I have tried to improve little bit from there but still no the VM is<br>
> failing; but now throwing new error.<br>
><br>
> I am posting some output of the configuration files, please have a look and<br>
> kindly8 respond.<br>
><br>
> =====================================================================<br>
> nc1 = node<br>
> front = frontend<br>
><br>
> [root@nc1 ~]# grep -vE '^($|#)' /etc/libvirt/libvirtd.conf<br>
> listen_tls = 0<br>
> listen_tcp = 1<br>
> unix_sock_group = "oneadmin"<br>
> unix_sock_rw_perms = "0777"<br>
> auth_unix_ro = "none"<br>
> auth_unix_rw = "none"<br>
><br>
> [root@nc1 ~]# grep -vE '^($|#)' /etc/libvirt/qemu.conf<br>
> user = "oneadmin"<br>
> group = "oneadmin"<br>
> dynamic_ownership = 0<br>
><br>
> [root@front ~]# virsh -c qemu:///system nodeinfo<br>
> CPU model: x86_64<br>
> CPU(s): 8<br>
> CPU frequency: 1600 MHz<br>
> CPU socket(s): 1<br>
> Core(s) per socket: 4<br>
> Thread(s) per core: 2<br>
> NUMA cell(s): 1<br>
> Memory size: 3793396 KiB<br>
><br>
> [root@nc1 ~]# grep -vE '^($|#)' /etc/default/libvirt-bin<br>
> grep: /etc/default/libvirt-bin: No such file or directory<br>
><br>
> [oneadmin@front ~]$ onehost list<br>
> ID NAME CLUSTER RVM ALLOCATED_CPU ALLOCATED_MEM<br>
> STAT<br>
> 3 nc1 - 0 0 / 800 (0%) 0K / 3.6G (0%) on<br>
><br>
> [oneadmin@front ~]$ oneimage list<br>
> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT<br>
> RVMS<br>
> 0 oneadmin oneadmin CentOS-6.5_x86_ default 267M OS No rdy<br>
> 0<br>
><br>
> [oneadmin@front ~]$ onetemplate list<br>
> ID USER GROUP NAME<br>
> REGTIME<br>
> 0 oneadmin oneadmin CentOS-6.5 06/21<br>
> 23:09:56<br>
><br>
> Output of one <VM-id>.log file<br>
> ---------------------------------------------<br>
> [oneadmin@front ~]$ cat /var/log/one/15.log<br>
> Tue Jun 24 13:19:31 2014 [DiM][I]: New VM state is ACTIVE.<br>
> Tue Jun 24 13:19:31 2014 [LCM][I]: New VM state is PROLOG.<br>
> Tue Jun 24 13:20:48 2014 [LCM][I]: New VM state is BOOT<br>
> Tue Jun 24 13:20:48 2014 [VMM][I]: Generating deployment file:<br>
> /var/lib/one/vms/15/deployment.0<br>
> Tue Jun 24 13:20:49 2014 [VMM][I]: ExitCode: 0<br>
> Tue Jun 24 13:20:49 2014 [VMM][I]: Successfully execute network driver<br>
> operation: pre.<br>
> Tue Jun 24 13:20:49 2014 [VMM][I]: Command execution fail: cat << EOT |<br>
> /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/15/deployment.0'<br>
> 'nc1' 15 nc1<br>
> Tue Jun 24 13:20:49 2014 [VMM][I]: error: Failed to create domain from<br>
> /var/lib/one/datastores/0/15/deployment.0<br>
> Tue Jun 24 13:20:49 2014 [VMM][I]: error: unable to set security context<br>
> 'unconfined_u:object_r:svirt_image_t:s0:c514,c893' on<br>
> '/var/lib/one/datastores/0/15/disk.0': Permission denied<br>
> Tue Jun 24 13:20:49 2014 [VMM][E]: Could not create domain from<br>
> /var/lib/one/datastores/0/15/deployment.0<br>
> Tue Jun 24 13:20:49 2014 [VMM][I]: ExitCode: 255<br>
> Tue Jun 24 13:20:49 2014 [VMM][I]: Failed to execute virtualization driver<br>
> operation: deploy.<br>
> Tue Jun 24 13:20:49 2014 [VMM][E]: Error deploying virtual machine: Could<br>
> not create domain from /var/lib/one/datastores/0/15/deployment.0<br>
> Tue Jun 24 13:20:50 2014 [DiM][I]: New VM state is FAILED<br>
> Tue Jun 24 13:21:01 2014 [DiM][I]: New VM state is DONE.<br>
> Tue Jun 24 13:21:02 2014 [TM][W]: Ignored: TRANSFER SUCCESS 15 -<br>
><br>
><br>
> Any help will be greatly appreciated!<br>
><br>
> Sudeep Narayan Banerjee<br>
><br>
> --<br>
> Thanks & Regards,<br>
> Sudeep Narayan Banerjee<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Thanks & Regards,<div>Sudeep Narayan Banerjee</div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Thanks & Regards,<div>Sudeep Narayan Banerjee</div></div>
</div>