[one-users] Almost there...but failing

Héctor Sanjuán hsanjuan at opennebula.org
Tue Oct 4 08:32:36 PDT 2011


Hi

br0 must be a bridge defined in the physical host where you are going to
deploy the VM. It seems that it doesnt exist...

Hector

El 04/10/11 17:12, Bruno Ferreira escribió:
> Hector Thank you for reply.
> 
> I gave permission to the DIR in var VM_DIR.
> Now im getting other error.
> 
> I take a look at the log of the vm and everything goes ok until the boot
> then i get this errors message:
> 
> /Tue Oct  4 11:52:55 2011 [VMM][I]: STDERR follows.
> Tue Oct  4 11:52:55 2011 [VMM][I]: /usr/lib/ruby/1.8/open3.rb:73:
> warning: Insecure world writable dir /srv/cloud/one in PATH, mode 040777
> Tue Oct  4 11:52:55 2011 [VMM][I]: Warning: Permanently added
> 'xxx.xxx.xxx.xxx' (RSA) to the list of known hosts.
> Tue Oct  4 11:52:55 2011 [VMM][I]: error: Failed to create domain from
> /srv/cloud//8/images/deployment.0
> Tue Oct  4 11:52:55 2011 [VMM][I]: error: Failed to add tap interface to
> bridge 'br0': No such device
> Tue Oct  4 11:52:55 2011 [VMM][I]: ExitCode: 255
> Tue Oct  4 11:52:55 2011 [VMM][E]: Error deploying virtual machine:
> /usr/lib/ruby/1.8/open3.rb:73: warning: Insecure world writable dir
> /srv/cloud/one in PATH, mode 040777
> Tue Oct  4 11:52:55 2011 [DiM][I]: New VM state is FAILED
> /
> I have the interface br0 configured in the vm.
> Bellow is info about the network and vm.*
> 
> _onevnet show_*/_:_
> VIRTUAL NETWORK 1
> INFORMATION                                                  
> ID:       : 1                  
> UID:      : 0                  
> PUBLIC    : N                  
> 
> VIRTUAL NETWORK
> TEMPLATE                                                       
> BRIDGE=br0
> LEASES=[ IP=192.168.0.5 ]
> LEASES=[ IP=192.168.0.6 ]
> LEASES=[ IP=192.168.0.7 ]
> NAME=Small network
> TYPE=FIXED
> 
> LEASES
> INFORMATION                                                             
> LEASE=[ IP=192.168.0.5, MAC=02:00:c0:a8:00:05, USED=1, VID=7 ]
> LEASE=[ IP=192.168.0.6, MAC=02:00:c0:a8:00:06, USED=0, VID=-1 ]
> LEASE=[ IP=192.168.0.7, MAC=02:00:c0:a8:00:07, USED=0, VID=-1 ]/
> 
> _*onehost show *"id"_:
> 
> /VIRTUAL MACHINE 7
> INFORMATION                                                  
> ID             : 7                  
> NAME           : ttylinux           
> STATE          : FAILED             
> LCM_STATE      : LCM_INIT           
> START TIME     : 10/04 11:24:29     
> END TIME       : 10/04 11:27:09     
> DEPLOY ID:     : -                  
> 
> VIRTUAL MACHINE
> MONITORING                                                     
> NET_TX         : 0                  
> NET_RX         : 0                  
> USED MEMORY    : 0                  
> USED CPU       : 0                  
> 
> VIRTUAL MACHINE
> TEMPLATE                                                       
> CONTEXT=[
>   FILES=/home/oneadmin/init.sh /home/oneadmin/.ssh/id_rsa.pub,
>   HOSTNAME=ttylinux,
>   IP_PUBLIC=xxx.xxx.xxx.xxx,
>   ROOT_PUBKEY=id_dsa.pub,
>   TARGET=hdc,
>   USERNAME=opennebula,
>   USER_PUBKEY=id_dsa.pub ]
> CPU=0.5
> DISK=[
>   CLONE=YES,
>   DISK_ID=0,
>   IMAGE=ttylinux,
>   IMAGE_ID=7,
>   READONLY=NO,
>   SAVE=NO,
>   SOURCE=/srv/cloud/var/images/8625d68b699fd30e64360471eb2c38fed47fcfb6,
>   TARGET=hda,
>   TYPE=DISK ]
> FEATURES=[
>   ACPI=no ]
> MEMORY=64
> NAME=ttylinux
> NIC=[
>   BRIDGE=br0,
>   IP=192.168.0.5,
>   MAC=02:00:c0:a8:00:05,
>   NETWORK=Small network,
>   NETWORK_ID=1 ]
> VMID=7
> /
> Best Regards,
> Bruno Ferreira.
> 
> 2011/10/3 Héctor Sanjuán <hsanjuan at opennebula.org
> <mailto:hsanjuan at opennebula.org>>
> 
>     oneadmin user seems not to have rights to write to /srv/cloud/one on the
>     remote node. You may want to make VM_DIR in oned.conf point to a
>     writable folder (maybe /var/one) or give writing permissions to oneadmin
>     in /srv/cloud in the remote node.
> 
>     Hector
> 
>     El 03/10/11 21:35, Bruno Ferreira escribió:
>     > Hello guys!
>     > I am doing a cloud project for my college using open nebula.
>     >
>     > So i follow this model bellow .Almost everything is okay except the
>     > *"onevm"* procedure.
>     > http://opennebula.org/documentation:archives:rel2.2:vmg
>     >
>     > When i try to deploy a vm its show fail status.
>     >
>     > Mon Oct  3 16:14:56 2011 [DiM][I]: New VM state is PENDING.
>     > Mon Oct  3 16:15:15 2011 [DiM][I]: New VM state is ACTIVE.
>     > Mon Oct  3 16:15:15 2011 [LCM][I]: New VM state is PROLOG.
>     > Mon Oct  3 16:15:15 2011 [TM][I]: Command execution fail:
>     > /usr/lib/one/tm_commands/ssh/tm_clone.sh
>     >
>     ubuntucloud:/srv/cloud/var/images/8625d68b699fd30e64360471eb2c38fed47fcfb6xxx.xxx.xxx.xxx:/srv/cloud/one/var/4/images/disk.0
>     > Mon Oct  3 16:15:15 2011 [TM][I]: STDERR follows.
>     > Mon Oct  3 16:15:15 2011 [TM][I]: /usr/lib/ruby/1.8/open3.rb:73:
>     > warning: Insecure world writable dir /srv/cloud/one in PATH, mode
>     040777
>     > Mon Oct  3 16:15:15 2011 [TM][I]: ERROR MESSAGE --8<------
>     > Mon Oct  3 16:15:15 2011 [TM][I]: Warning: Permanently added
>     > 'xxx.xxx.xxx.xxx' (RSA) to the list of known hosts.
>     > Mon Oct  3 16:15:15 2011 [TM][I]: mkdir: é impossível criar o
>     diretório
>     > `/srv/cloud/one': Permissão negada
>     > Mon Oct  3 16:15:15 2011 [TM][I]: ERROR MESSAGE ------>8--
>     > Mon Oct  3 16:15:15 2011 [TM][I]: ExitCode: 1
>     > Mon Oct  3 16:15:15 2011 [TM][I]: tm_clone.sh:
>     >
>     ubuntucloud:/srv/cloud/var/images/8625d68b699fd30e64360471eb2c38fed47fcfb6
>     > xxx.xxx.xxx.xxx:/srv/cloud/one/var/4/images/disk.0
>     > Mon Oct  3 16:15:15 2011 [TM][I]: tm_clone.sh: DST:
>     > /srv/cloud/one/var/4/images/disk.0
>     > Mon Oct  3 16:15:15 2011 [TM][I]: tm_clone.sh: Creating directory
>     > /srv/cloud/one/var/4/images
>     > Mon Oct  3 16:15:15 2011 [TM][I]: tm_clone.sh: ERROR: Command
>     > "/usr/bin/ssh xxx.xxx.xxx.xxxmkdir -p /srv/cloud/one/var/4/images"
>     failed.
>     > Mon Oct  3 16:15:15 2011 [TM][I]: tm_clone.sh: ERROR: Warning:
>     > Permanently added 'xxx.xxx.xxx.xxx' (RSA) to the list of known hosts.
>     > Mon Oct  3 16:15:15 2011 [TM][I]: mkdir: é impossível criar o
>     diretório
>     > `/srv/cloud/one': Permissão negada
>     > Mon Oct  3 16:15:15 2011 [TM][E]: Error excuting image transfer
>     script:
>     > Warning: Permanently added '146.164.84.91 <tel:146.164.84.91>'
>     (RSA) to the list of known hosts.
>     > Mon Oct  3 16:15:15 2011 [DiM][I]: New VM state is FAILED
>     > Mon Oct  3 16:15:15 2011 [TM][W]: Ignored: LOG - 4 tm_delete.sh:
>     > Deleting /srv/cloud/one/var/4/images
>     >
>     > Mon Oct  3 16:15:15 2011 [TM][W]: Ignored: LOG - 4 tm_delete.sh:
>     > Executed "/usr/bin/ssh xxx.xxx.xxx.xxx rm -rf
>     /srv/cloud/one/var/4/images".
>     >
>     > Mon Oct  3 16:15:15 2011 [TM][W]: Ignored: TRANSFER SUCCESS 4 -
>     >
>     > Would you guys pleas give me a hand?
>     > Using open nebula 2.2.1
>     > Sorry my bad english.
>     >
>     > Best regards,
>     > Bruno Ferreira.
>     >
>     >
>     >
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>     > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 
> 
>     --
>     Héctor Sanjuán
>     OpenNebula Sunstone Developer
> 
> 
> 
> 
> -- 
> Atenciosamente,
> Bruno Ferreira.
> 


-- 
Héctor Sanjuán
OpenNebula Sunstone Developer



More information about the Users mailing list