How can I see the full hostname in a VM?

proxler

New Member
Mar 17, 2011
3
0
1
environment:
Proxmox --> OpenVZ with vmbr0

problem:
the hostname in a OpenVZ-container appears only as the subdomain

example:
setting in Proxmox-Webinterface: server.client.com
display in OpenVZ-VM: 14:22:26 root@server:/

target:
14:22:26 root@server.client.com:/

I have tried:
- stop the VM
- edit the /etc/hostname in the VM
--> buh, of course the host overwrites this

/etc/hosts looks ok:
# Auto-generated hostname. Please do not remove this comment.
123.123.123.123 server.client.com server

anybody a hint?

thank you,
regards pehajo
 
what do you get for

> cat /etc/hostname

what template do you use? and also post the output of 'pveversion -v'.
 
Dear Tom,

cat /etc/hostname
--> server

template:
http://download.proxmox.com/appliances/system/debian-5.0-standard_5.0-2_amd64.tar.gz
;-)

version:
pve-manager: 1.7-11 (pve-manager/1.7/5470)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.32: 1.7-30
pve-kernel-2.6.32-4-pve: 2.6.32-30
qemu-server: 1.1-28
pve-firmware: 1.0-10
libpve-storage-perl: 1.0-16
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-10
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.13.0-3
ksm-control-daemon: 1.0-4