Assigning a Hostname to a Local VM in Proxmox on VirtualBox

meryem

New Member
Jul 11, 2024
10
0
1
Hi, I’ve set up Proxmox on my VirtualBox, and now I’ve created a VM in the interface. However, I don’t know how to assign a hostname to this VM in order to access it locally, similar to how I would with an IP address like 192.168.100.200. Could someone please explain how to create a hostname for this VM?
 

Attachments

  • Capture d'écran 2024-10-04 152056.png
    Capture d'écran 2024-10-04 152056.png
    26.4 KB · Views: 7
  • Capture d'écran 2024-10-04 152131.png
    Capture d'écran 2024-10-04 152131.png
    104.6 KB · Views: 7
  • Capture d'écran 2024-10-04 152157.png
    Capture d'écran 2024-10-04 152157.png
    63.5 KB · Views: 7
  • Capture d'écran 2024-10-04 152224.png
    Capture d'écran 2024-10-04 152224.png
    81.1 KB · Views: 6
  • Capture d'écran 2024-10-04 152241.png
    Capture d'écran 2024-10-04 152241.png
    101.6 KB · Views: 7
The host name of a virtual machine has nothing to do with Proxmox directly. The hostname must be set directly in the virtual machine using the manufacturer's tool. In Ubuntu, for example, with hostnamectl.

It looks like your VM has the name “c117”. Which operating system have you installed as a guest?
It should also be mentioned that you can only access a VM over a hostname if it can be resolved via a DNS server. This is also possible via multicast (e.g. Avahi).
 
I don’t know how to assign a hostname to this VM in order to access it locally, similar to how I would with an IP address like 192.168.100.200.
This can be done two ways:
  • on your dns server
  • with bonjour/zeroconf/avahi and will result in a .local entry