Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to find whether Solaris installed on physical machine or on a VMware/KVM? Post 303043761 by Chubler_XL on Wednesday 5th of February 2020 05:47:03 PM
Old 02-05-2020
You could look for VM[wW]are in the output from /usr/X11/bin/scanpci as it should output something like [VMware SVGA II] PCI Display Adapter on a VMWare client.

Try:
Code:
if /usr/X11/bin/scanpci | grep -q "VM[wW]are"
then
     echo "System is running on VMWare"
else
     echo "Not VMWare"
fi

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Find JRE installed in linux machine..?

Hi all, Im new to linux... Im in need to write a shell script to check wthr JRE in linux machine... Wtz de best way to find thru BASH?? Plz help me out to solve this issue... Thanks (3 Replies)
Discussion started by: XivaX
3 Replies

2. IP Networking

To find switch port of machine running under VMware

I would like to find a switch port( of a VLAN of CISCO switch) of a machine which is acutally running under VMware. Now I only know about IP & MAC address of a machine which running under VMware and I do not know about the real machine where VMware is installed. Is there any possibility? (2 Replies)
Discussion started by: Tlogine
2 Replies

3. HP-UX

How to find the number of physical processors and architecture in a hp-ux machine

Hi, I have two questions here. I need to find out the number of physical processors the HP-UX operating system is running in. Here i am referring to the physical processors in a system and not the number of cores. I can get the number of cores using the command 'ioscan -fnkC processor'.... (7 Replies)
Discussion started by: shawshank
7 Replies

4. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

5. Solaris

Having solaris installed over VM ware machine in windows

I have installed solaris 10 over VM ware in windows machine. now i want to share the files from windows to solaris. how can i do so.. and pls tell if through putty i can access the solaris from windows machine without logging onto VMware. (4 Replies)
Discussion started by: jain_sharad143
4 Replies

6. Virtualization and Cloud Computing

solaris virtual machine vmware esx

Hi All How would you send a solaris virtual machine in vmware esx, a break signal? :confused: (0 Replies)
Discussion started by: jakerock
0 Replies

7. Solaris

Solaris 10 installed in vmware

I had no idea where I should post before i posting this . I have googled many many articles about how I share my host win 7 file into my vmware 9 solaris 10 system but what the solutions I found are all not work for me. for example VMware Communities: file sharing - Windows XP guest -...... (3 Replies)
Discussion started by: SSUUser
3 Replies

8. Solaris

How to count number of physical and virtual processors on Solaris machine.?

hi, I am using command psrinfo -p to check the number of physical processors present on any soalris machine.I want to check the number of virtual processors assigned for particular solaris machine. which command/set of command need to be used which can grep or show the total virtual processors... (8 Replies)
Discussion started by: omkar.jadhav
8 Replies

9. Solaris

Solaris installed Physical Processor ..how to check?

I would like to know how to identify the installed "Physical Processor" .here is the output #psrinfo -pv of from 2 systems : - System 1 The physical processor has 8 virtual processors (0-7) SPARC-T4 (chipid 0, clock 2848 MHz) -System 2 The physical processor has 8 virtual... (3 Replies)
Discussion started by: ahmedamer12
3 Replies

10. UNIX for Beginners Questions & Answers

How to check everything are migrated after the physical to vmware virtual machine?

I have a physical machine , just use vmware tools migrated data to virtual machine . how can I check these two servers - old and new server , the data are the same , all files are copy to new server ? thanks (2 Replies)
Discussion started by: ust3
2 Replies
REALPATH(1)							      Debian							       REALPATH(1)

NAME
realpath - return the canonicalised absolute pathname SYNOPSIS
realpath [-s|--strip] [-z|--zero] filename ... realpath --h|--help realpath --v|--version DESCRIPTION
realpath converts each filename argument to an absolute pathname, which has no components that are symbolic links or the special . or .. directory entries. (See realpath(3) for more information.) Each path component in the filename must exist, otherwise realpath will fail and non-zero exit status will be returned. Please note that mostly the same functionality is provided by the `-e' option of the readlink(1) command. When the -s option is used realpath only removes the . and .. directories, but not symbolic links from filename. If the given filename argument is relative (i.e. does not start with `/'), realpath -s prepends to it the current directory name as obtained from the getcwd(2) system call before further processing. Each converted pathname is output to the standard output, on its own line. OPTIONS
-s, --strip Only strip . and .., components, but do not resolve symbolic links. -z, --zero Separate output filenames with the null character instead of newline, so it can be used with the `-0' option of xargs(1). -h, --help Print short usage information. -v, --version Show realpath's version number. EXAMPLES
For the examples below let's suppose that /usr/bin/X11 is a symbolic link, pointing to directory /usr/bin. Example 1 Regardless of what the current directory is realpath /../usr/bin/X11/./xterm prints /usr/bin/xterm but realpath -s /../usr/bin/X11/./xterm outputs /usr/bin/X11/xterm Example 2 When the current directory is /usr/bin/X11 (which is still a symbolic link to /usr/bin), the output of both realpath ./xterm and realpath -s ./xterm will be /usr/bin/xterm Example 3 Providing that the current directory is /home/user (and the directory exists before and during the realpath run), the command realpath ../path/to/some/./non-existent/./directory/../or/../file will fail with the following error ../path/to/some/./non-existent/./directory/../or/../file: No such file or directory but realpath -s ../path/to/some/./non-existent/./directory/../or/../file will return /home/path/to/some/non-existent/file EXIT STATUS
realpath returns a zero exit code when all pathnames were successfully converted. In case of any errors (e.g. missing or unavailable directories in the path), realpath prints error message to stderr and returns a non-zero exit code. SEE ALSO
basename(1), dirname(1), readlink(1), chase(1), realpath(3) BUGS
Hopefully none :) If you find some, please report them via the normal Debian bug reporting system, see the file /usr/share/doc/debian/bug-reporting.txt in the package doc-debian or the reportbug(1) man page. AUTHOR
Originally written by Lars Wirzenius <liw@iki.fi>, as a part of the dwww package. Robert Luberda <robert@debian.org> currently maintains and extends it. realpath is licensed via the GNU General Public License. While it has been written for Debian, porting it to other systems is strongly encouraged. Debian October 16th, 2011 REALPATH(1)
All times are GMT -4. The time now is 01:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy