[one-users] VM failure

alph inf infopole7 at gmail.com
Mon Jul 4 08:03:51 PDT 2011


I've solved the issue and ttylinux is 'runn' now.
The problem was with oneadmin privileges on the node.
" [TM][I]: mkdir: cannot create directory `/var/lib/one': Permission denied"
Giving oneadmin enough privileges fixed the issue.


> Hi ,
> I'm trying to follow the ttylinux vm tutorial.
>
>
> Here is the ttylinux.one:
>
> #---------------------------------------
> # VM definition example
> #---------------------------------------
>
> NAME = "ttylinux"
>
> CPU    = 0.5
> MEMORY = 64
>
> # --- disks ---
>
>
> DISK = [
>   source   = "/home/ami/one-templates/ttylinux.img",
>   target   = "sda",
>   readonly = "no" ]
>
> # --- 1 NIC ---
>
>
> NIC = [ NETWORK="Small network"]
>
> FEATURES=[ acpi="no" ]
>
> # --- VNC server ---
>
> GRAPHICS = [
>   type    = "vnc",
>   listen  = "127.0.0.1"]
>
>
> And here is the Small_network.net file
>
>
> NAME = "Small network"
>
> TYPE = FIXED
>
> #Now we'll use the cluster private network
> (physical)
>
> BRIDGE = br0
>
> LEASES = [ IP="192.168.0.5"]
>
> LEASES = [ IP="192.168.0.6"]
>
> LEASES = [ IP="192.168.0.7"]
>
>
> $ onehost list
>
>   ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
> STAT
>    3 192.168.0.2       default    0    200    199    200    2.9G    2.7G
> on
>
> $ onevm list
>  ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME
>    19 oneadmin ttylinux fail   0      0K     192.168.0.2 00 00:00:24
>    20 oneadmin ttylinux fail   0      0K     192.168.0.2 00 00:00:25
>
> And here is the oned.log :
>
>
> Mon Jul  4 12:43:04 2011 [InM][I]: Monitoring host 192.168.0.2 (3)
> Mon Jul  4 12:43:09 2011 [InM][D]: Host 3 successfully monitored.
> Mon Jul  4 12:43:13 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jul  4 12:43:28 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jul  4 12:43:29 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul  4 12:43:35 2011 [ReM][D]: VirtualMachineAllocate invoked
> Mon Jul  4 12:43:58 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jul  4 12:43:59 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul  4 12:43:59 2011 [ReM][D]: VirtualMachineDeploy invoked
> Mon Jul  4 12:43:59 2011 [DiM][D]: Deploying VM 20
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 Command
> execution fail: /usr/lib/one/tm_commands/ssh/tm_clone.sh
> ami-frontend:/home/ami/one-templates/ttylinux.img 192.168.0.2:
> /var/lib/one//20/images/disk.0
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 STDERR
> follows.
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 ERROR MESSAGE
> --8<------
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 Warning:
> Permanently added '192.168.0.2' (RSA) to the list of known hosts.
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 mkdir: cannot
> create directory `/var/lib/one': Permission denied
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 ERROR MESSAGE
> ------>8--
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 ExitCode: 1
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 tm_clone.sh:
> ami-frontend:/home/ami/one-templates/ttylinux.img 192.168.0.2:
> /var/lib/one//20/images/disk.0
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 tm_clone.sh:
> DST: /var/lib/one//20/images/disk.0
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 tm_clone.sh:
> Creating directory /var/lib/one//20/images
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 tm_clone.sh:
> ERROR: Command "/usr/bin/ssh 192.168.0.2 mkdir -p /var/lib/one//20/images"
> failed.
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 tm_clone.sh:
> ERROR: Warning: Permanently added '192.168.0.2' (RSA) to the list of known
> hosts.
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 mkdir: cannot
> create directory `/var/lib/one': Permission denied
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: TRANSFER FAILURE 20
> Warning: Permanently added '192.168.0.2' (RSA) to the list of known hosts.
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: mkdir: cannot create
> directory `/var/lib/one': Permission denied
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 tm_delete.sh:
> Deleting /var/lib/one//20/images
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: LOG - 20 tm_delete.sh:
> Executed "/usr/bin/ssh 192.168.0.2 rm -rf /var/lib/one//20/images".
>
> Mon Jul  4 12:44:00 2011 [TM][D]: Message received: TRANSFER SUCCESS 20 -
>
> Mon Jul  4 12:44:18 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul  4 12:44:28 2011 [ReM][D]: HostPoolInfo method invoked
>
>
>
>
> The frontend ip is : 192.168.0.4
> The node ip is : 192.168.0.2
>
> Any help !!
>
> Regards.
>
> Ami
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110704/5bab0060/attachment-0003.htm>


More information about the Users mailing list