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"><<a href="mailto:Zhentao.Liu@fokus-extern.fraunhofer.de">Zhentao.Liu@fokus-extern.fraunhofer.de</a>></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'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 'vnet%d' to bridge 'br2' : 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'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 '/var/run/libvirt/libvirt-sock': 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>
<<a href="mailto:Zhentao.Liu@fokus-extern.fraunhofer.de" target="_blank">Zhentao.Liu@fokus-extern.fraunhofer.de</a>> wrote:<br>
> Hello,<br>
><br>
> I have deployed a vm into my node, but the vm dosen't work. It has this<br>
> error:<br>
><br>
> oned.log<br>
> ------------------------------------------------------------------------------------------------<br>
> Tue Oct 13 12:45:31 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
> taresian:/boot/euca-debian-5.0-x86_64/debian.5-0.x86-64.img<br>
> 193.175.134.144:/var/lib/one//5/images/disk.0<br>
><br>
> Tue Oct 13 12:45:31 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
> DST: /var/lib/one//5/images/disk.0<br>
><br>
> Tue Oct 13 12:45:31 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
> Creating directory /var/lib/one//5/images<br>
><br>
> Tue Oct 13 12:46:10 2009 [VMM][I]: --Mark--<br>
> Tue Oct 13 12:46:26 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
> Executed "ssh 193.175.134.144 mkdir -p /var/lib/one//5/images".<br>
><br>
> Tue Oct 13 12:46:26 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
> Cloning taresian:/boot/euca-debian-5.0-x86_64/debian.5-0.x86-64.img<br>
><br>
> Tue Oct 13 12:46:28 2009 [InM][D]: Host 4 successfully monitored.<br>
> Tue Oct 13 12:46:42 2009 [InM][I]: --Mark--<br>
> Tue Oct 13 12:46:42 2009 [InM][I]: Monitoring host 193.175.134.144 (4)<br>
> Tue Oct 13 12:48:51 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
> Executed "scp taresian:/boot/euca-debian-5.0-x86_64/debian.5-0.x86-64.img<br>
> 193.175.134.144:/var/lib/one//5/images/disk.0".<br>
><br>
> Tue Oct 13 12:49:18 2009 [InM][D]: Host 4 successfully monitored.<br>
> Tue Oct 13 12:49:38 2009 [InM][I]: Monitoring host 193.175.134.144 (4)<br>
> Tue Oct 13 12:49:41 2009 [TM][D]: Message received: LOG - 5 tm_clone.sh:<br>
> Executed "ssh 193.175.134.144 chmod a+w /var/lib/one//5/images/disk.0".<br>
><br>
> Tue Oct 13 12:49:41 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
> Creating 1024Mb image in /var/lib/one//5/images/disk.1<br>
><br>
> Tue Oct 13 12:50:31 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
> Executed "ssh 193.175.134.144 mkdir -p /var/lib/one//5/images".<br>
><br>
> Tue Oct 13 12:51:21 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
> Executed "ssh 193.175.134.144 dd if=/dev/zero<br>
> of=/var/lib/one//5/images/disk.1 bs=1 count=1 seek=1024M".<br>
><br>
> Tue Oct 13 12:51:21 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
> Initializing swap space<br>
><br>
> Tue Oct 13 12:52:15 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
> Executed "ssh 193.175.134.144 /sbin/mkswap /var/lib/one//5/images/disk.1".<br>
><br>
> Tue Oct 13 12:53:08 2009 [TM][D]: Message received: LOG - 5 tm_mkswap.sh:<br>
> Executed "ssh 193.175.134.144 chmod a+w /var/lib/one//5/images/disk.1".<br>
><br>
> Tue Oct 13 12:53:08 2009 [TM][D]: Message received: TRANSFER SUCCESS 5 -<br>
><br>
> Tue Oct 13 12:53:08 2009 [VMM][D]: Message received: LOG - 5 Command: scp<br>
> /var/lib/one/5/deployment.0<br>
> 193.175.134.144:/var/lib/one//5/images/deployment.0<br>
><br>
> Tue Oct 13 12:53:58 2009 [VMM][D]: Message received: LOG - 5 Copy success<br>
><br>
> Tue Oct 13 12:54:51 2009 [VMM][D]: Message received: LOG - 5 error: Failed<br>
> to create domain from /var/lib/one//5/images/deployment.0<br>
><br>
> Tue Oct 13 12:54:51 2009 [VMM][D]: Message received: LOG - 5 error: internal<br>
> error unsupported disk type 'sda1'<br>
><br>
> Tue Oct 13 12:54:51 2009 [VMM][D]: Message received: LOG - 5 ExitCode: 1<br>
><br>
> Tue Oct 13 12:54:51 2009 [VMM][D]: Message received: DEPLOY FAILURE 5 Failed<br>
> to create domain from /var/lib/one//5/images/deployment.0<br>
> --------------------------------------------------------------------------------------------------------------------------------------------<br>
><br>
> deployment.0<br>
><br>
> -----------------------------------------------------------------------------------------<br>
><br>
> <domain type='kvm'><br>
>         <name>one-5</name><br>
>         <vcpu>1</vcpu><br>
>         <memory>131072</memory><br>
>         <os><br>
>                 <type>hvm</type><br>
><br>
> <kernel>/boot/euca-ubuntu-9.04-x86_64/kvm-kernel/vmlinuz-2.6.28-11-generic</kernel><br>
><br>
> <initrd>/boot/euca-ubuntu-9.04-x86_64/kvm-kernel/initrd.img-2.6.28-11-generic</initrd><br>
>                 <cmdline>root=/dev/sda1 </cmdline><br>
>                 <boot dev='hd'/><br>
>         </os><br>
>         <devices><br>
>                 <emulator>/usr/bin/kvm</emulator><br>
>                 <disk type='file' device='disk'><br>
>                         <source file='/var/lib/one//5/images/disk.0'/><br>
>                         <target dev='sda1'/><br>
>                 </disk><br>
>                 <disk type='file' device='disk'><br>
>                         <source file='/var/lib/one//5/images/disk.1'/><br>
>                         <target dev='sdb'/><br>
>                 </disk><br>
>                 <interface type='bridge'><br>
>                         <source bridge='eth0'/><br>
>                         <mac address='00:16:0a:00:01:01'/><br>
>                 </interface><br>
>         </devices><br>
>         <features><br>
>                 <acpi/><br>
>         </features><br>
> </domain><br>
> -------------------------------------------------------------------------------------------------<br>
><br>
> Otherwise there is also a error, when I run "virsh" on the node:<br>
><br>
> ----------------------------------------------------------------------------<br>
> $ virsh -c qemu:///system list<br>
> error: unable to connect to '/var/run/libvirt/libvirt-sock': Permission<br>
> denied<br>
> error: failed to connect to the hypervisor<br>
> -------------------------------------------------------------------------<br>
><br>
> Is the error "Failed to create domain from<br>
> /var/lib/one//5/images/deployment.0" caused by wrong "virsh"?<br>
><br>
> Any helps?<br>
><br>
> Regards<br>
><br>
> Zhentao<br>
><br>
><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>
><br>
<br>
<br>
<br>
--<br>
Javier Fontan, Grid & 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>