Unique Linux ID in virtualized environment


 
Thread Tools Search this Thread
Operating Systems Linux Unique Linux ID in virtualized environment
# 1  
Old 07-23-2014
Unique Linux ID in virtualized environment

Hi

I need to know what is the unique identifier for Linux OS even in a virtualized environment?

eg like Machine GUID for windows. I need to know something similar for linux, AIX, Solaris in virtualized environment.

Thanks
# 2  
Old 07-23-2014
Try...
Code:
dmidecode | grep -i uuid

or
Code:
lshal |grep -i system.hardware.uuid


On my system, red hat
Code:
[josephgr@oc0887178221 ~]$ dmidecode | grep -i uuid
UUID: CACAAB01-521D-11CB-BFE3-E99ACE12806A

[josephgr@oc0887178221 ~]$ lshal |grep -i system.hardware.uuid
system.hardware.uuid = '01ABCACA-1D52-CB11-BFE3-E99ACE12806A'  (string)

# 3  
Old 07-23-2014
since its based on hardware, so i think it won't be unique in virtualised environment. Could you please tell?
# 4  
Old 07-23-2014
The only truly "unique" ID, given emulated hardware, might be the server's public keys.
# 5  
Old 07-23-2014
Quote:
Originally Posted by Corona688
The only truly "unique" ID, given emulated hardware, might be the server's public keys.
Could you please details it a bit? How does server public key gurantee unique ID in virtualised environment?

Also, i am looking for a C language API. Kindly guide
# 6  
Old 07-23-2014
It doesn't. It's a unique ID that's usually generated on install, but it can be duplicated. (For that matter, so can the Windows GUID!)

I don't think you can guarantee a unique ID in a virtualized environment, unless you generate a fresh ID every boot.

Last edited by Corona688; 07-23-2014 at 02:42 PM..
# 7  
Old 08-20-2014
Thanks for this thread my problem just solved!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Unique ID on Solaris in visualized environment?

Hi I need to know what is the unique identifier for solaris OS even in a virtualized environment? Will "Using Universally Unique Identifiers" help? virtinfo -u Domain UUID: 9db53f14-f27c-69f9-a71c-8926e9ae6eed If Not, then let me know? Would appreciate if similar UNIQUE id (of... (3 Replies)
Discussion started by: skyineyes
3 Replies

2. HP-UX

Unique ID on HPUX in visualized environment?

Hi I need to know what is the unique identifier for HPUX OS even in a virtualized environment? Thanks (0 Replies)
Discussion started by: skyineyes
0 Replies

3. UNIX for Dummies Questions & Answers

setting a environment variable on linux

I want to set a enviroment variable VDC_DIR to a particular directory. I am doing it as export VDC_DIR=/abc it gets set but when i logout and do relogin than its not there. one way could be setting it in .profile file. but i have seen it on another box where it is not present in... (2 Replies)
Discussion started by: Jcpratap
2 Replies

4. Shell Programming and Scripting

select unique values from duplicates in linux

I have values in the variable as so the for loop just fetches one by one params=$'$HEW_SRC_DATABASE_LIB\nprmAttunityUser\nprmAttunityPwd\nprmODBCDataSource\nprmLoadInd\nprmSrc_Lib_ATM\nprmODBCDataSource_ATM' and i have a grep command like this ret=`grep \$y $pf` ... (0 Replies)
Discussion started by: vee_789
0 Replies

5. Shell Programming and Scripting

sed command working different in linux environment.

Hi I tried running the code scrname=`whence $0 | sed -e 's/\.\///g'` where $0 is substituted by cm_dsjobrun.sh in unix env then the value it returns me is SCRNAME=/data/ds/dpr_ebicm_uat/etl/cm3_0/scripts/shell/cm_dsjobrun.sh whereas i ran the same code on linux env The value... (9 Replies)
Discussion started by: vee_789
9 Replies

6. UNIX for Dummies Questions & Answers

Linux Dev environment for c/c++ on Fedora 10

Hello I have never used linux before and I am a bit confused as to what I am doing. I have been asked to port over some of our in house sdk to linux. Currently I am using .Net and c++. I have installed Fedora 10 on my computer and got that up and running nicely. I also installed eclipse for my... (1 Reply)
Discussion started by: morty346
1 Replies

7. UNIX for Advanced & Expert Users

Mail Receiving issue in linux Environment

we got one critical issue in job scheduling.we are migrating one application from solaris environment (Current PROD) to SUSE linux 9 environment (New or ported PROD).The application actually schedules the job by filtering the subject of the incoming mail (using PROCMAIL).Here incoming mail is... (0 Replies)
Discussion started by: prisaras
0 Replies

8. UNIX for Dummies Questions & Answers

how to set up linux environment variables?

Hi I'm using Linux, in the directory /root/my there is a.out. but when I try to run it , the shell indicate "bash:a.out: command not found" but I AM working in this directory. if I use "./a.out" , it works perfectly. can any body tell me how to do a permanent set up so that I can use... (5 Replies)
Discussion started by: dell9
5 Replies

9. UNIX for Dummies Questions & Answers

System environment Path in Linux

HI there people!! I'm really new with this great OS. I just installed a RedHat Linux 7.1 on my unit. Got it to work on dual boot with my Windows 2000. And I have some problem... how do i change/modify the system environment path? Thanks... and sorry for the ignorance ;) (5 Replies)
Discussion started by: spine_me
5 Replies
Login or Register to Ask a Question