Re: [one-users] [Help] How to reboot a VM when the VM crashes?

2011-12-22 Thread cat fa
Could you tell me how to force a hypervisor-level restart ?

2011/12/22 Hutson Betts hut...@tamu.edu

 Actually, the SHUTDOWN command, for both OCCI and ONE, is equivalent to
 pressing the power button on a computer, and once it's off, taking the
 hard drive and smashing it with a hammer.

 SHUTDOWN deletes the disk image, and transitions the VM to the DONE
 state. I would like to keep a VM, and it's files around, after I've
 issued a shutdown command.

 It's only after requesting DELETE that I would want the VM to be
 completely removed.

 As for the restart, you are correct. You can only force a
 hypervisor-level restart if the VM is in either the BOOT state or
 UNKNOWN state.

 --
 Hutson Betts
 Computer Science and Engineering
 Texas AM University


 On Thu, 2011-12-22 at 12:10 +0800, cat fa wrote:
  There is an equivalent to a power button(SHUTDOWN), but there is no
  equivalent to a reset button.
 
  2011/12/22 Hutson Betts hut...@tamu.edu
 
   Wait, this implies that there is no equivalent to a power button or
   reset button on the front of a computer? Wouldn't this should be a
   necessity of every VM management tool.
  
   As it stands, I can suspend/resume VMs, or I can (shutdown|cancel) VMs
   into a deleted state. However, there is no way to shutdown (Analogous
 to
   powered-off) a VM (External to the VM) and resume it later without loss
   of data.
  
   In:
   http://opennebula.org/_detail/documentation:rel3.0:states-complete.png
   There should probably be a (restart) from [running] - [boot].
   Probably would be a hard-reset.
  
  
   --
   Hutson Betts
   Computer Science and Engineering
   Texas AM University
  
  
   On Wed, 2011-12-21 at 12:42 +0100, richard -rw- weinberger wrote:
2011/12/20 Carlos Martín Sánchez cmar...@opennebula.org:
 Hi,

 You can use the 'onevm restart' command, see [1] for more
 information
   on the
 VM life-cycle.

   
As cat fa already pointed out this is not going to work.
A reset command would be really nice to have.
   
Reset should remove the virtual machine from the hyperviser and
restart it without
removing and recreating it in OpenNebula.
   
  
   ___
   Users mailing list
   Users@lists.opennebula.org
   http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
  
  
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Help] How to reboot a VM when the VM crashes?

2011-12-21 Thread cat fa
This command is not available when the state of VM is running.
Sometimes the VM crashes down, but the state is still running.

2011/12/20 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 You can use the 'onevm restart' command, see [1] for more information on
 the VM life-cycle.

 Regards.

 [1] http://opennebula.org/documentation:rel3.0:vm_guide_2
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - The Open Source Toolkit for Data Center Virtualization
 www.OpenNebula.org | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Thu, Dec 15, 2011 at 4:59 AM, cat fa boost.subscrib...@gmail.comwrote:

 If a VM crashes, what can I do? I cannot find any command to reboot that
  VM. Suppose, I have some import data in that VM.
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] CPU capacity in Virtual Machine template leads to longterm pend.

2011-12-21 Thread cat fa
This is a section of the sched.log

//
---

Wed Dec 21 19:14:32 2011 [HOST][D]: Discovered Hosts (enabled): 0
Wed Dec 21 19:14:32 2011 [VM][D]: Pending virtual machines :
Wed Dec 21 19:14:32 2011 [SCHED][I]: Select hosts
PRI HID
---

Wed Dec 21 19:15:01 2011 [HOST][D]: Discovered Hosts (enabled): 0
Wed Dec 21 19:15:01 2011 [VM][D]: Pending virtual machines :
Wed Dec 21 19:15:01 2011 [SCHED][I]: Select hosts
PRI HID
---

Wed Dec 21 19:15:30 2011 [HOST][D]: Discovered Hosts (enabled): 0
Wed Dec 21 19:15:30 2011 [VM][D]: Pending virtual machines :
Wed Dec 21 19:15:30 2011 [SCHED][I]: Select hosts
PRI HID
---

