Is it possible to have an access to /sys/class/dmi/id/product_uuid file on ?

AlexAfromBY Posted 18 Sep 2023 21:29

Hello,
I have a script which generates some type of an ID for on a linux virtual machine based on a content of /sys/class/dmi/id/product_uuid file. But I see that this file is inaccessible on virtual machines. Is it any method to have such file on virtual machine?  If not what is the recommended way to generate unique id based on hardware info on Sangfor HCI platform?

Thanks

CTI TF has solved this question and earned 20 coins.

Posting a reply earns you 2 coins. An accepted reply earns you 20 coins and another 10 coins for replying within 10 minutes. (Expired) What is Coin?

Enter your mobile phone number and company name for better service. Go

Hi. In this case, you may check on the following for the uuid.
1. Enable the "Enable UUID generator" under VM > Edit > Advanced.

2. Verify whether your HCI version is up to date as the old version of HCI might not support the said features.
If the HCI is in low version, may consider upgrading your HCI version and check on the uuid file.
Is this answer helpful?
CTI TF Lv2Posted 09 Oct 2023 14:57
  
Hi, as per checking the mentioned file is actually available in the HCI Linux VM. Could you provide the Linux distro along with the version?
Meanwhile, kindly make sure you are accessing this file with root permission.
AlexAfromBY Posted 09 Oct 2023 18:36
  
the Linux distro is ubuntu 20
Yes, of course I tried it with root permission.
I have attached two screenshots which show what I have tried to do.


Capture2.PNG (2.84 KB, Downloads: 184)

Capture2.PNG

Capture1.PNG (14.58 KB, Downloads: 181)

Capture1.PNG
CTI TF Lv2Posted 16 Oct 2023 10:23
  
Hi. In this case, you may check on the following for the uuid.
1. Enable the "Enable UUID generator" under VM > Edit > Advanced.

2. Verify whether your HCI version is up to date as the old version of HCI might not support the said features.
If the HCI is in low version, may consider upgrading your HCI version and check on the uuid file.

I Can Help:

Change

Moderator on This Board

2
20
0

Started Topics

Followers

Follow

Board Leaders