[one-users] Failed to create domain from /var/lib/one//5/images/deployment.0

Javier Fontan jfontan at gmail.com
Tue Oct 13 05:09:13 PDT 2009


Hello,

kvm is unable to bind images to disk partitions, that is, sda1. You
only can bind the image to a full disk device, for example sda.

Bye

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



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



More information about the Users mailing list