Cant change hostname

hello, I tried to change the hostname from the GUI, shown in the picture below. but it doesn’t change, even after restarting the host (virtual machine in NUC). Am i doing it right? is there any other way?
image