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

Reply via email to