[one-users] Cannot clone persistent image

Ruben S. Montero rsmontero at opennebula.org
Wed May 1 02:43:57 PDT 2013


Now your error may be other:

"Mon Apr 29 12:43:14 2013 [VMM][I]: error: internal error process exited
while connecting to monitor: Could not access KVM kernel module: Permission
denied"

Sometimes is needed for oneadmin to be part of the kvm group to access
/dev/kvm...

Cheers

Ruben


On Mon, Apr 29, 2013 at 6:55 AM, Mohammad Fazli Ahmat Jalaluddin <
fazli.mmu at gmail.com> wrote:

> After I restart the Front-end also cannot deploy the VM.
>
> The output of grep -vE '^($|#)' /etc/libvirt/qemu.conf
>
> vnc_listen = "0.0.0.0"
>
> user = "oneadmin"
> group = "oneadmin"
> dynamic_ownership = 0
>
> The VM log of the failed deployment after restarted with the changes;
>
> Mon Apr 29 12:43:11 2013 [DiM][I]: New VM state is ACTIVE.
> Mon Apr 29 12:43:11 2013 [LCM][I]: New VM state is PROLOG.
> Mon Apr 29 12:43:11 2013 [VM][I]: Virtual Machine has no context
> Mon Apr 29 12:43:12 2013 [TM][I]: clone: Cloning /var/lib/one/var/datastores/1/c424c36f675edf95c310ccf183f2d5b7 in onevmhost:/var/lib/one/var//datastores/0/6/disk.0
> Mon Apr 29 12:43:12 2013 [TM][I]: ExitCode: 0
> Mon Apr 29 12:43:12 2013 [LCM][I]: New VM state is BOOT
> Mon Apr 29 12:43:12 2013 [VMM][I]: Generating deployment file: /var/lib/one/var/vms/6/deployment.0
> Mon Apr 29 12:43:12 2013 [VMM][I]: ExitCode: 0
> Mon Apr 29 12:43:12 2013 [VMM][I]: Successfully execute network driver operation: pre.
> Mon Apr 29 12:43:14 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one/var//datastores/0/6/deployment.0 onevmhost 6 onevmhost
> Mon Apr 29 12:43:14 2013 [VMM][I]: error: Failed to create domain from /var/lib/one/var//datastores/0/6/deployment.0
> Mon Apr 29 12:43:14 2013 [VMM][I]: error: internal error process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
> Mon Apr 29 12:43:14 2013 [VMM][I]: failed to initialize KVM: Permission denied
> Mon Apr 29 12:43:14 2013 [VMM][I]: No accelerator found!
> Mon Apr 29 12:43:14 2013 [VMM][I]: Mon Apr 29 12:43:14 2013 [VMM][E]: Could not create domain from /var/lib/one/var//datastores/0/6/deployment.0
> Mon Apr 29 12:43:14 2013 [VMM][I]: ExitCode: 255
> Mon Apr 29 12:43:14 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.Mon Apr 29 12:43:14 2013 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one/var//datastores/0/6/deployment.0
> Mon Apr 29 12:43:14 2013 [DiM][I]: New VM state is FAILED
>
>
> By the way, let me clarify again the problem so that the initial problem
> will not mislead
>
> The actual problem is not that I could not deploy any VM, but I cannot
> deploy any persistent image that I changed into non-persistent image which
> I cannot clone also.
>
>
> On Fri, Apr 26, 2013 at 11:58 PM, Javier Fontan <jfontan at opennebula.org>wrote:
>
>> You will probably need to restart the machine after you make those
>> changes so the kvm modules give access to oneadmin user.
>>
>> On Thu, Apr 25, 2013 at 12:03 PM, Mohammad Fazli Ahmat Jalaluddin
>> <fazli.mmu at gmail.com> wrote:
>> > Yes, after I check in /var/lib/one/var/datastore/1, there are some
>> images
>> > are belong to root, some are belong to root and others belong to
>> > libvirt-qemu.
>> >
>> > Also,  I edit /etc/libvirt/qemu.conf and uncmonnet the user, group and
>> > dynamic_ownership and restart libvirt-bin
>> >
>> > output of : grep -vE '^($|#)' /etc/libvirt/qemu.conf
>> >
>> > vnc_listen = "0.0.0.0"
>> >
>> > user = "oneadmin"
>> > group = "oneadmin"
>> > dynamic_ownership = 0
>> >
>> > But, I still cannot clone any persistent image
>> >
>> > Thanks
>> >
>> >
>> >
>> > On Thu, Apr 25, 2013 at 5:34 PM, Javier Fontan <jfontan at opennebula.org>
>> > wrote:
>> >>
>> >> From the log file I'm seeing that you are using shred drivers and I
>> >> suppose you are using kvm. Can you check that in
>> >> /var/lib/one/var/datastores/1 there are images that belong to oneadmin
>> >> and other images which the owner is root?
>> >>
>> >> If this is the case check that your libvirt configuration has
>> >> dynamic_ownership set to 0 and the correct user/group [1]:
>> >>
>> >> $ grep -vE '^($|#)' /etc/libvirt/qemu.conf
>> >> user = "oneadmin"
>> >> group = "oneadmin"
>> >> dynamic_ownership = 0
>> >>
>> >>
>> >> [1] http://opennebula.org/documentation:rel3.8:kvmg#kvm_configuration
>> >>
>> >> On Thu, Apr 25, 2013 at 3:16 AM, Mohammad Fazli Ahmat Jalaluddin
>> >> <fazli.mmu at gmail.com> wrote:
>> >> > Hi,
>> >> >
>> >> > I am new to OpenNebula. Currently the version of OpenNebula I am
>> using
>> >> > is
>> >> > 3.8.3
>> >> > I have some question regarding cloning persistent image:
>> >> >
>> >> > Why I cannot clone any persistent image (READY) and if I change the
>> >> > persistent image back to non-persistent, I still cannot clone it.
>> >> >
>> >> > Also, If I want to deploy a VM using a non-persistent image that was
>> >> > previously a persistent image, it FAILED with this error message:
>> >> >
>> >> > Error executing image transfer script: Error copying
>> >> > hpc-workstation1:/var/lib/one/
>> >> > var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae to
>> >> > onevmhost:/var/lib/one/var//datastores/0/116/disk.0
>> >> >
>> >> > VM Log:
>> >> >
>> >> > Thu Apr 25 09:02:35 2013 [DiM][I]: New VM state is ACTIVE.
>> >> > Thu Apr 25 09:02:35 2013 [LCM][I]: New VM state is PROLOG.
>> >> > Thu Apr 25 09:02:36 2013 [TM][I]: Command execution fail:
>> >> > /var/lib/one/var/remotes/tm/shared/clone
>> >> >
>> >> >
>> hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae
>> >> > onevmhost:/var/lib/one/var//datastores/0/116/disk.0 116 1
>> >> > Thu Apr 25 09:02:36 2013 [TM][I]: clone: Cloning
>> >> > /var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae in
>> >> > onevmhost:/var/lib/one/var//datastores/0/116/disk.0
>> >> > Thu Apr 25 09:02:36 2013 [TM][E]: clone: Command "cd
>> >> > /var/lib/one/var/datastores/0/116; cp -r
>> >> > /var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae
>> >> > /var/lib/one/var/datastores/0/116/disk.0" failed: cp: cannot open
>> >> > `/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae' for
>> >> > reading: Permission denied
>> >> > Thu Apr 25 09:02:36 2013 [TM][E]: Error copying
>> >> >
>> >> >
>> hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae
>> >> > to onevmhost:/var/lib/one/var//datastores/0/116/disk.0
>> >> > Thu Apr 25 09:02:36 2013 [TM][I]: ExitCode: 1
>> >> > Thu Apr 25 09:02:36 2013 [TM][E]: Error executing image transfer
>> script:
>> >> > Error copying
>> >> >
>> >> >
>> hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae
>> >> > to onevmhost:/var/lib/one/var//datastores/0/116/disk.0
>> >> > Thu Apr 25 09:02:36 2013 [DiM][I]: New VM state is FAILED
>> >> >
>> >> >
>> >> > Regards,
>> >> > Fazli
>> >> >
>> >> > _______________________________________________
>> >> > Users mailing list
>> >> > Users at lists.opennebula.org
>> >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Javier Fontán Muiños
>> >> Project Engineer
>> >> OpenNebula - The Open Source Toolkit for Data Center Virtualization
>> >> www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula
>> >
>> >
>>
>>
>>
>> --
>> Javier Fontán Muiños
>> Project Engineer
>> OpenNebula - The Open Source Toolkit for Data Center Virtualization
>> www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130501/70239136/attachment-0001.htm>


More information about the Users mailing list