Wed Dec 21 19:15:59 2011 [HOST][D]: Discovered Hosts (enabled): 0
Wed Dec 21 19:15:59 2011 [VM][D]: Pending virtual machines :
Wed Dec 21 19:15:59 2011 [SCHED][I]: Select hosts
PRI HID
---

Wed Dec 21 19:16:28 2011 [HOST][D]: Discovered Hosts (enabled): 0
Wed Dec 21 19:16:28 2011 [VM][D]: Pending virtual machines :
Wed Dec 21 19:16:28 2011 [SCHED][I]: Select hosts
PRI HID
//
What's wrong?

2011/12/20 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 Please check that the scheduler is running (mm_sched process), take a look
 at the scheduler log (/var/log/one/sched.log), and check that you have
 hosts with enough CPU and memory resources. More info here [1].

 Note that you can always deploy manually your VMs with the 'onevm deploy'
 command.

 Regards.

 [1]
 http://wiki.opennebula.org/faq#my_machine_stays_in_pending_state_what_can_i_do
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - The Open Source Toolkit for Data Center Virtualization
 www.OpenNebula.org | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula
 cmar...@opennebula.org


 On Mon, Dec 19, 2011 at 1:26 AM, cat fa boost.subscrib...@gmail.comwrote:

 It was always PENDING even I set it to 0.1.


 2011/12/18 Giovanni Toraldo m...@gionn.net

 2011/12/18 cat fa boost.subscrib...@gmail.com:
  I set a number in CPU capacity  section in virtual machine template.
 After I
  instantiate that virtual machine, the state of that virtual machine was
  always PENGDING. It never entered the PROLOG stage.
  What was the virtual machina waiting for?

 Check the scheduler log file, you probably set a too high CPU that is
 not satisfiable with any of your current active hosts.

 --
 Giovanni Toraldo
 http://gionn.net/
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Help] How to reboot a VM when the VM crashes?

2011-12-21 Thread cat fa
There is an equivalent to a power button(SHUTDOWN), but there is no
equivalent to a reset button.

2011/12/22 Hutson Betts hut...@tamu.edu

 Wait, this implies that there is no equivalent to a power button or
 reset button on the front of a computer? Wouldn't this should be a
 necessity of every VM management tool.

 As it stands, I can suspend/resume VMs, or I can (shutdown|cancel) VMs
 into a deleted state. However, there is no way to shutdown (Analogous to
 powered-off) a VM (External to the VM) and resume it later without loss
 of data.

 In:
 http://opennebula.org/_detail/documentation:rel3.0:states-complete.png
 There should probably be a (restart) from [running] - [boot].
 Probably would be a hard-reset.


 --
 Hutson Betts
 Computer Science and Engineering
 Texas AM University


 On Wed, 2011-12-21 at 12:42 +0100, richard -rw- weinberger wrote:
  2011/12/20 Carlos Martín Sánchez cmar...@opennebula.org:
   Hi,
  
   You can use the 'onevm restart' command, see [1] for more information
 on the
   VM life-cycle.
  
 
  As cat fa already pointed out this is not going to work.
  A reset command would be really nice to have.
 
  Reset should remove the virtual machine from the hyperviser and
  restart it without
  removing and recreating it in OpenNebula.
 

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] CPU capacity in Virtual Machine template leads to longterm pend.

2011-12-18 Thread cat fa
I set a number in CPU capacity  section in virtual machine template. After
I instantiate that virtual machine, the state of that virtual machine was
always PENGDING. It never entered the PROLOG stage.
What was the virtual machina waiting for?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] CPU capacity in Virtual Machine template leads to longterm pend.

2011-12-18 Thread cat fa
It was always PENDING even I set it to 0.1.

