Hello,<br><br>It seems that the oneadmin user does not belong to group libvirtd. Try adding both your user account and oneadmin to this group.<br><br>Regards,<br>Jaime<br><br><div class="gmail_quote">On Wed, Oct 14, 2009 at 10:32 AM, Liu, Zhentao <span dir="ltr">&lt;<a href="mailto:Zhentao.Liu@fokus-extern.fraunhofer.de">Zhentao.Liu@fokus-extern.fraunhofer.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>


<p><font size="2">Hello,<br>
<br>
I have changed the disk partitions to sda, but it still doesn&#39;t work. There is still the same error.<br>
<br>
--------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
Tue Oct 13 17:43:18 2009 [VMM][D]: Message received: LOG - 7 error: Failed to create domain from /var/lib/one//7/images/deployment.0<br>
<br>
Tue Oct 13 17:43:18 2009 [VMM][D]: Message received: LOG - 7 error: internal error Failed to add tap interface &#39;vnet%d&#39; to bridge &#39;br2&#39; : Permission denied<br>
<br>
Tue Oct 13 17:43:18 2009 [VMM][D]: Message received: LOG - 7 ExitCode: 1<br>
<br>
Tue Oct 13 17:43:18 2009 [VMM][D]: Message received: DEPLOY FAILURE 7 Failed to create domain from /var/lib/one//7/images/deployment.0<br>
--------------------------------------------------------------------------------------------------------------------------------------------------------<br>
ps: I have changed the interface to br2. This is my network configuration.<br>
<br>
------------------------------------------------------------------------------<br>
<br>
auto lo<br>
iface lo inet loopback                                    <br>
<br>
<br>
auto eth2<br>
iface eth2 inet manual<br>
<br>
auto br2<br>
iface br2 inet dhcp<br>
        bridge_ports eth2<br>
        bridge_stp off<br>
        bridge_fd 0<br>
        bridge_maxwait 0<br>
        metric 1<br>
