[dywang@deyu ~]$ ssh root@192.168.122.8 root@k192.168.122.8's password: Last login: Mon Sep 19 10:51:26 2016 from deyu.wang [root@999999 ~]#
[root@999999 ~]# hostname 999999
[root@999999 ~]# hostnamectl set-hostname kvm8.deyu.wang
[root@999999 ~]# hostname kvm8.deyu.wang
[root@999999 ~]# hostnamectl status
Static hostname: kvm8.deyu.wang
Icon name: computer-vm
Chassis: vm
Machine ID: 25c85e60dd87ff6e80d795b6a828e0ec
Boot ID: 4682a4e4a5014ed7b14c92f870b8882d
Virtualization: kvm
Operating System:
://www.centos.org/CentOS Linux 8 KVM8rchitecture: x86_64
\end{myPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-80.el8.x86_64
Architecture: x86-64