2011/12/18 Giovanni Toraldo m...@gionn.net

 2011/12/18 cat fa boost.subscrib...@gmail.com:
  I set a number in CPU capacity  section in virtual machine template.
 After I
  instantiate that virtual machine, the state of that virtual machine was
  always PENGDING. It never entered the PROLOG stage.
  What was the virtual machina waiting for?

 Check the scheduler log file, you probably set a too high CPU that is
 not satisfiable with any of your current active hosts.

 --
 Giovanni Toraldo
 http://gionn.net/
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Virtual Machine Lock Manager

2011-12-15 Thread cat fa
Use persistent image

2011/12/12 Upendra Moturi upendr...@hexagrid.com

 Hi,
 Is there any locking mechanism to lock vms ,so that there are no two vms
 using same hard disk


 --
 Thanks and Regards,
 Upendra.M


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [Help] How to reboot a VM when the VM crashes?

2011-12-14 Thread cat fa
If a VM crashes, what can I do? I cannot find any command to reboot that
 VM. Suppose, I have some import data in that VM.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [help] How to connet to a virtual machine?

2011-12-11 Thread cat fa
I used the ttylinux.img to start a virtual machine. The virtual machine
suspended while it was still booting. That was why I could not connected to
it. Thank you all the same.

2011/12/11 Fabian Wenk fab...@wenks.ch

 Hello Cat


 On 11.12.2011 03:12, cat fa wrote:

 You meat I should set up DHCP server on my host?


 You did write, that your server got his IP 1.185.2.21 trough DHCP, so on
 then I guess on the LAN with probably 1.185.2.0/24 is already a DHCP
 server running, so this one should also provide the IP addresses to your
 VM, as they are through the bridge in the same LAN.

 Login in through VNC and check if they not already got an IP with
 'ifconfig' or 'ifconfig -a' to see all interfaces including the assigned
 MAC address (which you then could register in the DHCP to assign the
 corresponding IP address).



 bye
 Fabian
 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [help] How to connet to a virtual machine?

2011-12-10 Thread cat fa
I successfully ran virtual machines on my host, but I could connect to them.

The IP of my host is 1.185.2.21  . I bound eth0 to virbr0. I used these
commands:

ifconfig eth0 0.0.0.0  ( to give my eth0 a 0.0.0.0.0 IP )
ifconfig virbr0 1.185.2.21 ( to give my bridge the old IP of eth0 )

I create a virtual network in SunStone with leases like

1.185.2.22
1.185.2.23
1.185.2.24

However, When I  ping my virtuial machines with any of those IPs, all thoes
IPs are unreachable.

My host abtains its own ip (1.185.2.21) through DHCP.

Documents on Opennebula.org told me how to start a virtual machine, but it
didn't tell me how to connect to a vritual machine.

Is any settings incorrect so I could connect to a virtual machine?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Problem with NoVNC

2011-12-10 Thread cat fa
Check it in the virtual machine tab on the left. You can see the current
state of your machine.

2011/12/9 Nuttapong Chaktranont nuttapong.c...@gmail.com

 Hi,

 i waited in Loading screen for 30 mins.
 How to check about the vm is working?


 Thank you.

 Message: 1
 Date: Thu, 8 Dec 2011 19:27:20 +0330
 From: davood ghatreh davood.gh2...@gmail.com
 To: users@lists.opennebula.org
 Subject: Re: [one-users] Problem with NoVNC
 Message-ID:
 CADpDy=c_o6UK=6v7u53zsmnjk+5xce6od4qoq+5aa_wtv4q...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1


 Hi,

 It has nothing to do with noVNC, the problem is with your VM. it is in
 loading state.

 Thanks

 On Thu, Dec 8, 2011 at 7:23 PM, Nuttapong Chaktranont 
 nuttapong.c...@gmail.com wrote:

 i installed openNebula 3.0 with Ubuntu 10.04 LTS . i already started

 sunstone, create image by downloading ttylinux.tar.gz .

 The problem is when vm is running and i clicked on the icon VNC at VNC

 Access column so it show popup NoVNC then i got Black Screen with the

 message Loading..  . i tried with other browers and got at the same thing

 e.g. chrome version 15 , firefox version 8 ,etc.

 i tried to create images with myself. i got result same ttylinux images.



 i attach image with this email too.



 Thank you


 ___

 Users mailing list

 Users@lists.opennebula.org

 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [help]Could not create domain

