# How to network RL when it runs as VM on a Synology NAS

**URL:** <https://forums.rockylinux.org/t/how-to-network-rl-when-it-runs-as-vm-on-a-synology-nas/15238>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-8\
**Created:** [July 27, 2024, 8:39am UTC](https://forums.rockylinux.org/t/how-to-network-rl-when-it-runs-as-vm-on-a-synology-nas/15238 "2024-07-27T08:39:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![halloleo](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@halloleo](https://forums.rockylinux.org/u/halloleo)\
**Post date:** [July 27, 2024, 8:39am UTC](https://forums.rockylinux.org/t/how-to-network-rl-when-it-runs-as-vm-on-a-synology-nas/15238/1 "2024-07-27T08:39:09Z")

</div>

I have a fresh install of Rocky Linux 8 “Server GUI” as a VM on a Synology NAS (using the [Synology Virtual Machine Manager](https://www.synology.com/en-global/dsm/feature/virtual_machine_manager)). It is running nicely – but I do not know how to “network” the Linux VM:

1. When I type `hostname` in Terminal I get `localhost.localdomain` back. How can I change that name - and how can that changed name then be seen from the host (the Synology NAS)?

2. Also when I type `curl https://httpbin.org` I get “Could not resolve host”, so the networking clearly is noyt setup correctly. How can I pass the network from the outside to the RL VM?

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [July 27, 2024, 10:08am UTC](https://forums.rockylinux.org/t/how-to-network-rl-when-it-runs-as-vm-on-a-synology-nas/15238/2 "2024-07-27T10:08:37Z")

</div>

The default network config does request configuration from DHCP server for the interface.  
If there is DHCP and DNS set up, the client (VM) would get all, including hostname.

* * *

There is `hostnamectl` to see/set name. However, the name that machine calls itself is not important. It is the other machines, where you use a name and need to get that resolved into IP address. DNS is the common way to handle the resolutions for whole networks.

So, the Synology should either have local config (e.g. `/etc/hosts`) to map a name to IP address of the VM, or get that mapping done by the DNS servers that it does use.

* * *

“Could not resolve host” in the VM? Like above, the VM has to first resolve the “[httpbin.org](http://httpbin.org)” into IP address. If it has DNS configured, then it either fails to connect to that DNS server, or that server does not know that name.

`nmcli` should show most of current network config.

* * *

It is up to the Synology, how/if it offers “virtual” network between the VM and everything else.

---

<div class="post-metadata">

**Author:** ![halloleo](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@halloleo](https://forums.rockylinux.org/u/halloleo)\
**Post date:** [July 27, 2024, 12:30pm UTC](https://forums.rockylinux.org/t/how-to-network-rl-when-it-runs-as-vm-on-a-synology-nas/15238/3 "2024-07-27T12:30:08Z")

</div>

Thank you @jlehtone

So I guess I need to ask the Synology community why the network is not available in the RL VM…

---

<div class="post-metadata">

**Author:** ![halloleo](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@halloleo](https://forums.rockylinux.org/u/halloleo)\
**Post date:** [July 28, 2024, 1:58am UTC](https://forums.rockylinux.org/t/how-to-network-rl-when-it-runs-as-vm-on-a-synology-nas/15238/4 "2024-07-28T01:58:48Z")

</div>

I created another install – and now I have network connection.

I must have done something wrong on the 1st install.

@jlehtone Thanks for you suggestions. They pointed me in the right direction.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [September 26, 2024, 1:59am UTC](https://forums.rockylinux.org/t/how-to-network-rl-when-it-runs-as-vm-on-a-synology-nas/15238/5 "2024-09-26T01:59:22Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
