Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-23-2017, 02:55 PM
|
#1
|
LQ Newbie
Registered: May 2017
Posts: 1
Rep: 
|
Physical hostname?
I am running a Red Hat rel 7 Linux VM. How can I find the hostname of the physical host?
|
|
|
05-23-2017, 03:19 PM
|
#2
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Last edited by BW-userx; 05-23-2017 at 03:20 PM.
|
|
|
05-23-2017, 03:50 PM
|
#3
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
Quote:
Originally Posted by jera45
I am running a Red Hat rel 7 Linux VM. How can I find the hostname of the physical host?
|
You can answer that yourself by stating how they are networked and why you want to do this.
|
|
|
05-23-2017, 04:39 PM
|
#4
|
Moderator
Registered: Mar 2008
Posts: 22,280
|
Hello and welcome to LQ.
I may not fully understand your question. Your question suggests more than a simple computer with a single OS on it.
However if it is such a simple question then the usual way is to do as above and use the command hostname in a terminal or shell.
|
|
|
05-24-2017, 12:35 AM
|
#5
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
If I understand correctly, you want to find the host host name from inside a guest VM. The whole purpose of VMs is isolation, so I don't think it's possible. You could configure "bridged" networking. That gives the VM its own network connection, vs NAT, which translates a unique address but really uses the host connection.
|
|
1 members found this post helpful.
|
05-25-2017, 12:22 AM
|
#6
|
Senior Member
Registered: Apr 2010
Posts: 2,285
|
Quote:
Originally Posted by jera45
I am running a Red Hat rel 7 Linux VM. How can I find the hostname of the physical host?
|
just type hostname, on the physical host of course.
|
|
|
All times are GMT -5. The time now is 07:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|