2011-12-09 Thread cat fa
I modified the user and group in /etc/libvirt/qemu.conf , is that correct?

2011/12/10 Fabian Wenk fab...@wenks.ch

 Hello Cat


 On 09.12.2011 14:35, cat fa wrote:

 Fri Dec  9 04:31:57 2011 [VMM][I]: Command execution fail: 'if [ -x
 /var/tmp/one/vmm/kvm/deploy ]; then /var/tmp/one/vmm/kvm/deploy
 /var/lib/one//10/images/**deployment.0 1.185.4.109 10 1.185.4.109; else
 exit 42; fi'
 Fri Dec  9 04:31:57 2011 [VMM][I]: error: Failed to create domain from
 /var/lib/one//10/images/**deployment.0


 Is the configuration for libvirtd correct does is allow to be usesed by
 the oneadmin user or one of his groups it is member of?


 bye
 Fabian
 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [help]stack level too deep (SystemStackError)

2011-12-07 Thread cat fa
I got stack level too deep error when I ran sunstone-server start.

this is the log

(__DELEGATE__):2:in `settings': stack level too deep (SystemStackError)
from (__DELEGATE__):2:in `send'
from (__DELEGATE__):2:in `settings'
from (__DELEGATE__):2:in `send'
from (__DELEGATE__):2:in `settings'
from (__DELEGATE__):2:in `send'
from (__DELEGATE__):2:in `settings'
from (__DELEGATE__):2:in `send'
from (__DELEGATE__):2:in `settings'
 ... 1601 levels...
from (__DELEGATE__):2:in `settings'
from (__DELEGATE__):2:in `send'
from (__DELEGATE__):2:in `settings'
from /usr/lib/one/sunstone/sunstone-server.rb:68

Is this a bug? Or what can I do?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [help]how to find the xmlrpc-c develope libraries?

2011-12-01 Thread cat fa
I downloaded a xmlrpc tarball from http://xmlrpc-c.sourceforge.net/ and
installed it.After that I started to compile OpenNebula 3.0 with the
command

scons sqlite_db=/usr/bin


Howerer I got a error as

Error for searching for xmlrpc-c libraries. Please check this thing



It seemed I need development libraries of xmlrpc. Where can I get it ?

I tried sudo apt-get isntall libxmlrpc ,but no package was found.

I'm using Ubuntu 11.04.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [help]how to find the xmlrpc-c develope libraries?

2011-12-01 Thread cat fa
I meant I also tried apt-get. Before that I used
./configure
make
make install

2011/12/1 Robert Schweikert rjsch...@suse.com

 On 12/01/2011 09:07 AM, cat fa wrote:

 I downloaded a xmlrpc tarball from 
 http://xmlrpc-c.sourceforge.**net/http://xmlrpc-c.sourceforge.net/and
 installed it.After that I started to compile OpenNebula 3.0 with the
 command

 scons sqlite_db=/usr/bin


 Howerer I got a error as

 Error for searching for xmlrpc-c libraries. Please check this thing
 


 It seemed I need development libraries of xmlrpc. Where can I get it ?


 Well, if you downloaded the xmlrpc-c tarball, you'll need to build the
 libraries.

 ./configure
 make
 make install

 There's a README file with the xmplrpc code you downloaded.

 HTH,
 Robert


 I tried sudo apt-get isntall libxmlrpc ,but no package was found.

 I'm using Ubuntu 11.04.



 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org



 --
 Robert Schweikert   MAY THE SOURCE BE WITH YOU
 SUSE-IBM Software Integration Center   LINUX
 Tech Lead
 rjsch...@suse.com
 rschw...@ca.ibm.com
 781-464-8147
 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org