Re: [one-users] VMM 'unknown' state not being set?

2015-02-26 Thread Andy Coates
We set the VMM to report :deleted and it went into 'unknown' state, which
is perfect for us as we can then issue a VM cancel and it will clean up the
VM on the hypervisor as well.

Thanks :)

On 25 February 2015 at 23:04, Carlos Martín Sánchez cmar...@opennebula.org
wrote:

 Hi,

 On Fri, Feb 20, 2015 at 1:15 PM, Andy Coates andy.coa...@gmail.com
 wrote:

 We tried 'p' but it means we can't cancel the VM.  We have to resume the
 VM just to stop it, and then cancel it.

 Feels like we're going about something the wrong way if we're unable to
 monitor a VM's state to show it stopped, and thus cancel/clean up the VM.


 Maybe the problem is with the nomenclature.

 You said you wanted to report the VM is stopped. To OpenNebula that means
 that the VM disks and the memory state have been saved back to the system
 datastore, plus the networking is cleaned up, etc. That's something that
 the VM can't do by itself, so we don't consider the option to report that
 from the poll info.

 If by stopped you mean that the VM was shut down, then the drivers can
 report 'd', and the core will move it to the poweroff state.
 In any case, a VM in the suspended or poweroff states can be deleted
 without having to resume it first.

 At least that's how it works for 4.10, it may be a bit different in 4.6.


 Regards
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org
  | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org



 On 20 February 2015 at 17:29, Carlos Martín Sánchez 
 cmar...@opennebula.org wrote:

 Hi,

 On Wed, Feb 18, 2015 at 11:37 AM, Andy Coates andy.coa...@gmail.com
 wrote:

 Thanks Carlos - I thought 'd' would be marked as something else.
 We're basically trying to flag a stopped VM but with those limited STATE
 options it doesn't seem possible.  How can we represent a 'stopped' VM in
 the poll information?


 If the driver returns 'p', the VM is moved to SUSPEND. But you can't
 tell opennebula that the VM is STOPPED, this needs to be started from the
 core.

 Regards
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org
  | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org



 On 18 February 2015 at 16:58, Carlos Martín Sánchez 
 cmar...@opennebula.org wrote:

 Hi,

 On Mon, Feb 16, 2015 at 9:51 AM, Andy Coates andy.coa...@gmail.com
 wrote:

 Running OpenNebula 4.6.2

 We have a custom VMM driver that is set to report 'unknown' state if
 we can't determine the current VM state on the host.  According to the 
 docs
 the '-' character indicates unknown, and as shown below ON is seeing and
 parsing the VMM data correctly:

 [VMM][D]: VM 1135 successfully monitored: USEDMEMORY=4194304
 USEDCPU=800 NETTX=0 NETRX=0 *STATE=-* IP=10.0.0.174

 Am I missing something?  Shouldn't the VM state be set to
 unkn/UNKNOWN in this case?

 Thanks.


 The '-' character indicates a monitoring unexpected error, like when
 the monitoring probes could not parse the output. In this case OpenNebula
 does nothing, the current VM state is kept.
 A state='d' (disappeared) indicates that the monitoring could be done
 (hypervisor is up), but the VM was not found in the list of VMs. In this
 case OpenNebula will set the VM to unknown.

 See:
 http://docs.opennebula.org/4.6/integration/infrastructure_integration/devel-vmm.html#poll-information

 Regards
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org http://www.opennebula.org/ |
 cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebula
 cmar...@opennebula.org








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


Re: [one-users] VMM 'unknown' state not being set?

2015-02-20 Thread Andy Coates
We tried 'p' but it means we can't cancel the VM.  We have to resume the VM
just to stop it, and then cancel it.

Feels like we're going about something the wrong way if we're unable to
monitor a VM's state to show it stopped, and thus cancel/clean up the VM.

