OpenVZ Forum


Home » General » Support » Access to /sys/class/dmi/id/* from VE
Re: Access to /sys/class/dmi/id/* from VE [message #37455 is a reply to message #37445] Fri, 11 September 2009 19:43 Go to previous messageGo to previous message
ramjet is currently offline  ramjet
Messages: 16
Registered: September 2009
Junior Member
Thanks for your answer.

I just tested bindmount which worked except I was not allowed to create mountpount $VZDIR/root/148/sys/class/dmi so I created $VZDIR/root/148/tmp/dmi and could bindmount there.

Let me explain why I need this. I have created a simple software license key system which is bound to the serialnumber and UUID of a physical server. I read those values from the files found in /sys/class/dmi/id/. So using bindmount I could try to read dmi values from /sys/class/dmi and if that doesn't succeed I could try to look at some other mountpount as a fallback.

It would be really awesome if OpenVZ could support fake dmi values per container like VMware and Paralllels do:

VMware
system-product-name=VMware Virtual Platform

Parallels
system-product-name=Parallels Virtual Platform

Do you have any idea of how difficult that would be?

The following information should be available:
bios_date
bios_vendor
bios_version
board_asset_tag
board_name
board_serial
board_vendor
board_version
chassis_asset_tag
chassis_serial
chassis_type
chassis_vendor
chassis_version
product_name
product_serial
product_uuid
product_version
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: chkpnt: Error: d_path is invisible /var/lock
Next Topic: I figured it out.
Goto Forum:
  


Current Time: Fri Nov 01 23:51:42 GMT 2024

Total time taken to generate the page: 0.03117 seconds