On 07/06/2011 10:56 AM, josh.mul...@cox.com wrote:
Just to be able to look in the "Virtual Systems" in spacewalk and see vmware
vm's.
To my knowledge - that page (rhn/systems/VirtualSystemsList.do) only
shows KVM/Xen guests. We have not extended this page to list the newer
virtualization systems which we capture/understand to allow for Flex
entitlement consumption.
You will see them listed under Overview -> Subscription Management ->
Virtualization Entitlements
(rhn/systems/entitlements/GuestLimitedHosts.do) tabs. This shows all
virtual systems and indicates what type of entitlements they are current
consuming.
Is that what this code does?
No, since it does not flag VMware guests with the correct information
needed to show on the page your interested in.
Cliff
-----Original Message-----
From: Cliff Perry [mailto:cpe...@redhat.com]
Sent: Tuesday, July 05, 2011 10:34 PM
To: spacewalk-devel@redhat.com
Cc: Mullis, Josh (CCI-Atlanta)
Subject: Re: [Spacewalk-devel] Detecting VMWARE systems as virtual
On 07/05/2011 11:49 AM, josh.mul...@cox.com wrote:
Devs,
What file/function handles flagging a system as virtual?
We want to look into flagging VMWARE systems as a virtual system.
This has been asked several times on the user list.
One person found that adding the SYSTEM_ID to the RHNVIRTUALINSTANCE
table did the trick, but I was wanting a more elegant solution.
Thanks for any help.
-Josh
_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel
To consume Flex entitlements - this is done here:
http://git.fedorahosted.org/git/?p=spacewalk.git;a=blob;f=backend/server/handlers/xmlrpc/registration.py
Line 45 - def parse_smbios(smbios) routine..
73 elif serial.startswith('VMware-'):
74 if uuid is None:
75 uuid = "flex-guest"
76 return (rhnVirtualization.VirtualizationType.VMWARE, uuid)
In short - we already have code to detect from hardware (smbios) data
sent from client to server for us to flag VMware systems as virtual
systems and allow them to consume out of a Flex entitlement pool. Of
course for Spacewalk entitlements do not matter too much. Why / what are
you trying to achieve here?
Cliff
_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel