Hi there,
Sorry, if this is a repeated question. I tried searching about this topic but couldn't find anything solid yet. I want to get the VM name from CentOS 6.5 guest. Please let me know if this is even possible.
Thanks.
How to find VM name from CentOS 6.5 guest?
-
softlexicon
- Posts: 2
- Joined: 26. Jan 2014, 10:57
How to find VM name from CentOS 6.5 guest?
Last edited by softlexicon on 26. Jan 2014, 14:22, edited 1 time in total.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: How to find VM name from CentOS 6.5 guest?
The names of all registered VMs is listed in the GUI.
-
softlexicon
- Posts: 2
- Joined: 26. Jan 2014, 10:57
Re: How to find VM name from CentOS 6.5 guest?
Hi mpack,
Thank you for your response.
I know we can find the VM names from the GUI but I actually like to script the host name configuration on newly cloned VM. I have setup a template image with Guest Additions and other required packages for my environment. So now whenever I get a request to spin up a VM then I just clone the template. I have created a script (attached here) to configure the host name manually but if I can get the VM name from CentOS guest (maybe using VBoxControl or something) then I should be able to automate that too.
Thanks.
Thank you for your response.
I know we can find the VM names from the GUI but I actually like to script the host name configuration on newly cloned VM. I have setup a template image with Guest Additions and other required packages for my environment. So now whenever I get a request to spin up a VM then I just clone the template. I have created a script (attached here) to configure the host name manually but if I can get the VM name from CentOS guest (maybe using VBoxControl or something) then I should be able to automate that too.
Thanks.