[one-users] Problem creating disk images

Ruben S. Montero rsmontero at opennebula.org
Mon May 6 04:23:29 PDT 2013


Have you tried to set the KVM configuration /etc/libvirt/qemu.conf as in

$ grep -vE '^($|#)' /etc/libvirt/qemu.conf
user = "oneadmin"
group = "oneadmin"
dynamic_ownership = 0


more details here:

http://opennebula.org/documentation:rel3.8:kvmg#configuration


On Sun, May 5, 2013 at 9:40 PM, Jon <three18ti at gmail.com> wrote:

> Hello,
>
> I am trying to create a virtual machine by installing the OS from an iso
> to a qemu image.
>
> However, whenever the disk image is created, it is created with a user and
> group of oneadmin:cloud, however, once the VM attempts to start it is
> changed to libvirt-qemu:kvm then root:root, and I get an entry in the log:
>
> >> error: internal error process exited while connecting to monitor: kvm:
> -drive
> file=/var/lib/one//datastores/0/87/disk.1,if=none,id=drive-ide0-1-0,format=qcow2,cache=none:
> could not open disk image
>
> However, this disk image -does- exist, although with incorrect permissions:
>
> >> root at loki:~# ls -lah /var/lib/one//datastores/0/87
> >> -rw-r--r-- 1 root         root  5.1G Apr 27 19:24 disk.1
>
> What is changing the ownership of my disk images?
>
> Thanks,
> Jon A
>
>
> The full VM log is below:
>
> Sat Apr 27 19:23:31 2013 [DiM][I]: New VM state is ACTIVE.
> Sat Apr 27 19:23:31 2013 [LCM][I]: New VM state is PROLOG.
> Sat Apr 27 19:24:29 2013 [TM][I]: clone: Cloning
> loki:/var/lib/one/datastores/103/4a657983e37df7e79b59110748f58ce8 in
> /var/lib/one/datastores/0/87/disk.0
> Sat Apr 27 19:24:29 2013 [TM][I]: ExitCode: 0
> Sat Apr 27 19:24:51 2013 [TM][I]: mkimage: Making filesystem of 5120M and
> type ext4 at loki:/var/lib/one//datastores/0/87/disk.1
> Sat Apr 27 19:24:51 2013 [TM][I]: ExitCode: 0
> Sat Apr 27 19:24:52 2013 [TM][I]: context: Generating context block device
> at loki:/var/lib/one//datastores/0/87/disk.2
> Sat Apr 27 19:24:52 2013 [TM][I]: ExitCode: 0
> Sat Apr 27 19:24:53 2013 [LCM][I]: New VM state is BOOT
> Sat Apr 27 19:24:53 2013 [VMM][I]: Generating deployment file:
> /var/lib/one/vms/87/deployment.0
> Sat Apr 27 19:24:53 2013 [VMM][I]: ExitCode: 0
> Sat Apr 27 19:24:53 2013 [VMM][I]: Successfully execute network driver
> operation: pre.
> Sat Apr 27 19:24:56 2013 [VMM][I]: Command execution fail: cat << EOT |
> /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/87/deployment.0 loki
> 87 loki
> Sat Apr 27 19:24:56 2013 [VMM][I]: error: Failed to create domain from
> /var/lib/one//datastores/0/87/deployment.0
> Sat Apr 27 19:24:56 2013 [VMM][I]: error: internal error process exited
> while connecting to monitor: kvm: -drive
> file=/var/lib/one//datastores/0/87/disk.1,if=none,id=drive-ide0-1-0,format=qcow2,cache=none:
> could not open disk image /var/lib/one//datastores/0/87/disk.1: Invalid
> argument
> Sat Apr 27 19:24:56 2013 [VMM][I]:
> Sat Apr 27 19:24:56 2013 [VMM][E]: Could not create domain from
> /var/lib/one//datastores/0/87/deployment.0
> Sat Apr 27 19:24:56 2013 [VMM][I]: ExitCode: 255
> Sat Apr 27 19:24:56 2013 [VMM][I]: Failed to execute virtualization driver
> operation: deploy.
> Sat Apr 27 19:24:56 2013 [VMM][E]: Error deploying virtual machine: Could
> not create domain from /var/lib/one//datastores/0/87/deployment.0
> Sat Apr 27 19:24:57 2013 [DiM][I]: New VM state is FAILED
>
> _______________________________________________
> 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/20130506/b0e73c14/attachment-0002.htm>


More information about the Users mailing list