<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [one-users] Failed to create domain from/var/lib/one//5/images/deployment.0</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
<BR>
auto eth2<BR>
iface eth2 inet manual<BR>
<BR>
auto br2<BR>
iface br2 inet dhcp<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bridge_ports eth2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bridge_stp off<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bridge_fd 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bridge_maxwait 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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<BR>
error: failed to connect to the hypervisor<BR>
<BR>
-------------------------------------------------------------<BR>
<BR>
Any ideas?<BR>
<BR>
Regards<BR>
<BR>
Zhentao<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: users-bounces@lists.opennebula.org on behalf of Javier Fontan<BR>
Sent: Tue 10/13/2009 2:09 PM<BR>
To: Liu, Zhentao<BR>
Cc: users@lists.opennebula.org<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;Zhentao.Liu@fokus-extern.fraunhofer.de&gt; wrote:<BR>
&gt; Hello,<BR>
&gt;<BR>
&gt; I have deployed a vm into my node, but the vm dosen'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 'sda1'<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='kvm'&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='hd'/&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='file' device='disk'&gt;<BR>
&gt;                         &lt;source file='/var/lib/one//5/images/disk.0'/&gt;<BR>
&gt;                         &lt;target dev='sda1'/&gt;<BR>
&gt;                 &lt;/disk&gt;<BR>
&gt;                 &lt;disk type='file' device='disk'&gt;<BR>
&gt;                         &lt;source file='/var/lib/one//5/images/disk.1'/&gt;<BR>
&gt;                         &lt;target dev='sdb'/&gt;<BR>
&gt;                 &lt;/disk&gt;<BR>
&gt;                 &lt;interface type='bridge'&gt;<BR>
&gt;                         &lt;source bridge='eth0'/&gt;<BR>
&gt;                         &lt;mac address='00:16:0a:00:01:01'/&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 '/var/run/libvirt/libvirt-sock': 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; Users@lists.opennebula.org<BR>
&gt; <A HREF="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">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">http://dsa-research.org</A><BR>
Globus GridWay Metascheduler: <A HREF="http://www.GridWay.org">http://www.GridWay.org</A><BR>
OpenNebula Virtual Infrastructure Engine: <A HREF="http://www.OpenNebula.org">http://www.OpenNebula.org</A><BR>
_______________________________________________<BR>
Users mailing list<BR>
Users@lists.opennebula.org<BR>
<A HREF="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>