<!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 <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<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>
<Zhentao.Liu@fokus-extern.fraunhofer.de> 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>
> 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>
><BR>
<BR>
<BR>
<BR>
--<BR>
Javier Fontan, Grid & 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>