On 20 February 2015 at 17:29, Carlos Martín Sánchez cmar...@opennebula.org
wrote:

 Hi,

 On Wed, Feb 18, 2015 at 11:37 AM, Andy Coates andy.coa...@gmail.com
 wrote:

 Thanks Carlos - I thought 'd' would be marked as something else.   We're
 basically trying to flag a stopped VM but with those limited STATE options
 it doesn't seem possible.  How can we represent a 'stopped' VM in the poll
 information?


 If the driver returns 'p', the VM is moved to SUSPEND. But you can't tell
 opennebula that the VM is STOPPED, this needs to be started from the core.

 Regards
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org
  | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org



 On 18 February 2015 at 16:58, Carlos Martín Sánchez 
 cmar...@opennebula.org wrote:

 Hi,

 On Mon, Feb 16, 2015 at 9:51 AM, Andy Coates andy.coa...@gmail.com
 wrote:

 Running OpenNebula 4.6.2

 We have a custom VMM driver that is set to report 'unknown' state if we
 can't determine the current VM state on the host.  According to the docs
 the '-' character indicates unknown, and as shown below ON is seeing and
 parsing the VMM data correctly:

 [VMM][D]: VM 1135 successfully monitored: USEDMEMORY=4194304
 USEDCPU=800 NETTX=0 NETRX=0 *STATE=-* IP=10.0.0.174

 Am I missing something?  Shouldn't the VM state be set to unkn/UNKNOWN
 in this case?

 Thanks.


 The '-' character indicates a monitoring unexpected error, like when the
 monitoring probes could not parse the output. In this case OpenNebula does
 nothing, the current VM state is kept.
 A state='d' (disappeared) indicates that the monitoring could be done
 (hypervisor is up), but the VM was not found in the list of VMs. In this
 case OpenNebula will set the VM to unknown.

 See:
 http://docs.opennebula.org/4.6/integration/infrastructure_integration/devel-vmm.html#poll-information

 Regards
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org
  | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org






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


Re: [one-users] VMM 'unknown' state not being set?

2015-02-18 Thread Andy Coates
Thanks Carlos - I thought 'd' would be marked as something else.   We're
basically trying to flag a stopped VM but with those limited STATE options
it doesn't seem possible.  How can we represent a 'stopped' VM in the poll
information?

On 18 February 2015 at 16:58, Carlos Martín Sánchez cmar...@opennebula.org
wrote:

 Hi,

 On Mon, Feb 16, 2015 at 9:51 AM, Andy Coates andy.coa...@gmail.com
 wrote:

 Running OpenNebula 4.6.2

 We have a custom VMM driver that is set to report 'unknown' state if we
 can't determine the current VM state on the host.  According to the docs
 the '-' character indicates unknown, and as shown below ON is seeing and
 parsing the VMM data correctly:

 [VMM][D]: VM 1135 successfully monitored: USEDMEMORY=4194304 USEDCPU=800
 NETTX=0 NETRX=0 *STATE=-* IP=10.0.0.174

 Am I missing something?  Shouldn't the VM state be set to unkn/UNKNOWN in
 this case?

 Thanks.


 The '-' character indicates a monitoring unexpected error, like when the
 monitoring probes could not parse the output. In this case OpenNebula does
 nothing, the current VM state is kept.
 A state='d' (disappeared) indicates that the monitoring could be done
 (hypervisor is up), but the VM was not found in the list of VMs. In this
 case OpenNebula will set the VM to unknown.

 See:
 http://docs.opennebula.org/4.6/integration/infrastructure_integration/devel-vmm.html#poll-information

 Regards
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org
  | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org




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


[one-users] VMM 'unknown' state not being set?

2015-02-16 Thread Andy Coates
Running OpenNebula 4.6.2

We have a custom VMM driver that is set to report 'unknown' state if we
can't determine the current VM state on the host.  According to the docs
the '-' character indicates unknown, and as shown below ON is seeing and
parsing the VMM data correctly:

[VMM][D]: VM 1135 successfully monitored: USEDMEMORY=4194304 USEDCPU=800
NETTX=0 NETRX=0 *STATE=-* IP=10.0.0.174

Am I missing something?  Shouldn't the VM state be set to unkn/UNKNOWN in
this case?

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


[one-users] KVM default NAT networking and port forwarding

2013-11-02 Thread Andy Coates
Hey,

I have a very basic setup that requires no ON configured networking, just
the default NAT that KVM provides out of the box.

I'm not sure how to properly define an interface to achieve this.  I've
got it working via the RAW section by adding:

interface type='network'source network='default'/ model
type='virtio'//interface

This works and it provides the default NAT interface, but is that how it
should be done?  I ask because the second issue I have is that I cannot
port forward from the host.  According to the KVM docs, using these
parameters (added via qemu:commandline option) should forward TCP port 3389:

-net user,hostfwd=tcp::3389-:3389

It doesn't work though, and I have a feeling this is because of how I
defined the network/interface above.  The host does start to listen on port
3389 when KVM starts, I can see that through netstat/lsof - it just doesn't
seem to connect through to the VM.

Any ideas?

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