<div dir="ltr"><div><div>Dear All,<br><br></div><div>I have checked the status of Selinux in both the servers & tried to deploy.<br></div><div><br></div>Current Status of node: <br>[root@nc1 ~]# getenforce <br>Disabled<br>
<br><br>Current Status of front: <br>[root@front ~]# getenforce <br>Disabled<br><br></div><div>Tried to create a VM from front using this command:<br><br>[oneadmin@front ~]$ onetemplate instantiate "CentOS-6.5" --name "myvm1"<br>
VM ID: 23<br>[oneadmin@front ~]$ onevm list<br> ID USER GROUP NAME STAT UCPU UMEM HOST TIME<br> 23 oneadmin oneadmin myvm1 runn 0 512M nc1 0d 00h05<br><br><br>
</div><div>Output of /var/log/one/23.log<br>[oneadmin@front ~]$ tail -f /var/log/one/23.log<br>Wed Jun 25 02:13:28 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/23/deployment.0<br>Wed Jun 25 02:13:28 2014 [VMM][I]: ExitCode: 0<br>
Wed Jun 25 02:13:28 2014 [VMM][I]: Successfully execute network driver operation: pre.<br>Wed Jun 25 02:13:29 2014 [VMM][I]: ExitCode: 0<br>Wed Jun 25 02:13:29 2014 [VMM][I]: Successfully execute virtualization driver operation: deploy.<br>
Wed Jun 25 02:13:29 2014 [VMM][I]: ExitCode: 0<br>Wed Jun 25 02:13:29 2014 [VMM][I]: Successfully execute network driver operation: post.<br>Wed Jun 25 02:13:29 2014 [LCM][I]: New VM state is RUNNING<b><br>Wed Jun 25 02:13:30 2014 [LCM][I]: New VM state is UNKNOWN</b><br>
Wed Jun 25 02:13:35 2014 [VMM][I]: VM found again, state is RUNNING<br><br></div><div>Why the state should be Running & Unknown at the same time? Any clue? <br><br>Although it is running & I could login to that VM doing simple ssh <IP ADDRESS><br>
</div><div><br></div><div>Sudeep Narayan Banerjee<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 7:33 PM, Steven Timm <span dir="ltr"><<a href="mailto:timm@fnal.gov" target="_blank">timm@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">After you disabled SELinux and rebooted the VM host are you still getting the error about the deploy command failing?<div class="">
<br>
<br>
Steve Timm<br>
<br>
On Tue, 24 Jun 2014, Sudeep Narayan Banerjee wrote:<br>
<br>
</div><div class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Yes it is possible & I made it disable via following commands.<br>
<br>
[root@nc1 ~]# setenforce 0<br>
[root@nc1 ~]# getenforce<br>
</blockquote></div>
7> Permissive<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[root@nc1 ~]# lokkit --disabled<br>
<br>
Also system-config-firewall says Firewall is off. But is reboot required.<br>
<br>
But I am not understanding this error "Command execution fail: cat << EOT |<br>
> /var/tmp/one/vmm/kvm/deploy<br>
'/var/lib/one/datastores/0/15/<u></u>deployment.0' 'nc1' 15 nc1"<br>
<br>
Sudeep Narayan Banerjee<br>
<br>
<br>
<br>
On Tue, Jun 24, 2014 at 7:12 PM, Steven Timm <<a href="mailto:timm@fnal.gov" target="_blank">timm@fnal.gov</a>> wrote:<br>
This error is an SELinux error. Is it possible<br>
for you to disable SELinux on the VM host in question?<br>
<br>
Steve Timm<br>
<br>
<br>
On Tue, 24 Jun 2014, Sudeep Narayan Banerjee wrote:<br>
<br>
Dear Sir,<br>
<br>
This is in response to the subject that I posted on<br>
June-21, but still no<br>
response.<br>
<br>
I have tried to improve little bit from there but<br>
still no the VM is<br>
failing; but now throwing new error.<br>
<br>
I am posting some output of the configuration files,<br>
please have a look and<br>
kindly8 respond.<br>
<br>
==============================<u></u>==============================<u></u>=========<br>
nc1 = node<br>
front = frontend<br>
<br>
[root@nc1 ~]# grep -vE '^($|#)'<br>
/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 '^($|#)'<br>
/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 '^($|#)'<br>
/etc/default/libvirt-bin<br>
grep: /etc/default/libvirt-bin: No such file or<br>
directory<br>
<br>
[oneadmin@front ~]$ onehost list<br>
ID NAME CLUSTER RVM <br>
ALLOCATED_CPU ALLOCATED_MEM<br>
STAT <br>
3 nc1 - 0 0 / 800<br>
(0%) 0K / 3.6G (0%) on<br>
<br>
[oneadmin@front ~]$ oneimage list<br>
ID USER GROUP NAME <br>
DATASTORE SIZE TYPE PER STAT<br>
RVMS<br>
0 oneadmin oneadmin CentOS-6.5_x86_<br>
default 267M OS No<br>
rdy 0<br>
<br>
[oneadmin@front ~]$ onetemplate list<br>
ID USER GROUP <br>
NAME <u></u> <br>
REGTIME<br>
0 oneadmin oneadmin <br>
CentOS-6.5 06/21<br>
23:09:56<br>
<br>
Output of one <VM-id>.log file<br>
------------------------------<u></u>---------------<br>
[oneadmin@front ~]$ cat /var/log/one/15.log<br>
Tue Jun 24 13:19:31 2014 [DiM][I]: New VM state is<br>
ACTIVE.<br>
Tue Jun 24 13:19:31 2014 [LCM][I]: New VM state is<br>
PROLOG.<br>
Tue Jun 24 13:20:48 2014 [LCM][I]: New VM state is<br>
BOOT<br>
Tue Jun 24 13:20:48 2014 [VMM][I]: Generating<br>
deployment file:<br>
/var/lib/one/vms/15/<u></u>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<br>
execute network driver<br>
operation: pre.<br>
Tue Jun 24 13:20:49 2014 [VMM][I]: Command execution<br>
fail: cat << EOT |<br>
/var/tmp/one/vmm/kvm/deploy<br>
'/var/lib/one/datastores/0/15/<u></u>deployment.0'<br>
'nc1' 15 nc1<br>
Tue Jun 24 13:20:49 2014 [VMM][I]: error: Failed to<br>
create domain from<br>
/var/lib/one/datastores/0/15/<u></u>deployment.0<br>
Tue Jun 24 13:20:49 2014 [VMM][I]: error: unable to<br>
set security context<br>
'unconfined_u:object_r:svirt_<u></u>image_t:s0:c514,c893'<br>
on<br>
'/var/lib/one/datastores/0/15/<u></u>disk.0': Permission<br>
denied<br>
Tue Jun 24 13:20:49 2014 [VMM][E]: Could not create<br>
domain from<br>
/var/lib/one/datastores/0/15/<u></u>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<br>
virtualization driver<br>
operation: deploy.<br>
Tue Jun 24 13:20:49 2014 [VMM][E]: Error deploying<br>
virtual machine: Could<br>
not create domain from<br>
/var/lib/one/datastores/0/15/<u></u>deployment.0<br>
Tue Jun 24 13:20:50 2014 [DiM][I]: New VM state is<br>
FAILED<br>
Tue Jun 24 13:21:01 2014 [DiM][I]: New VM state is<br>
DONE.<br>
Tue Jun 24 13:21:02 2014 [TM][W]: Ignored: TRANSFER<br>
SUCCESS 15 -<br>
<br>
<br>
Any help will be greatly appreciated!<br>
<br>
Sudeep Narayan Banerjee<br>
<br>
--<br>
Thanks & Regards,Sudeep Narayan Banerjee<br>
<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------<br>
Steven C. Timm, Ph.D (630) 840-8525<br>
<a href="mailto:timm@fnal.gov" target="_blank">timm@fnal.gov</a> <a href="http://home.fnal.gov/~timm/" target="_blank">http://home.fnal.gov/~timm/</a><br>
Fermilab Scientific Computing Division, Scientific Computing Services<br>
Quad.<br>
Grid and Cloud Services Dept., Associate Dept. Head for Cloud<br>
Computing<br>
<br>
<br>
<br>
<br>
--<br>
Thanks & Regards,Sudeep Narayan Banerjee<br>
<br>
<br>
</blockquote>
<br>
------------------------------<u></u>------------------------------<u></u>------<br>
Steven C. Timm, Ph.D (630) 840-8525<br>
<a href="mailto:timm@fnal.gov" target="_blank">timm@fnal.gov</a> <a href="http://home.fnal.gov/~timm/" target="_blank">http://home.fnal.gov/~timm/</a><br>
Fermilab Scientific Computing Division, Scientific Computing Services Quad.<br>
Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Thanks & Regards,<div>Sudeep Narayan Banerjee</div></div>
</div>