[one-users] Unable to Stop Running VM

Koushik Annapureddy koushik1987 at gmail.com
Fri May 6 06:19:16 PDT 2011


Hello All,

I found that issue for "stop" command is that  chown command in NFS is not
working . Node is not able to perform chown operation on checkpoint file i.e
(for example) /srv/cloud/one/var//12/images/checkpoint.  Here is the
detailed information about my NFS setup configuration details and issue I am
facing.

It would be great if anyone can help me in solving this issue

I have create a NFS server (IP: 192.168.2.3) with following export
configuration at /etc/exports:

Code:

/srv/cloud 192.168.2.4(rw,async,no_subtree_check,no_root_squash)

>From machine 192.168.2.4 I have following configuration in /etc/fstab:

Code:

192.168.2.3:/srv/cloud  /srv/cloud      nfs     rw,hard,intr    0       0

Now from machine 192.168.2.4 with root user, I create a file
"/srv/cloud/xyz" and then change the ownership of the file to user
"oneadmin". I have following commands and the error in the output:

Code:

#touch /srv/cloud/xyz
#chown oneadmin:oneadmin /srv/cloud/xyz
chown: changing ownership of `xyz': Invalid argument

I have user "oneadmin" at both server and the client machine with same user
and group id:

At client:
Code:

#id oneadmin
uid=9000(oneadmin) gid=9000(oneadmin) groups=9000(oneadmin),110(libvirtd)

At server:
Code:

#id oneadmin
uid=9000(oneadmin) gid=9000(oneadmin) groups=9000(oneadmin)

What could be the problem in changing the ownership of the file from the
root user at nfs client machine when "no_root_squash" has been specified?

Thanks
Koushik



On Thu, May 5, 2011 at 4:14 PM, Koushik Annapureddy
<koushik1987 at gmail.com>wrote:

> Hello Tino,
>
> While using virsh save command I did not get any error message.
>
>
> On Thu, May 5, 2011 at 2:19 PM, Koushik Annapureddy <koushik1987 at gmail.com
> > wrote:
>
>> Hello Tino,
>>
>> I am able to successfully save( using virsh) running ttylinux VM and
>> Ubuntu VM  to a file and restore it.
>>
>> Thanks
>> Koushik
>>
>> On Thu, May 5, 2011 at 12:49 PM, Tino Vazquez <tinova at opennebula.org>wrote:
>>
>>> Hi,
>>>
>>> Do you get the same behavior using "virsh save"?
>>>
>>> Regards,
>>>
>>> -Tino
>>>
>>> --
>>> Constantino Vázquez Blanco, MSc
>>> OpenNebula Major Contributor
>>> www.OpenNebula.org | @tinova79
>>>
>>>
>>>
>>> On Thu, May 5, 2011 at 10:13 AM, Koushik Annapureddy
>>> <koushik1987 at gmail.com> wrote:
>>> > Hello Tino,
>>> > I have followed these steps as per the link mentioned
>>> > 1)  edit /etc/libvirt/qemu.conf, and uncomment the line that says
>>> > "dynamic_ownership = 1" and change the 1 to a 0
>>> > 2) Restart libvirtd
>>> >
>>> >
>>> >  I guess that all the disk image files are used by qemu are set to
>>> proper
>>> > ownership since qemu is sucessfull in launching the VM's.
>>> > After performing these steps I am still facing the same issue ( When i
>>> > issues onevm stop vmid ), Here is the log info
>>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: LOG - 46 ExitCode:
>>> 1
>>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: SAVE FAILURE 46
>>> error:
>>> > Failed to save domain one-46 to
>>> /srv/cloud/one/var//46/images/checkpoint
>>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: error: unable to
>>> set
>>> > user and group to '0:0' on '/srv/cloud/one/var//46/images/checkpoint':
>>> > Invalid argument
>>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: ExitCode: 1
>>> > Thu May  5 11:02:54 2011 [VMM][D]: Message received: POLL SUCCESS 46
>>> STATE=a
>>> > USEDMEMORY=131072
>>> > Thank you for the help..
>>> > Thanks
>>> > Koushik
>>> >
>>> >
>>> > On Wed, May 4, 2011 at 4:24 PM, Tino Vazquez <tinova at opennebula.org>
>>> wrote:
>>> >>
>>> >> Hi,
>>> >>
>>> >> Yes, this is a permissions issue. Please see if this [1] provides any
>>> >> hints to solve the issue.
>>> >>
>>> >> Regards,
>>> >>
>>> >> -Tino
>>> >>
>>> >> [1] http://osdir.com/ml/libvir-list/2011-04/msg01220.html
>>> >> --
>>> >> Constantino Vázquez Blanco, MSc
>>> >> OpenNebula Major Contributor
>>> >> www.OpenNebula.org | @tinova79
>>> >>
>>> >>
>>> >>
>>> >> On Wed, May 4, 2011 at 2:31 PM, Koushik Annapureddy
>>> >> <koushik1987 at gmail.com> wrote:
>>> >> > unable to set user and group to '0:0' o
>>> >
>>> >
>>> >
>>> > --
>>> > Thanks
>>> > Koushik Annapureddy
>>> >
>>>
>>
>>
>>
>> --
>> Thanks
>> Koushik Annapureddy
>>
>
>
>
> --
> Thanks
> Koushik Annapureddy
>



-- 
Thanks
Koushik Annapureddy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110506/9ae1268d/attachment-0003.htm>


More information about the Users mailing list