Hi all,
I've got a Proxmox4 running fine but any LXC VM I'm creating it doesn't keep the hostname I give and after every reboot it change.
For example, I setup during installation the hostname on a vm to be "vm1.mydomain.com"
When I reboot or shutdown the VM then if I run hostname I get just the name and not the full hostname so it is showing vm1 instead of vm1.mydomain.com and that gives me problem on a software I'm running.
Is this a bug and any workaround on it?
Thanks
Example output:
root@proxmox2 ~ # cat /etc/pve/lxc/101.conf
arch: amd64
cpulimit: 6
cpuunits: 1024
hostname: email1.mydomain.com
memory: 8192
nameserver: 208.67.222.222 8.8.8.8 8.8.4.4
net0: bridge=vmbr0,gw=192.168.1.10,hwaddr=32:63:32:30:38:36,ip=192.168.1.10/32,name=eth0,type=veth
ostype: debian
rootfs: local:101/vm-101-disk-1.raw,size=60G
searchdomain: google.de
swap: 8192
root@email1:~# hostname -f
email1
root@email1:~# cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.1.10 email1 email1.mydomain.com
I've got a Proxmox4 running fine but any LXC VM I'm creating it doesn't keep the hostname I give and after every reboot it change.
For example, I setup during installation the hostname on a vm to be "vm1.mydomain.com"
When I reboot or shutdown the VM then if I run hostname I get just the name and not the full hostname so it is showing vm1 instead of vm1.mydomain.com and that gives me problem on a software I'm running.
Is this a bug and any workaround on it?
Thanks
Example output:
root@proxmox2 ~ # cat /etc/pve/lxc/101.conf
arch: amd64
cpulimit: 6
cpuunits: 1024
hostname: email1.mydomain.com
memory: 8192
nameserver: 208.67.222.222 8.8.8.8 8.8.4.4
net0: bridge=vmbr0,gw=192.168.1.10,hwaddr=32:63:32:30:38:36,ip=192.168.1.10/32,name=eth0,type=veth
ostype: debian
rootfs: local:101/vm-101-disk-1.raw,size=60G
searchdomain: google.de
swap: 8192
root@email1:~# hostname -f
email1
root@email1:~# cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.1.10 email1 email1.mydomain.com
Last edited: