Centos7.2系统安装_kvm系统环境准备

一、系统环境

软件版本:Centos7.2 1151

[root@template ~]# cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 
[root@template ~]# uname -r
3.10.0-327.el7.x86_64

二、硬件配置

cpu:  4/2

内存:4G

网络模式:NAT

硬盘:160G

3、注意事项

处理器:虚拟化intel VT-x (打勾)

 

三、安装Centos7.2系统

开机加载就按(tab键  输入:net.ifnames=0 biosdevname=0  回车)


 注意事项:(非所有电脑都有这问题)

遇到的问题:

屏幕分辨率太高,安装系统很慢。

解决方法:调低屏幕分辨率,就会变得很快。


 安装系统选择:最小化安装

安装位置--->自动分配--->选磁盘--->完成

kdump --->不启用

系统(原则:先配置,再点启用)

网络主机名:node.centos01.com

编辑:选择手动  网卡名称:eth0

ip:192.168.30.137

子网:255.255.255.0

默认路由:192.168.30.2

DNS:192.168.30.2

 

配置hosts文件:

/etc/hosts

192.168.30.138 node.centos01.com

 

复制到其它机器:

scp /etc/hosts/192.168.30.139:/etc/hosts

 

Centos7.x修改服务器主机名方法

1、查看主机名

 


[root@localhost ~]# hostnamectl Static hostname: localhost.localdomain Icon name: computer Chassis: n/a Machine ID: 80a4fa4970614cf6be9597ecd6f097a9 Boot ID: 28420e272e1847a583718262758bd0f7 Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-123.el7.x86_64 Architecture: x86_64
2.只查看静态、瞬态或灵活主机名,分别使用“--static”,“--transient”或“--pretty”选项。
[root@localhost ~]# hostnamectl --static
localhost.localdomain
[root@localhost ~]# hostnamectl --transient
localhost.localdomain
[root@localhost ~]# hostnamectl --pretty
3.要同时修改所有三个主机名:静态、瞬态和灵活主机名:
[root@localhost ~]# hostnamectl set-hostname Linuxidc

   4、临时生效

[root@Hunk_zhu ~]# hostname nulige

  

 

posted @ 2017-03-21 14:32  努力哥  阅读(873)  评论(0编辑  收藏  举报