I think that you need check the OpenNebula documentation, because you need contextualitation the VM


----------------------------------------------------------------------

Message: 1
Date: Sun, 5 May 2013 13:40:51 -0600
From: Jon <[email protected]>
To: Users OpenNebula <[email protected]>
Subject: [one-users]  Problem creating disk images
Message-ID:
        <cal40zrr8p92k5h99dgv+soemmtuqvwxkxqyw7ug5a8jwejy...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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@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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:

<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130505/827178c0/attachment-0001.htm>

------------------------------



48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre 
de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to