<div dir="ltr">Have you tried to set the KVM configuration /etc/libvirt/qemu.conf as in<div><br></div><div><div>$ grep -vE '^($|#)' /etc/libvirt/qemu.conf</div><div>user = "oneadmin"</div><div>group = "oneadmin"</div>

<div>dynamic_ownership = 0</div></div><div><br></div><div><br></div><div style>more details here:</div><div style><br></div><div style><a href="http://opennebula.org/documentation:rel3.8:kvmg#configuration">http://opennebula.org/documentation:rel3.8:kvmg#configuration</a><br>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 5, 2013 at 9:40 PM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hello,<br><br>I am trying to create a virtual machine by installing the OS from an iso to a qemu image.<br>

<br></div>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:<br>


<br>>> <span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">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<br>


<br></span></div>However, this disk image -does- exist, although with incorrect permissions:<br><br>>> root@loki:~# ls -lah /var/lib/one//datastores/0/87<br>>> -rw-r--r-- 1 root         root  5.1G Apr 27 19:24 disk.1<br>


<br></div>What is changing the ownership of my disk images?<br><br></div>Thanks,<br></div>Jon A<br><div><div><br><br>The full VM log is below:<br><br><span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:23:31 2013 [DiM][I]: New VM state is ACTIVE.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:23:31 2013 [LCM][I]: New VM state is PROLOG.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">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</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:29 2013 [TM][I]: ExitCode: 0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">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</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:51 2013 [TM][I]: ExitCode: 0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:52 2013 [TM][I]: context: Generating context block device at loki:/var/lib/one//datastores/0/87/disk.2</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:52 2013 [TM][I]: ExitCode: 0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:53 2013 [LCM][I]: New VM state is BOOT</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:53 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/87/deployment.0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:53 2013 [VMM][I]: ExitCode: 0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:53 2013 [VMM][I]: Successfully execute network driver operation: pre.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">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</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/87/deployment.0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">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</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]:<span> </span></span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(255,141,129);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Sat Apr 27 19:24:56 2013 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/87/deployment.0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]: ExitCode: 255</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(255,141,129);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">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</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:57 2013 [DiM][I]: New VM state is FAILED</span><br>


</div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula
</div>