--------------------------------------------------------------------------<br>
<br>
I can&#39;t run virsh correctly on the node. Maybe is it the problem?<br>
-------------------------------------------------------------<br>
root@forest:/var/run/libvirt# virsh -c qemu:///system list<br>
error: unable to connect to &#39;/var/run/libvirt/libvirt-sock&#39;: Connection refused<div class="im"><br>
error: failed to connect to the hypervisor<br>
<br>
-------------------------------------------------------------<br>
<br></div>
Any ideas?<br>
<br>
Regards<br><font color="#888888">
<br>
Zhentao</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:users-bounces@lists.opennebula.org" target="_blank">users-bounces@lists.opennebula.org</a> on behalf of Javier Fontan<br>
Sent: Tue 10/13/2009 2:09 PM<br>
To: Liu, Zhentao<br>
Cc: <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a><br>
Subject: Re: [one-users] Failed to create domain from/var/lib/one//5/images/deployment.0<br>
<br>
Hello,<br>
<br>
kvm is unable to bind images to disk partitions, that is, sda1. You<br>
only can bind the image to a full disk device, for example sda.<br>
<br>
Bye<br>
<br>
On Tue, Oct 13, 2009 at 1:48 PM, Liu, Zhentao<br>
&lt;<a href="mailto:Zhentao.Liu@fokus-extern.fraunhofer.de" target="_blank">Zhentao.Liu@fokus-extern.fraunhofer.de</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have deployed a vm into my node, but the vm dosen&#39;t work. It has this<br>
&gt; error:<br>
&gt;<br>
&gt; oned.log<br>
&gt; ------------------------------------------------------------------------------------------------<br>
&gt; Tue Oct 13 12:45:31 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
&gt; taresian:/boot/euca-debian-5.0-x86_64/debian.5-0.x86-64.img<br>
&gt; 193.175.134.144:/var/lib/one//5/images/disk.0<br>
&gt;<br>
&gt; Tue Oct 13 12:45:31 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
&gt; DST: /var/lib/one//5/images/disk.0<br>
&gt;<br>
&gt; Tue Oct 13 12:45:31 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
&gt; Creating directory /var/lib/one//5/images<br>
&gt;<br>
&gt; Tue Oct 13 12:46:10 2009 [VMM][I]: --Mark--<br>
&gt; Tue Oct 13 12:46:26 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
&gt; Executed &quot;ssh 193.175.134.144 mkdir -p /var/lib/one//5/images&quot;.<br>
&gt;<br>
&gt; Tue Oct 13 12:46:26 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
&gt; Cloning taresian:/boot/euca-debian-5.0-x86_64/debian.5-0.x86-64.img<br>
&gt;<br>
&gt; Tue Oct 13 12:46:28 2009 [InM][D]: Host 4 successfully monitored.<br>
&gt; Tue Oct 13 12:46:42 2009 [InM][I]: --Mark--<br>
&gt; Tue Oct 13 12:46:42 2009 [InM][I]: Monitoring host 193.175.134.144 (4)<br>
&gt; Tue Oct 13 12:48:51 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
&gt; Executed &quot;scp taresian:/boot/euca-debian-5.0-x86_64/debian.5-0.x86-64.img<br>
&gt; 193.175.134.144:/var/lib/one//5/images/disk.0&quot;.<br>
&gt;<br>
&gt; Tue Oct 13 12:49:18 2009 [InM][D]: Host 4 successfully monitored.<br>
&gt; Tue Oct 13 12:49:38 2009 [InM][I]: Monitoring host 193.175.134.144 (4)<br>
&gt; Tue Oct 13 12:49:41 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
&gt; Executed &quot;ssh 193.175.134.144 chmod a+w /var/lib/one//5/images/disk.0&quot;.<br>
&gt;<br>
&gt; Tue Oct 13 12:49:41 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
&gt; Creating 1024Mb image in /var/lib/one//5/images/disk.1<br>
&gt;<br>
&gt; Tue Oct 13 12:50:31 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
&gt; Executed &quot;ssh 193.175.134.144 mkdir -p /var/lib/one//5/images&quot;.<br>
&gt;<br>
&gt; Tue Oct 13 12:51:21 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
&gt; Executed &quot;ssh 193.175.134.144 dd if=/dev/zero<br>
&gt; of=/var/lib/one//5/images/disk.1 bs=1 count=1 seek=1024M&quot;.<br>
&gt;<br>
&gt; Tue Oct 13 12:51:21 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
&gt; Initializing swap space<br>
&gt;<br>
&gt; Tue Oct 13 12:52:15 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
&gt; Executed &quot;ssh 193.175.134.144 /sbin/mkswap /var/lib/one//5/images/disk.1&quot;.<br>
&gt;<br>
&gt; Tue Oct 13 12:53:08 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
&gt; Executed &quot;ssh 193.175.134.144 chmod a+w /var/lib/one//5/images/disk.1&quot;.<br>
&gt;<br>
&gt; Tue Oct 13 12:53:08 2009 [TM][D]: Message received: TRANSFER SUCCESS 5 -<br>
&gt;<br>
&gt; Tue Oct 13 12:53:08 2009 [VMM][D]: Message received: LOG - 5 Command: scp<br>
&gt; /var/lib/one/5/deployment.0<br>
&gt; 193.175.134.144:/var/lib/one//5/images/deployment.0<br>
&gt;<br>
&gt; Tue Oct 13 12:53:58 2009 [VMM][D]: Message received: LOG - 5 Copy success<br>
&gt;<br>
&gt; Tue Oct 13 12:54:51 2009 [VMM][D]: Message received: LOG - 5 error: Failed<br>
&gt; to create domain from /var/lib/one//5/images/deployment.0<br>
&gt;<br>
&gt; Tue Oct 13 12:54:51 2009 [VMM][D]: Message received: LOG - 5 error: internal<br>
&gt; error unsupported disk type &#39;sda1&#39;<br>
&gt;<br>
&gt; Tue Oct 13 12:54:51 2009 [VMM][D]: Message received: LOG - 5 ExitCode: 1<br>
&gt;<br>
&gt; Tue Oct 13 12:54:51 2009 [VMM][D]: Message received: DEPLOY FAILURE 5 Failed<br>
&gt; to create domain from /var/lib/one//5/images/deployment.0<br>
&gt; --------------------------------------------------------------------------------------------------------------------------------------------<br>
&gt;<br>
&gt; deployment.0<br>
&gt;<br>
&gt; -----------------------------------------------------------------------------------------<br>
&gt;<br>
&gt; &lt;domain type=&#39;kvm&#39;&gt;<br>
&gt;         &lt;name&gt;one-5&lt;/name&gt;<br>
&gt;         &lt;vcpu&gt;1&lt;/vcpu&gt;<br>
&gt;         &lt;memory&gt;131072&lt;/memory&gt;<br>
&gt;         &lt;os&gt;<br>
&gt;                 &lt;type&gt;hvm&lt;/type&gt;<br>
&gt;<br>
&gt; &lt;kernel&gt;/boot/euca-ubuntu-9.04-x86_64/kvm-kernel/vmlinuz-2.6.28-11-generic&lt;/kernel&gt;<br>
&gt;<br>
&gt; &lt;initrd&gt;/boot/euca-ubuntu-9.04-x86_64/kvm-kernel/initrd.img-2.6.28-11-generic&lt;/initrd&gt;<br>
&gt;                 &lt;cmdline&gt;root=/dev/sda1 &lt;/cmdline&gt;<br>
&gt;                 &lt;boot dev=&#39;hd&#39;/&gt;<br>
&gt;         &lt;/os&gt;<br>
&gt;         &lt;devices&gt;<br>
&gt;                 &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;<br>
&gt;                 &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>
&gt;                         &lt;source file=&#39;/var/lib/one//5/images/disk.0&#39;/&gt;<br>
&gt;                         &lt;target dev=&#39;sda1&#39;/&gt;<br>
&gt;                 &lt;/disk&gt;<br>
&gt;                 &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>
&gt;                         &lt;source file=&#39;/var/lib/one//5/images/disk.1&#39;/&gt;<br>
&gt;                         &lt;target dev=&#39;sdb&#39;/&gt;<br>
&gt;                 &lt;/disk&gt;<br>
&gt;                 &lt;interface type=&#39;bridge&#39;&gt;<br>
&gt;                         &lt;source bridge=&#39;eth0&#39;/&gt;<br>
&gt;                         &lt;mac address=&#39;00:16:0a:00:01:01&#39;/&gt;<br>
&gt;                 &lt;/interface&gt;<br>
&gt;         &lt;/devices&gt;<br>
&gt;         &lt;features&gt;<br>
&gt;                 &lt;acpi/&gt;<br>
&gt;         &lt;/features&gt;<br>
&gt; &lt;/domain&gt;<br>
&gt; -------------------------------------------------------------------------------------------------<br>
&gt;<br>
&gt; Otherwise there is also a error, when I run &quot;virsh&quot; on the node:<br>
&gt;<br>
&gt; ----------------------------------------------------------------------------<br>
&gt; $ virsh -c qemu:///system list<br>
&gt; error: unable to connect to &#39;/var/run/libvirt/libvirt-sock&#39;: Permission<br>
&gt; denied<br>
&gt; error: failed to connect to the hypervisor<br>
&gt; -------------------------------------------------------------------------<br>
&gt;<br>
&gt; Is the error &quot;Failed to create domain from<br>
&gt; /var/lib/one//5/images/deployment.0&quot; caused by wrong &quot;virsh&quot;?<br>
&gt;<br>
&gt; Any helps?<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; Zhentao<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
&gt; <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Javier Fontan, Grid &amp; Virtualization Technology Engineer/Researcher<br>
DSA Research Group: <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a><br>
Globus GridWay Metascheduler: <a href="http://www.GridWay.org" target="_blank">http://www.GridWay.org</a><br>
OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">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>
</div></div></font>
</p>

</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>