真机

安装git,同步git里的资料

# yum -y install git

# git clone git://124.193.128.166/hello.git

# cd hello/

# git pull

# ls   查看上传到git里的资料

cmd.txt  grub  ifcfg-eth0  node.xml  openstack.txt  readme.txt  vbr.xml  大纲.txt

其中vbr.xml文件,是写的一个叫vbr的虚拟网络的模版

# cat vbr.xml

<network>                       这个配置项代表网络,每个选项都由<xxx>开头</xxx>结尾

<name>vbr</name>              虚拟网络的名字:vbr

<forward mode='nat'/>         模式:地址转换

<bridge name='vbr' stp='on' delay='0'/>        网桥名字:vbr

<ip address='192.168.1.254' netmask='255.255.255.0'>    虚拟网络vbr的IP是192.168.1.254

<dhcp>                                                采用dhcp模式,自动分配IP

<range start='192.168.1.100' end='192.168.1.200'/>  分配的IP范围是1.100到1.200

</dhcp>

</ip>

</network>

###################################################################

真机

要求:

创建一个名为vbr的虚拟网络

设置vbr的ip为192.168.3.254

配置vbr虚拟网络的dhcp分配地址范围100-200

启动vbr虚拟网络并用ifconfig验证

设置vbr虚拟网络开机自启动

复制老师写的vbr虚拟网络的模版,到存放虚拟网络的文件的默认目录/etc/libvirt/qemu/networks/

# cp /root/hello/vbr.xml /etc/libvirt/qemu/networks/

进入到存放虚拟网络的文件的默认目录

# cd /etc/libvirt/qemu/networks/

修改把老师写的模版里的虚拟网络vbr的IP改成192.168.3.254

# vim vbr.xml

<network>

<name>vbr</name>

<forward mode='nat'/>

<bridge name='vbr' stp='on' delay='0'/>

<ip address='192.168.3.254' netmask='255.255.255.0'>    虚拟网络vbr的IP改成192.168.3.254

<dhcp>

<range start='192.168.3.100' end='192.168.3.200'/>  分配的IP范围是3.100到3.200

</dhcp>

</ip>

</network>

# virsh net-define vbr.xml    定义vbr虚拟网络

# virsh net-start vbr         启动vbr虚拟网络

# virsh net-autostart vbr     设置vbr虚拟网络开机自启动

# ifconfig                    igconfig验证,能看到我们刚添加的虚拟网络vbr的相关信息,包括IP

显示如下:

... ...

vbr: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500

inet 192.168.3.254  netmask 255.255.255.0  broadcast 192.168.3.255

ether 52:54:00:dd:b5:68  txqueuelen 0  (Ethernet)

RX packets 0  bytes 0 (0.0 B)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 0  bytes 0 (0.0 B)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

# virsh net-list       显示所有已经开启的虚拟网络

显示如下:

名称               状态     自动开始  持久

----------------------------------------------------------

default              活动     是           是

private1             活动     是           是

private2             活动     是           是

public1              活动     是           是

public2              活动     是           是

rhce                 活动     是           是

vbr                  活动     否           是     这是我们刚新建的虚拟网络vbr

##########################################################

真机

如果想要彻底删除一个虚拟网络abc,要执行以下步骤:

关闭虚拟网络abc

# virsh net-destroy abc

显示如下:

网络 vbr 被删除

删除虚拟网络abc。

如果不打这命令,那么对应的/etc/libvirt/qemu/networks/abc.xml文件还在

# virsh net-undefine abc

显示如下:

网络 vbr 已经被取消定义

##########################################################

拓展

把文件/test/test1.txt里的1.254全部更改成3.254。

shell脚本中的点.有特殊意义,所以要加反斜杠\来取消特殊含义。sed的选项-i,代表直接修改源文件

# sed -i "s/1\.254/3\.254/g"  /test/test1.txt

##########################################################

真机

进入镜像文件的目录

# cd /var/lib/libvirt/images/

创建一个2G的新的镜像盘文件

qemu-img命令格式:qemu-img 命令 参数 块文件名称 大小

# qemu-img create -f qcow2 node.img 2G         qcow2为创建的格式

提示如下:

Formatting 'node.img', fmt=qcow2 size=2147483648 encryption=off cluster_size=65536 lazy_refcounts=off

看到已经生成了镜像文件

# ls /var/lib/libvirt/images/node.img

/var/lib/libvirt/images/node.img

可以看到它的信息

# ll /var/lib/libvirt/images/node.img

-rw-r--r-- 1 root root 197120 12月 20 13:13 /var/lib/libvirt/images/node.img

查看镜像文件的详细信息

# qemu-img info node.img

image: node.img

file format: qcow2

virtual size: 2.0G (2147483648 bytes)

disk size: 196K

cluster_size: 65536

Format specific information:

compat: 1.1

lazy refcounts: false

##########################################################

真机

点击桌面的“虚拟机管理器”----左上角“文件”---“新建虚拟机”---第2个选项“网络安装(I),可为HTTP、FTP或者NFS”---点击“前进”---在“URL”写上真机yum源的地址 ftp://192.168.3.254/CentOS7 ---点击“前进”---“内存”写2048MiB,“CPU”写2---点击“前进”---“选择或创建自定义存储”,选择刚才创建的镜像文件node.img。或者直接“本地浏览”,找到/var/lib/libvirt/images/node.img---点击“前进”---“名称”写“node”,“选择网络”写刚才创建的网络“虚拟网络'vbr':NAT”---点击“完成”

此时虚拟机会自动开机,选择语言“中文”---继续---点击“安装位置”---左下角选择“我要配置分区”---点击完成---在“新挂载点将使用以下分区方案”里,选择“标准分区”---然后点击“点这里自动创建他们”。如果下面有红色的报错说“自动分区失败”,则点击“+”,在挂载点那里选择“/” ,然后点击添加挂载点---再点击设备类型,选择“标准分区”---完成。如果有黄色的警告信息,说“检查存储配置时出现警告。”。不理它---再次点击完成。此时跳出更改摘要,说销毁格式之类的信息。不理它。---点击“接受更改”---此时跳回刚才安装的页面了,在“安装位置”那里显示“警告,正在检查存储配置”。不理它---点击“开始安装”---点击“ROOT密码”---“Root密码”写1,“确认”写1。如果有提示说密码太短。不理它。----点击2次完成---等待它安装完毕。---完毕后,点击“重启”。

此时已自动进入虚拟机开机后的界面,在localhost login:写“root”,Password密码写刚才设置的“1”

##########################################################

虚拟机

在这台新建的虚拟机上配置,让它成为虚拟机模版(后端盘)

此时,虚拟机默认的主机名是localhost

因为是默认的最小化安装,所以很多命令是没有的,需要自己搭yum,然后安装所需软件

禁用selinux

# vi /etc/selinux/config   因为最小化安装,没有vim这个程序。但系统自带有vi,也可以修改文件

SELINUX=disabled

因为最小化安装没有vim这个程序,所以无法使用vim这个命令。如果使用vim会报错

# vim /etc/yum.repos.d/centos.repo

报错如下:

-bash:vim:command not found

配置yum源,方便我们安装提供ifconfig命令的软件,方便后面真机远程

# cd /etc/yum.repos.d/

# ls 可以看到有很多yum源

# rm -rf *  删除所有的repo文件,免得错误的配置文件影响正确的配置文件

# vi centos.repo

[centos7]

name=centos7

baseurl=ftp://192.168.3.254/CentOS7

enabled=1

gpgcheck=0

# yum repolist

# yum provides ifconfig        查看提供ifconfig这个命令的程序名叫什么

显示如下:

已加载插件:fastestmirror

Loading mirror speeds from cached hostfile

net-tools-2.0-0.22.20131004git.el7.x86_64 : Basic networking tools    这个就是程序名

源    :@centos7

匹配来源:

文件名    :/usr/sbin/ifconfig

# yum -y install net-tools    安装提供ifconfig这个命令的程序

# ifconfig    查看到eth0的IP是192.168.1.113,方便我们远程登陆

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

inet 192.168.3.113  netmask 255.255.255.0  broadcast 192.168.3.255

inet6 fe80::5054:ff:fecd:3d0f  prefixlen 64  scopeid 0x20<link>

ether 52:54:00:cd:3d:0f  txqueuelen 1000  (Ethernet)

RX packets 140  bytes 11886 (11.6 KiB)

RX errors 0  dropped 8  overruns 0  frame 0

TX packets 44  bytes 4124 (4.0 KiB)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

inet 127.0.0.1  netmask 255.0.0.0

inet6 ::1  prefixlen 128  scopeid 0x10<host>

loop  txqueuelen 1  (Local Loopback)

RX packets 0  bytes 0 (0.0 B)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 0  bytes 0 (0.0 B)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

########################################################################

真机

# ssh 192.168.3.113       远程登陆192.168.3.113

The authenticity of host '192.168.3.113 (192.168.3.113)' can't be established.

ECDSA key fingerprint is SHA256:YzKJR51HYve9uDVbnRJse7r4y3tyFm1XRf069PgtY38.

ECDSA key fingerprint is MD5:e3:06:55:98:69:27:48:5d:ff:b1:10:e2:22:0e:ea:a4.

Are you sure you want to continue connecting (yes/no)? yes         写yes

Warning: Permanently added '192.168.3.113' (ECDSA) to the list of known hosts.

root@192.168.3.113's password:    写密码1

Last login: Thu Dec 20 16:42:54 2018

真机远程进入到虚拟机了,显示如下

[root@localhost ~]#

卸载防火墙与NetworkManager

# yum -y remove NetworkManager-* firewalld-* python-firewall

# yum -y install vim-enhanced bridge-utils psmisc   提供vim命令的程序就是vim-enhanced

# cat /etc/sysconfig/network-scripts/ifcfg-eth0

# Generated by dracut initrd

NAME="eth0"

HWADDR="52:54:00:22:a8:c8"

ONBOOT=yes

NETBOOT=yes

UUID="d050ac3e-396a-4145-9bdd-e07371ade0dc"

IPV6INIT=yes

BOOTPROTO=dhcp

TYPE=Ethernet

配置网卡

# vim /etc/sysconfig/network-scripts/ifcfg-eth0   把原来的内容改成下面这样

DEVICE="eth0"

ONBOOT="yes"

IPV6INIT="no"

TYPE="Ethernet"

BOOTPROTO="dhcp"

# systemctl restart network

# ifconfig  可以看到IP没变,还是原来的192.168.3.113

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

inet 192.168.3.113  netmask 255.255.255.0  broadcast 192.168.3.255

... ...

禁用空路由

# vim /etc/sysconfig/network

NOZEROCONF="yes"

# vim /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.3.10 openstack  追加这行,为后面实验做准备

192.168.3.11 nova01     追加这行,为后面实验做准备

vim /etc/chrony.conf

# Use public servers from the pool.ntp.org project.

# Please consider joining the pool (http://www.pool.ntp.org/join.html).

#server 0.centos.pool.ntp.org iburst  注销这行

#server 1.centos.pool.ntp.org iburst  注销这行

#server 2.centos.pool.ntp.org iburst  注销这行

#server 3.centos.pool.ntp.org iburst  注销这行

server 192.168.3.254 iburst   增加这行,为后面实验做准备

... ...

# systemctl restart chronyd

# chronyc sources -v       最后一行出现*号代表NTP时间可用。如果一开始是?有延迟等几秒再输入此命令就行

210 Number of sources = 1

.-- Source mode  '^' = server, '=' = peer, '#' = local clock.

/ .- Source state '*' = current synced, '+' = combined , '-' = not combined,

| /   '?' = unreachable, 'x' = time may be in error, '~' = time too variable.

||                                                 .- xxxx [ yyyy ] +/- zzzz

||      Reachability register (octal) -.           |  xxxx = adjusted offset,

||      Log2(Polling interval) --.      |          |  yyyy = measured offset,

||                                \     |          |  zzzz = estimated error.

||                                 |    |           \

MS Name/IP address         Stratum Poll Reach LastRx Last sample

===============================================================================

^* gateway                       3   6    17    19    +22us[ +248us] +/- 4279us  开头是*号

#######################################################################

真机

开启路由转发功能

# cat /proc/sys/net/ipv4/ip_forward    关闭的值是0,开启的值是1。

0

# sysctl -a | grep ip_forward       也可以这样查看它的值, sysctl -a是显示所有的内核参数

net.ipv4.ip_forward = 0

net.ipv4.ip_forward_use_pmtu = 0

如果仅仅是想临时改变某个系统参数的值,可以用2种方法来实现,例如想启用IP路由转发功能:

#echo 1 > /proc/sys/net/ipv4/ip_forward

#sysctl -w net.ipv4.ip_forward=1

以上2种方法都能立即开启路由功能,但如果系统重启,或执行了下面任意1个命令时,

# systemctl restart network

# service network restart

此时,所设置的值就会丢失。

如果想永久保留配置!!可以修改/etc/sysctl.conf文件!!!

将 net.ipv4.ip_forward=0改为net.ipv4.ip_forward=1

# cat /proc/sys/net/ipv4/ip_forward     现在的值为0,代表关闭

0

# vim /etc/sysctl.conf      追加下面这行

net.ipv4.ip_forward=1

# systemctl restart network

# cat /proc/sys/net/ipv4/ip_forward     现在的值为1,代表开启

1

#######################################################################

虚拟机

安装git,同步老师的git里的资料

# yum -y install git

# git clone git://124.193.128.166/hello.git

显示如下:

正克隆到 'hello'...

remote: Counting objects: 36, done.

remote: Compressing objects: 100% (31/31), done.

remote: Total 36 (delta 9), reused 0 (delta 0)

接收对象中: 100% (36/36), 5.04 KiB | 0 bytes/s, done.

处理 delta 中: 100% (9/9), done.

# cd hello/

# ls     里面有老师写的模版grub

cmd.txt  grub  ifcfg-eth0  node.xml  openstack.txt  readme.txt  vbr.xml  大纲.txt

# git pull     更新git的内容

显示如下:

Already up-to-date.     已经更新到最新了

######################################################################

虚拟机

添加console配置

把老师写的模版/root/hello/grub,覆盖式重定向到/etc/default/grub

# cat grub > /etc/default/grub

重新生成grub.cfg

# grub2-mkconfig   -o  /boot/grub2/grub.cfg

显示如下:

Generating grub configuration file ...

Found linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64

Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.img

Found linux image: /boot/vmlinuz-0-rescue-cea25497743849d4a398192bb354590e

Found initrd image: /boot/initramfs-0-rescue-cea25497743849d4a398192bb354590e.img

done

安装扩展分区软件

# yum  install  -y  cloud-utils-growpart

#######################################################################

虚拟机

待定,不知是否要执行

# lsblk

NAME   MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

vda    253:0    0   2G  0 disk

`-vda1 253:1    0   2G  0 part /     目前根分区/共2G

第一次开机自动扩容

# /usr/bin/growpart /dev/vda 1

如果扩容时报错,可能的原因:因为我们设置的系统语言是中文

# echo $LANG         查看系统定义的语言变量

zh_CN.UTF-8          这是提供中文的模块

解决方法:改成英文

# LANG=en_US.UTF-8   把语言模块改成英文

# echo $LANG         现在语言已经变成英文了

en_US.UTF-8

重新执行第一次开机自动扩容

# /usr/bin/growpart /dev/vda 1     扩容/dev/vda这个磁盘里的第1个分区,即扩容vda1

显示如下:

CHANGED: partition=1 start=2048 old: size=4186112 end=4188160 new: size=4192223,end=4194271

# /usr/sbin/xfs_growfs   /

显示如下:

meta-data=/dev/vda1              isize=512    agcount=4, agsize=130816 blks

=                       sectsz=512   attr=2, projid32bit=1

=                       crc=1        finobt=0 spinodes=0

data     =                       bsize=4096   blocks=523264, imaxpct=25

=                       sunit=0      swidth=0 blks

naming   =version 2              bsize=4096   ascii-ci=0 ftype=1

log      =internal               bsize=4096   blocks=2560, version=2

=                       sectsz=512   sunit=0 blks, lazy-count=1

realtime =none                   extsz=4096   blocks=0, rtextents=0

data blocks changed from 523264 to 524027

到此扩容结束

扩容好后,再改回来,方便我们日后使用

# LANG=zh_CN.UTF-8

# echo $LANG

zh_CN.UTF-8

#######################################################################

真机

配置需要的所有yum源,共10731个包。步骤如下:

在/var/ftp/创建对应目录

# mkdir CentOS7 HEL7OSP extras

写入开机自动挂载配置文件(要写相应路径)

# vim  /etc/fstab

... ...

/root/桌面/CentOS7-1708.iso /var/ftp/CentOS7 iso9660 defaults 0 0

/root/桌面/ftp/HELLO/CLOUD/cloud2/RHEL7OSP-10.iso /var/ftp/HEL7OSP/  iso9660 defaults 0 0

/root/桌面/ftp/HELLO/CLOUD/cloud2/RHEL7-extras.iso /var/ftp/extras/  iso9660 defaults 0 0

挂载相应的光盘

# mount -a

###########################################################

真机

写指定yum源的repo文件

# vim /etc/yum.repos.d/centos7.repo

内容如下:

[centos]

name=centos7

baseurl=ftp://192.168.3.254/CentOS7

enabled=1

gpgcheck=0

[extras]

name=extras

baseurl=ftp://192.168.3.254/extras

enabled=1

gpgcheck=0

[1local_devtools-rpms]

name=devtools-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-openstack-10-devtools-rpms"

enabled=1

gpgcheck=0

[2local_optools-rpms]

name=optools-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-openstack-10-optools-rpms"

enabled=1

gpgcheck=0

[3local_rpms]

name=rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-openstack-10-rpms"

enabled=1

gpgcheck=0

[4local_tools-rpms]

name=tools-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-openstack-10-tools-rpms"

enabled=1

gpgcheck=0

[5local_mon-rpms]

name=mon-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-rhceph-2-mon-rpms"

enabled=1

gpgcheck=0

[6local_osd-rpms]

name=osd-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-rhceph-2-osd-rpms"

enabled=1

gpgcheck=0

[7local_rhceph-2-tools-rpms]

name=rhceph-2-tools-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-rhceph-2-tools-rpms"

enabled=1

gpgcheck=0

[8local_agent-rpms]

name=agent-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-rhscon-2-agent-rpms"

enabled=1

gpgcheck=0

[9local_installer-rpms]

name=installer-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-rhscon-2-installer-rpms"

enabled=1

gpgcheck=0

[10local_rhscon-2-main-rpms]

name=rhscon-2-main-rpms

baseurl="ftp://192.168.3.254/HEL7OSP/rhel-7-server-rhscon-2-main-rpms"

enabled=1

gpgcheck=0

#########################################################

真机

查看是否有了所有包

# yum repolist

... ...

repolist: 10,731      一共10731个包

#######################################################################

虚拟机

同步真机存放的yum配置文件的整个目录到本地。

它会删除虚拟机的原有的yum配置文件,然后同步整个真机的yun配置文件。

# rsync -av 192.168.3.254:/etc/yum.repos.d/ /etc/yum.repos.d/   同步整个目录

显示如下

The authenticity of host '192.168.3.254 (192.168.3.254)' can't be established.

ECDSA key fingerprint is SHA256:r/GB/z8zTBvpGbQdN15gLqkXBR9BR3Zxgzc/fWD83Fg.

ECDSA key fingerprint is MD5:dc:95:db:de:7e:c3:7d:34:ff:41:d4:e5:bb:97:5f:e9.

Are you sure you want to continue connecting (yes/no)? yes  写yes

Warning: Permanently added '192.168.3.254' (ECDSA) to the list of known hosts.

root@192.168.3.254's password:       如果输入错误密码,会报错,需要你再重新输入一遍

Permission denied, please try again.

root@192.168.3.254's password:       输入真机密码Taren1

receiving incremental file list

./

centos7.repo

sent 33 bytes  received 1602 bytes  142.17 bytes/sec

total size is 1504  speedup is 0.92

到此同步结束

清空yum缓存

# yum clean all

提示如下:

Failed to set locale, defaulting to C

Loaded plugins: fastestmirror

Repository centos is listed more than once in the configuration

Cleaning repos: 10local_rhscon-2-main-rpms 1local_devtools-rpms 2local_optools-rpms

: 3local_rpms 4local_tools-rpms 5local_mon-rpms 6local_osd-rpms

: 7local_rhceph-2-tools-rpms 8local_agent-rpms 9local_installer-rpms centos

: extras

Cleaning up everything

Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos

Cleaning up list of fastest mirrors

列出所有的yum仓库

# yum repolist

显示如下:

... ...

repolist: 10731   一共10731个包,同步成功

关闭虚拟机

# poweroff

#######################################################################

真机

关闭虚拟机后,在真机上执行信息清理工作

# virt-sysprep -d node    这里的node是虚拟机名称

显示如下:

[   0.0] Examining the guest ...

[   5.2] Performing "abrt-data" ...

[   5.2] Performing "backup-files" ...

[   5.6] Performing "bash-history" ...

[   5.6] Performing "blkid-tab" ...

[   5.6] Performing "crash-data" ...

[   5.6] Performing "cron-spool" ...

[   5.7] Performing "dhcp-client-state" ...

[   5.7] Performing "dhcp-server-state" ...

[   5.7] Performing "dovecot-data" ...

[   5.7] Performing "logfiles" ...

[   5.7] Performing "machine-id" ...

[   5.7] Performing "mail-spool" ...

[   5.7] Performing "net-hostname" ...

[   5.7] Performing "net-hwaddr" ...

[   5.8] Performing "pacct-log" ...

[   5.8] Performing "package-manager-cache" ...

[   5.8] Performing "pam-data" ...

[   5.8] Performing "passwd-backups" ...

[   5.8] Performing "puppet-data-log" ...

[   5.8] Performing "rh-subscription-manager" ...

[   5.8] Performing "rhn-systemid" ...

[   5.8] Performing "rpm-db" ...

[   5.8] Performing "samba-db-log" ...

[   5.8] Performing "script" ...

[   5.8] Performing "smolt-uuid" ...

[   5.8] Performing "ssh-hostkeys" ...

[   5.8] Performing "ssh-userdir" ...

[   5.8] Performing "sssd-db-log" ...

[   5.8] Performing "tmp-files" ...

[   5.8] Performing "udev-persistent-net" ...

[   5.8] Performing "utmp" ...

[   5.8] Performing "yum-uuid" ...

[   5.8] Performing "customize" ...

[   5.8] Setting a random seed

[   6.4] Performing "lvm-uuids" ...

到此,我们已经创建好了 后端盘/var/lib/libvirt/images/node.img

特别注意:后端盘是只读的,不能改动!!!

只能改前端盘!!!

点击桌面的“虚拟系统管理器”---点击了node虚拟机---右键删除,但是不要选择“删除关联的存储文件”。

之所以删去,是因为以后我们不用开启node虚拟机了。

我们只使用node虚拟机的镜像文件,以后用来创建前端盘。

#######################################################################

真机

-f格式是qcow2,-b是用后端盘镜像文件node.img,创建前端盘镜像文件openstack.img,大小50G

# qemu-img create -f qcow2 -b node.img openstack.img 50G

显示如下:

Formatting 'openstack.img', fmt=qcow2 size=53687091200 backing_file='node.img' encryption=off cluster_size=65536 lazy_refcounts=off

可以查看前端盘镜像文件openstack.img的具体信息

# qemu-img info openstack.img

显示如下:

image: openstack.img

file format: qcow2

virtual size: 50G (53687091200 bytes)

disk size: 196K

cluster_size: 65536

backing file: node.img

Format specific information:

compat: 1.1

lazy refcounts: false

复制老师分享到git的文件node.xml,改成前端盘文件openstack.xml

# cp /root/hello/node.xml /etc/libvirt/qemu/openstack.xml

# vim openstack.xml

<domain type='kvm'>

<name>openstack</name>          改这行,虚拟机名为openstack

<memory unit='GB'>9</memory>    改这行,内存9G

<currentMemory unit='GB'>9</currentMemory>        改这行,目前内存9G

<vcpu placement='static'>4</vcpu>                 改这行,共4个CPU

<os>

<type arch='x86_64' machine='pc'>hvm</type>

<boot dev='hd'/>

<bootmenu enable='yes'/>

<bios useserial='yes'/>

</os>

<features>

<acpi/>

<apic/>

</features>

<cpu mode='host-passthrough'></cpu>

<clock offset='localtime'/>

<on_poweroff>destroy</on_poweroff>

<on_reboot>restart</on_reboot>

<on_crash>restart</on_crash>

<devices>

<emulator>/usr/libexec/qemu-kvm</emulator>

<disk type='file' device='disk'>

<driver name='qemu' type='qcow2'/>

<source file='/var/lib/libvirt/images/openstack.img'/>

<target dev='vda' bus='virtio'/>

</disk>

<interface type='bridge'>             4yy复制这4行,这是定义网卡

<source bridge='vbr'/>

<model type='virtio'/>

</interface>                          在这行p粘贴

<interface type='bridge'>             新增了这行,这是定义了第2块网卡

<source bridge='private1'/>         新增了这行,并改这行使用的虚拟网络为private1

<model type='virtio'/>              新增了这行

</interface>                          新增了这行

<channel type='unix'>

<target type='virtio' name='org.qemu.guest_agent.0'/>

</channel>

<serial type='pty'></serial>

<console type='pty'>

<target type='serial'/>

</console>

<memballoon model='virtio'></memballoon>

</devices>

</domain>

#######################################################################

真机

# cd /etc/libvirt/qemu/

# ls  可以看到有这个文件了openstack.xml

# virsh define openstack.xml

显示如下:

定义域 openstack(从 openstack.xml)

# virsh start openstack

显示如下:

域 openstack 已开始

# virsh console openstack

显示如下:

连接到域 openstack

换码符为 ^]

[  OK  ] Started Setup Virtual Console.

Starting Show Plymouth Boot Screen...

[  OK  ] Reached target System Initialization.

[  OK  ] Started Show Plymouth Boot Screen.

... ...

[  OK  ] Started Login Service.

[  OK  ] Started System Logging Service.

CentOS Linux 7 (Core)

Kernel 3.10.0-693.el7.x86_64 on an x86_64

当进到输入用户名时,如果拖了很长时间才输入,它会提示如下信息,并让你重新输入用户名和密码:

localhost login: [  101.937923] random: crng init done

CentOS Linux 7 (Core)

Kernel 3.10.0-693.el7.x86_64 on an x86_64

localhost login: root           输入用户名root

密码:                                   输入密码1

Last login: Thu Dec 20 21:15:23 on ttyS0

[root@localhost ~]#             成功进入虚拟机

[root@localhost ~]# poweroff    关闭虚拟机

#######################################################################

真机

#  virsh start openstack

域 openstack 已开始

# virsh console openstack

显示如下:

连接到域 openstack

换码符为 ^]                当我们第2次启动它时,它会停在这里,需要我们回车就会进入登陆页面了

CentOS Linux 7 (Core)

Kernel 3.10.0-693.el7.x86_64 on an x86_64

localhost login: root      这里输入用户名root

密码:                            这里输入密码1

Last login: Fri Dec 21 04:59:27 on ttyS0

[root@localhost ~]#        成功登陆

##########################################################################

其实之前在后端镜像里可以写跟192.168.3.254时间同步的

##########################################################################

参考:

# virsh console openstack

显示如下:

连接到域 openstack

换码符为 ^]

[  OK  ] Started Setup Virtual Console.

Starting Show Plymouth Boot Screen...

[  OK  ] Reached target System Initialization.

[  OK  ] Started Show Plymouth Boot Screen.

[  OK  ] Reached target Paths.

[  OK  ] Reached target Basic System.

[  OK  ] Started dracut initqueue hook.

Mounting /sysroot...

[  OK  ] Reached target Remote File Systems (Pre).

[  OK  ] Reached target Remote File Systems.

[    6.158749] SGI XFS with ACLs, security attributes, no debug enabled

[    6.163188] XFS (vda1): Mounting V5 Filesystem

[    6.176078] XFS (vda1): Ending clean mount

[  OK  ] Mounted /sysroot.

[  OK  ] Reached target Initrd Root File System.

Starting Reload Configuration from the Real Root...

[  OK  ] Started Reload Configuration from the Real Root.

[  OK  ] Reached target Initrd File Systems.

[  OK  ] Reached target Initrd Default Target.

Starting dracut pre-pivot and cleanup hook...

[  OK  ] Started dracut pre-pivot and cleanup hook.

Starting Cleaning Up and Shutting Down Daemons...

Starting Plymouth switch root service...

[  OK  ] Stopped target Timers.

[  OK  ] Stopped Cleaning Up and Shutting Down Daemons.

[  OK  ] Stopped dracut pre-pivot and cleanup hook.

Stopping dracut pre-pivot and cleanup hook...

[  OK  ] Stopped target Remote File Systems.

[  OK  ] Stopped target Remote File Systems (Pre).

[  OK  ] Stopped dracut initqueue hook.

Stopping dracut initqueue hook...

[  OK  ] Stopped target Initrd Default Target.

[  OK  ] Stopped target Basic System.

[  OK  ] Stopped target System Initialization.

[  OK  ] Stopped target Swap.

[  OK  ] Stopped Apply Kernel Variables.

Stopping Apply Kernel Variables...

[  OK  ] Stopped udev Coldplug all Devices.

Stopping udev Coldplug all Devices...

Stopping udev Kernel Device Manager...

[  OK  ] Stopped target Local File Systems.

[  OK  ] Stopped target Slices.

[  OK  ] Stopped target Sockets.

[  OK  ] Stopped target Paths.

[  OK  ] Started Plymouth switch root service.

[  OK  ] Stopped udev Kernel Device Manager.

[  OK  ] Stopped dracut pre-udev hook.

Stopping dracut pre-udev hook...

[  OK  ] Stopped dracut cmdline hook.

Stopping dracut cmdline hook...

[  OK  ] Stopped Create Static Device Nodes in /dev.

Stopping Create Static Device Nodes in /dev...

[  OK  ] Stopped Create list of required sta...ce nodes for the current kernel.

Stopping Create list of required st... nodes for the current kernel...

[  OK  ] Closed udev Kernel Socket.

[  OK  ] Closed udev Control Socket.

Starting Cleanup udevd DB...

[  OK  ] Started Cleanup udevd DB.

[  OK  ] Reached target Switch Root.

Starting Switch Root...

[    6.474645] systemd-journald[102]: Received SIGTERM from PID 1 (n/a).

[    6.521221] SELinux:  Disabled at runtime.

[    6.578041] type=1404 audit(1545340800.438:2): selinux=0 auid=4294967295 ses=4294967295

[    6.595959] ip_tables: (C) 2000-2006 Netfilter Core Team

[    6.597078] systemd[1]: Inserted module 'ip_tables'

Welcome to CentOS Linux 7 (Core)!

[  OK  ] Stopped Switch Root.

[  OK  ] Stopped Journal Service.

Starting Journal Service...

[  OK  ] Stopped File System Check on Root Device.

Stopping File System Check on Root Device...

[  OK  ] Reached target Swap.

Starting Remount Root and Kernel File Systems...

[  OK  ] Listening on udev Control Socket.

[  OK  ] Reached target Remote File Systems.

Mounting Debug File System...

[  OK  ] Created slice system-serial\x2dgetty.slice.

Starting Create list of required st... nodes for the current kernel...

[  OK  ] Reached target Encrypted Volumes.

[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.

Mounting Huge Pages File System...

[  OK  ] Created slice User and Session Slice.

[  OK  ] Reached target Slices.

[  OK  ] Stopped target Switch Root.

[  OK  ] Stopped target Initrd Root File System.

[  OK  ] Stopped target Initrd File Systems.

Mounting POSIX Message Queue File System...

Starting Apply Kernel Variables...

[  OK  ] Listening on Delayed Shutdown Socket.

[  OK  ] Created slice system-selinux\x2dpol...grate\x2dlocal\x2dchanges.slice.

[  OK  ] Listening on udev Kernel Socket.

[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.

[  OK  ] Created slice system-getty.slice.

[  OK  ] Started Journal Service.

[  OK  ] Started Create list of required sta...ce nodes for the current kernel.

Starting Create Static Device Nodes in /dev...

[  OK  ] Mounted Debug File System.

[  OK  ] Mounted POSIX Message Queue File System.

[  OK  ] Mounted Huge Pages File System.

[  OK  ] Started Remount Root and Kernel File Systems.

Starting Configure read-only root support...

Starting Load/Save Random Seed...

Starting udev Coldplug all Devices...

Starting Flush Journal to Persistent Storage...

[  OK  ] Started Apply Kernel Variables.

[  OK  ] Started Load/Save Random Seed.

[  OK  ] Started Create Static Device Nodes in /dev.

Starting udev Kernel Device Manager...

[  OK  ] Reached target Local File Systems (Pre).

[    6.761331] systemd-journald[351]: Received request to flush runtime journal from PID 1

[  OK  ] Started Flush Journal to Persistent Storage.

[  OK  ] Started udev Coldplug all Devices.

[  OK  ] Started Configure read-only root support.

[  OK  ] Reached target Local File Systems.

Starting Tell Plymouth To Write Out Runtime Data...

Starting Import network configuration from initramfs...

[  OK  ] Started udev Kernel Device Manager.

[  OK  ] Started Tell Plymouth To Write Out Runtime Data.

[    6.828321] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0x700, revision 0

[    6.843737] input: PC Speaker as /devices/platform/pcspkr/input/input4

[  OK  ] Started Import network configuration from initramfs.

Starting Create Volatile Files and Directories...

[  OK  ] Found device /dev/ttyS0.

[  OK  ] Started Create Volatile Files and Directories.

Starting Security Auditing Service...

[    6.919257] ppdev: user-space parallel port driver

[    6.926879] type=1305 audit(1545340800.785:3): audit_pid=423 old=0 auid=4294967295 ses=4294967295 res=1

[    6.958755] AES CTR mode by8 optimization enabled

[    6.962988] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)

[    6.970871] alg: No test for crc32 (crc32-pclmul)

[  OK  ] Started Security Auditing Service.

Starting Update UTMP about System Boot/Shutdown...

[  OK  ] Started Update UTMP about System Boot/Shutdown.

[  OK  ] Reached target System Initialization.

[  OK  ] Reached target Timers.

[  OK  ] Listening on D-Bus System Message Bus Socket.

[  OK  ] Reached target Sockets.

[  OK  ] Reached target Paths.

[  OK  ] Reached target Basic System.

Starting Login Service...

[  OK  ] Started D-Bus System Message Bus.

Starting D-Bus System Message Bus...

Starting Authorization Manager...

Starting System Logging Service...

[  OK  ] Started QEMU Guest Agent.

Starting QEMU Guest Agent...

Starting Dump dmesg to /var/log/dmesg...

Starting LSB: Bring up/down networking...

[  OK  ] Started irqbalance daemon.

Starting irqbalance daemon...

Starting Permit User Sessions...

Starting NTP client/server...

[  OK  ] Started Permit User Sessions.

Starting Wait for Plymouth Boot Screen to Quit...

[  OK  ] Started Command Scheduler.

Starting Command Scheduler...

Starting Terminate Plymouth Boot Screen...

[  OK  ] Started Dump dmesg to /var/log/dmesg.

[  OK  ] Started Login Service.

[  OK  ] Started System Logging Service.

CentOS Linux 7 (Core)

Kernel 3.10.0-693.el7.x86_64 on an x86_64

当进到输入用户名时,如果拖了很长时间才输入,它会提示如下信息,并让你重新输入用户名和密码:

localhost login: [  101.937923] random: crng init done

CentOS Linux 7 (Core)

Kernel 3.10.0-693.el7.x86_64 on an x86_64

localhost login: root           输入用户名root

密码:                                   输入密码1

Last login: Thu Dec 20 21:15:23 on ttyS0

[root@localhost ~]#             成功进入虚拟机

##############################################################################

[root@localhost ~]# poweroff      关闭虚拟机

显示如下:

已终止

[root@localhost ~]# [  OK  ] Started Show Plymouth Power Off Screen.

[  OK  ] Stopped Postfix Mail Transport Agent.

[  OK  ] Stopped target Network.

Stopping LSB: Bring up/down networking...

[  OK  ] Stopped LSB: Bring up/down networking.

[  OK  ] Stopped target Basic System.

[  OK  ] Stopped target Paths.

[  OK  ] Stopped target Slices.

[  OK  ] Removed slice User and Session Slice.

[  OK  ] Stopped target Sockets.

[  OK  ] Closed D-Bus System Message Bus Socket.

[  OK  ] Stopped target System Initialization.

[  OK  ] Stopped Setup Virtual Console.

Stopping Setup Virtual Console...

[  OK  ] Stopped Apply Kernel Variables.

Stopping Apply Kernel Variables...

[  OK  ] Stopped target Swap.

Stopping Load/Save Random Seed...

Stopping Update UTMP about System Boot/Shutdown...

[  OK  ] Stopped target Encrypted Volumes.

[  OK  ] Stopped Update UTMP a[  218.072778] type=1305 audit(1545312212.435:71): audit_pid=0 old=423 auid=4294967295 ses=4294967295 res=1

bout System Boot/Shutdown.

Stopping Security Auditing Service...

[  218.078825] type=1131 audit(1545312212.441:72): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=auditd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

[  218.084475] type=1131 audit(1545312212.446:73): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-random-seed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

[  218.091843] type=1131 audit(1545312212.454:74): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

[  OK  ] Stopped Security Auditing Service.

[  OK  ] Stopped Load/Save Random Seed.

[  OK  ] Stopped Create Volatile Files and Directories.

[  218.102994] type=1131 audit(1545312212.465:75): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=rhel-import-state comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

[  218.108061] type=1131 audit(1545312212.470:76): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=rhel-readonly comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

Stopping Create Volatile Files and Directories...

[  OK  ] Stopped Import network configuration from initramfs.

Stopping Import network configuration from initramfs...

[  OK  ] Stopped target Local File Systems.

[  OK  ] Stopped Configure read-only root support.

Stopping Configure read-only root support...

Unmounting Configuration File System...

Unmounting /run/user/0...

[  218.133989] type=1131 audit(1545312212.496:77): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

[  218.137853] type=1131 audit(1545312212.500:78): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-remount-fs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

[  OK  ] Unmounted Configuration File System.

[  OK  ] Unmounted /run/user/0.

[  OK  ] Reached target Unmount All Filesystems.

[  OK  ] Stopped target Local File Systems (Pre).

[  OK  ] Stopped Create Static Device Nodes in /dev.

Stopping Create Static Device Nodes in /dev...

[  OK  ] Stopped Remount Root and Kernel File Systems.

Stopping Remount Root and Kernel File Systems...

[  OK  ] Reached target Shutdown.

[  218.168073] systemd-shutdown[1]: Sending SIGTERM to remaining processes...

[  218.177600] systemd-journald[351]: Received SIGTERM from PID 1 (systemd-shutdow).

[  218.183744] systemd-shutdown[1]: Sending SIGKILL to remaining processes...

[  218.187295] systemd-shutdown[1]: Unmounting file systems.

[  218.363750] systemd-shutdown[1]: All filesystems unmounted.

[  218.364643] systemd-shutdown[1]: Deactivating swaps.

[  218.365327] systemd-shutdown[1]: All swaps deactivated.

[  218.366007] systemd-shutdown[1]: Detaching loop devices.

[  218.367178] systemd-shutdown[1]: All loop devices detached.

[  218.367906] systemd-shutdown[1]: Detaching DM devices.

[  218.368615] systemd-shutdown[1]: All DM devices detached.

[  218.369916] systemd-shutdown[1]: Powering off.

[  218.370997] ACPI: Preparing to enter system sleep state S5

[  218.371587] Power down.

##########################################################################

#  virsh start openstack

域 openstack 已开始

#  virsh console openstack

页面显示如下:

Probing EDD (edd=off to disable)... ok

[    0.000000] Initializing cgroup subsys cpuset

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Initializing cgroup subsys cpuacct

[    0.000000] Linux version 3.10.0-693.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Aug 22 21:09:27 UTC 2017

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.10.0-693.el7.x86_64 root=/dev/vda1 ro biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8

[    0.000000] e820: BIOS-provided physical RAM map:

[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable

[    0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved

[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved

[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000bfff9fff] usable

[    0.000000] BIOS-e820: [mem 0x00000000bfffa000-0x00000000bfffffff] reserved

[    0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved

[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved

[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x00000002587fffff] usable

[    0.000000] NX (Execute Disable) protection: active

[    0.000000] SMBIOS 2.4 present.

[    0.000000] Hypervisor detected: KVM

[    0.000000] e820: last_pfn = 0x258800 max_arch_pfn = 0x400000000

[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106

[    0.000000] e820: last_pfn = 0xbfffa max_arch_pfn = 0x400000000

[    0.000000] found SMP MP-table at [mem 0x000f72a0-0x000f72af] mapped at [ffff8800000f72a0]

[    0.000000] Using GB pages for direct mapping

[    0.000000] RAMDISK: [mem 0x35cc2000-0x36e58fff]

[    0.000000] Early table checksum verification disabled

[    0.000000] ACPI: RSDP 00000000000f7050 00014 (v00 BOCHS )

[    0.000000] ACPI: RSDT 00000000bffffbd6 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)

[    0.000000] ACPI: FACP 00000000bffff177 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)

[    0.000000] ACPI: DSDT 00000000bfffe040 01137 (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)

[    0.000000] ACPI: FACS 00000000bfffe000 00040

[    0.000000] ACPI: SSDT 00000000bffff1eb 0095B (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)

[    0.000000] ACPI: APIC 00000000bffffb46 00090 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)

[    0.000000] No NUMA configuration found

[    0.000000] Faking a node at [mem 0x0000000000000000-0x00000002587fffff]

[    0.000000] NODE_DATA(0) allocated [mem 0x2587d7000-0x2587fdfff]

[    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00

[    0.000000] kvm-clock: cpu 0, msr 2:58787001, primary cpu clock

[    0.000000] kvm-clock: using sched offset of 8393989867 cycles

[    0.000000] Zone ranges:

[    0.000000]   DMA      [mem 0x00001000-0x00ffffff]

[    0.000000]   DMA32    [mem 0x01000000-0xffffffff]

[    0.000000]   Normal   [mem 0x100000000-0x2587fffff]

[    0.000000] Movable zone start for each node

[    0.000000] Early memory node ranges

[    0.000000]   node   0: [mem 0x00001000-0x0009efff]

[    0.000000]   node   0: [mem 0x00100000-0xbfff9fff]

[    0.000000]   node   0: [mem 0x100000000-0x2587fffff]

[    0.000000] Initmem setup node 0 [mem 0x00001000-0x2587fffff]

[    0.000000] ACPI: PM-Timer IO Port: 0x608

[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)

[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)

[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)

[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)

[    0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])

[    0.000000] ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])

[    0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23

[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)

[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)

[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)

[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)

[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)

[    0.000000] Using ACPI (MADT) for SMP configuration information

[    0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs

[    0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]

[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]

[    0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]

[    0.000000] PM: Registered nosave memory: [mem 0xbfffa000-0xbfffffff]

[    0.000000] PM: Registered nosave memory: [mem 0xc0000000-0xfeffbfff]

[    0.000000] PM: Registered nosave memory: [mem 0xfeffc000-0xfeffffff]

[    0.000000] PM: Registered nosave memory: [mem 0xff000000-0xfffbffff]

[    0.000000] PM: Registered nosave memory: [mem 0xfffc0000-0xffffffff]

[    0.000000] e820: [mem 0xc0000000-0xfeffbfff] available for PCI devices

[    0.000000] Booting paravirtualized kernel on KVM

[    0.000000] setup_percpu: NR_CPUS:5120 nr_cpumask_bits:4 nr_cpu_ids:4 nr_node_ids:1

[    0.000000] PERCPU: Embedded 33 pages/cpu @ffff880258400000 s97048 r8192 d29928 u524288

[    0.000000] KVM setup async PF for cpu 0

[    0.000000] kvm-stealtime: cpu 0, msr 25840f440

[    0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2163043

[    0.000000] Policy zone: Normal

[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.10.0-693.el7.x86_64 root=/dev/vda1 ro biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8

[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)

[    0.000000] x86/fpu: xstate_offset[2]: 0240, xstate_sizes[2]: 0100

[    0.000000] x86/fpu: xstate_offset[3]: 03c0, xstate_sizes[3]: 0040

[    0.000000] x86/fpu: xstate_offset[4]: 0400, xstate_sizes[4]: 0040

[    0.000000] xsave: enabled xstate_bv 0x1f, cntxt size 0x440 using standard form

[    0.000000] Memory: 5142460k/9838592k available (6886k kernel code, 1048992k absent, 241020k reserved, 4545k data, 1764k init)

[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[    0.000000] Hierarchical RCU implementation.

[    0.000000]    RCU restricting CPUs from NR_CPUS=5120 to nr_cpu_ids=4.

[    0.000000] NR_IRQS:327936 nr_irqs:456 0

[    0.000000] Console: colour *CGA 80x25

[    0.000000] console [tty0] enabled

[    0.000000] console [ttyS0] enabled

[    0.000000] allocated 35651584 bytes of page_cgroup

[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups

[    0.000000] tsc: Detected 3192.000 MHz processor

[    0.109419] Calibrating delay loop (skipped) preset value.. 6384.00 BogoMIPS (lpj=3192000)

[    0.110330] pid_max: default: 32768 minimum: 301

[    0.110859] Security Framework initialized

[    0.111380] SELinux:  Initializing.

[    0.111826] Yama: becoming mindful.

[    0.113219] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)

[    0.116822] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)

[    0.118778] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes)

[    0.119563] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes)

[    0.120542] Initializing cgroup subsys memory

[    0.120961] Initializing cgroup subsys devices

[    0.121335] Initializing cgroup subsys freezer

[    0.121708] Initializing cgroup subsys net_cls

[    0.122076] Initializing cgroup subsys blkio

[    0.122439] Initializing cgroup subsys perf_event

[    0.122839] Initializing cgroup subsys hugetlb

[    0.123217] Initializing cgroup subsys pids

[    0.123572] Initializing cgroup subsys net_prio

[    0.125108] mce: CPU supports 10 MCE banks

[    0.125612] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0

[    0.126177] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0

[    0.126710] tlb_flushall_shift: 6

[    0.128020] Freeing SMP alternatives: 24k freed

[    0.132451] ACPI: Core revision 20130517

[    0.133417] ACPI: All ACPI Tables successfully acquired

[    0.134192] ftrace: allocating 26584 entries in 104 pages

[    0.153020] smpboot: Max logical packages: 4

[    0.153828] Enabling x2apic

[    0.154190] Enabled x2apic

[    0.154821] Switched APIC routing to physical x2apic.

[    0.156254] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1

[    0.157000] smpboot: CPU0: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (fam: 06, model: 5e, stepping: 03)

[    0.158318] Performance Events: 32-deep LBR, Skylake events, Intel PMU driver.

[    0.159486] ... version:                2

[    0.160063] ... bit width:              48

[    0.160582] ... generic registers:      8

[    0.161124] ... value mask:             0000ffffffffffff

[    0.161762] ... max period:             000000007fffffff

[    0.162408] ... fixed-purpose events:   3

[    0.162895] ... event mask:             00000007000000ff

[    0.163584] KVM setup paravirtual spinlock

[    0.165142] smpboot: Booting Node   0, Processors  #1[    0.166048] kvm-clock: cpu 1, msr 2:58787041, secondary cpu clock

[    0.187484] KVM setup async PF for cpu 1

[    0.187843] kvm-clock: cpu 2, msr 2:58787081, secondary cpu clock

#2[    0.193106] kvm-stealtime: cpu 1, msr 25848f440

[    0.209122] KVM setup async PF for cpu 2

[    0.209375] kvm-clock: cpu 3, msr 2:587870c1, secondary cpu clock

#3 OK

[    0.210173] kvm-stealtime: cpu 2, msr 25850f440

[    0.230616] Brought up 4 CPUs

[    0.230642] KVM setup async PF for cpu 3

[    0.230645] kvm-stealtime: cpu 3, msr 25858f440

[    0.232388] smpboot: Total of 4 processors activated (25536.00 BogoMIPS)

[    0.257751] node 0 initialised, 851530 pages in 10ms

[    0.259459] devtmpfs: initialized

[    0.261402] EVM: security.selinux

[    0.261927] EVM: security.ima

[    0.262375] EVM: security.capability

[    0.263421] atomic64 test passed for x86-64 platform with CX8 and with SSE

[    0.264342] pinctrl core: initialized pinctrl subsystem

[    0.265232] RTC time: 21:29:02, date: 12/20/18

[    0.266052] NET: Registered protocol family 16

[    0.266969] ACPI: bus type PCI registered

[    0.267468] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5

[    0.268248] PCI: Using configuration type 1 for base access

[    0.272834] ACPI: Added _OSI(Module Device)

[    0.273517] ACPI: Added _OSI(Processor Device)

[    0.274016] ACPI: Added _OSI(3.0 _SCP Extensions)

[    0.274612] ACPI: Added _OSI(Processor Aggregator Device)

[    0.276547] ACPI: Interpreter enabled

[    0.277027] ACPI: (supports S0 S5)

[    0.277415] ACPI: Using IOAPIC for interrupt routing

[    0.277895] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug

[    0.280397] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])

[    0.281021] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]

[    0.281715] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM

[    0.282386] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.

[    0.283687] acpiphp: Slot [3] registered

[    0.284093] acpiphp: Slot [4] registered

[    0.284515] acpiphp: Slot [5] registered

[    0.284922] acpiphp: Slot [6] registered

[    0.285481] acpiphp: Slot [7] registered

[    0.285829] acpiphp: Slot [8] registered

[    0.286179] acpiphp: Slot [9] registered

[    0.286533] acpiphp: Slot [10] registered

[    0.286885] acpiphp: Slot [11] registered

[    0.287241] acpiphp: Slot [12] registered

[    0.287578] acpiphp: Slot [13] registered

[    0.287912] acpiphp: Slot [14] registered

[    0.288256] acpiphp: Slot [15] registered

[    0.288591] acpiphp: Slot [16] registered

[    0.288927] acpiphp: Slot [17] registered

[    0.289289] acpiphp: Slot [18] registered

[    0.289629] acpiphp: Slot [19] registered

[    0.290059] acpiphp: Slot [20] registered

[    0.290599] acpiphp: Slot [21] registered

[    0.291136] acpiphp: Slot [22] registered

[    0.291525] acpiphp: Slot [23] registered

[    0.292008] acpiphp: Slot [24] registered

[    0.292468] acpiphp: Slot [25] registered

[    0.292902] acpiphp: Slot [26] registered

[    0.293317] acpiphp: Slot [27] registered

[    0.293786] acpiphp: Slot [28] registered

[    0.294252] acpiphp: Slot [29] registered

[    0.294729] acpiphp: Slot [30] registered

[    0.295214] acpiphp: Slot [31] registered

[    0.295740] PCI host bridge to bus 0000:00

[    0.296136] pci_bus 0000:00: root bus resource [bus 00-ff]

[    0.296652] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]

[    0.297321] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]

[    0.297892] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]

[    0.298505] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window]

[    0.306256] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]

[    0.307078] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io  0x03f6]

[    0.307888] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]

[    0.308660] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io  0x0376]

[    0.315486] pci 0000:00:01.3: quirk: [io  0x0600-0x063f] claimed by PIIX4 ACPI

[    0.316330] pci 0000:00:01.3: quirk: [io  0x0700-0x070f] claimed by PIIX4 SMB

[    0.370175] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)

[    0.371354] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)

[    0.372437] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)

[    0.373483] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)

[    0.374482] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)

[    0.375588] ACPI: Enabled 16 GPEs in block 00 to 0F

[    0.376497] vgaarb: loaded

[    0.377001] SCSI subsystem initialized

[    0.377470] ACPI: bus type USB registered

[    0.377917] usbcore: registered new interface driver usbfs

[    0.378477] usbcore: registered new interface driver hub

[    0.379095] usbcore: registered new device driver usb

[    0.379720] PCI: Using ACPI for IRQ routing

[    0.380377] NetLabel: Initializing

[    0.380752] NetLabel:  domain hash size = 128

[    0.381250] NetLabel:  protocols = UNLABELED CIPSOv4

[    0.381672] NetLabel:  unlabeled traffic allowed by default

[    0.382247] amd_nb: Cannot enumerate AMD northbridges

[    0.386862] Switched to clocksource kvm-clock

[    0.390785] pnp: PnP ACPI init

[    0.391120] ACPI: bus type PNP registered

[    0.391890] pnp: PnP ACPI: found 5 devices

[    0.392327] ACPI: bus type PNP unregistered

[    0.398065] NET: Registered protocol family 2

[    0.398716] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)

[    0.399671] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)

[    0.400450] TCP: Hash tables configured (established 131072 bind 65536)

[    0.401065] TCP: reno registered

[    0.401395] UDP hash table entries: 8192 (order: 6, 262144 bytes)

[    0.402002] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes)

[    0.402627] NET: Registered protocol family 1

[    0.403005] pci 0000:00:00.0: Limiting direct PCI/PCI transfers

[    0.403534] pci 0000:00:01.0: PIIX3: Enabling Passive Release

[    0.404002] pci 0000:00:01.0: Activating ISA DMA hang workarounds

[    0.404677] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11

[    0.405935] Unpacking initramfs...

[    0.587859] Freeing initrd memory: 18012k freed

[    0.589693] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)

[    0.590303] software IO TLB [mem 0xbbffa000-0xbfffa000] (64MB) mapped at [ffff8800bbffa000-ffff8800bfff9fff]

[    0.591673] sha1_ssse3: Using AVX optimized SHA-1 implementation

[    0.592345] sha256_ssse3: Using AVX2 optimized SHA-256 implementation

[    0.593252] futex hash table entries: 1024 (order: 4, 65536 bytes)

[    0.593895] Initialise system trusted keyring

[    0.594541] audit: initializing netlink socket (disabled)

[    0.595201] type=2000 audit(1545312542.965:1): initialized

[    0.616098] HugeTLB registered 1 GB page size, pre-allocated 0 pages

[    0.616651] HugeTLB registered 2 MB page size, pre-allocated 0 pages

[    0.618688] zpool: loaded

[    0.618952] zbud: loaded

[    0.619297] VFS: Disk quotas dquot_6.5.2

[    0.619652] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)

[    0.620309] msgmni has been set to 16731

[    0.620686] Key type big_key registered

[    0.623747] NET: Registered protocol family 38

[    0.624169] Key type asymmetric registered

[    0.624516] Asymmetric key parser 'x509' registered

[    0.624951] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)

[    0.625586] io scheduler noop registered

[    0.625927] io scheduler deadline registered (default)

[    0.626371] io scheduler cfq registered

[    0.626762] pci_hotplug: PCI Hot Plug PCI Core version: 0.5

[    0.627233] pciehp: PCI Express Hot Plug Controller Driver version: 0.4

[    0.627863] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0

[    0.628465] ACPI: Power Button [PWRF]

[    0.628877] GHES: HEST is not enabled!

[    0.629233] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

[    0.650836] 00:04: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

[    0.651534] Non-volatile memory driver v1.3

[    0.651905] Linux agpgart interface v0.103

[    0.652328] crash memory driver: version 1.1

[    0.652721] rdac: device handler registered

[    0.653106] hp_sw: device handler registered

[    0.653541] emc: device handler registered

[    0.653908] alua: device handler registered

[    0.654405] libphy: Fixed MDIO Bus: probed

[    0.654900] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[    0.655513] ehci-pci: EHCI PCI platform driver

[    0.656067] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

[    0.656709] ohci-pci: OHCI PCI platform driver

[    0.657237] uhci_hcd: USB Universal Host Controller Interface driver

[    0.658572] uhci_hcd 0000:00:01.2: UHCI Host Controller

[    0.659209] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1

[    0.659938] uhci_hcd 0000:00:01.2: detected 2 ports

[    0.660513] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c040

[    0.661240] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001

[    0.661785] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    0.662469] usb usb1: Product: UHCI Host Controller

[    0.662868] usb usb1: Manufacturer: Linux 3.10.0-693.el7.x86_64 uhci_hcd

[    0.663419] usb usb1: SerialNumber: 0000:00:01.2

[    0.663943] hub 1-0:1.0: USB hub found

[    0.664363] hub 1-0:1.0: 2 ports detected

[    0.664884] usbcore: registered new interface driver usbserial

[    0.665633] usbcore: registered new interface driver usbserial_generic

[    0.666618] usbserial: USB Serial support registered for generic

[    0.667432] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12

[    0.668478] serio: i8042 KBD port at 0x60,0x64 irq 1

[    0.669035] serio: i8042 AUX port at 0x60,0x64 irq 12

[    0.670064] mousedev: PS/2 mouse device common for all mice

[    0.670723] rtc_cmos 00:00: RTC can wake from S4

[    0.671551] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0

[    0.672311] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1

[    0.673059] rtc_cmos 00:00: alarms up to one day, 114 bytes nvram

[    0.673841] cpuidle: using governor menu

[    0.674427] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input2

[    0.675448] hidraw: raw HID events driver (C) Jiri Kosina

[    0.676047] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3

[    0.676904] usbcore: registered new interface driver usbhid

[    0.677285] usbhid: USB HID core driver

[    0.677584] drop_monitor: Initializing network drop monitor service

[    0.678471] TCP: cubic registered

[    0.678881] Initializing XFRM netlink socket

[    0.679562] NET: Registered protocol family 10

[    0.680344] NET: Registered protocol family 17

[    0.681003] microcode: CPU0 sig=0x506e3, pf=0x1, revision=0x1

[    0.681588] microcode: CPU1 sig=0x506e3, pf=0x1, revision=0x1

[    0.682249] microcode: CPU2 sig=0x506e3, pf=0x1, revision=0x1

[    0.683032] microcode: CPU3 sig=0x506e3, pf=0x1, revision=0x1

[    0.683724] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba

[    0.684719] Loading compiled-in X.509 certificates

[    0.685283] Loaded X.509 cert 'CentOS Linux kpatch signing key: ea0413152cde1d98ebdca3fe6f0230904c9ef717'

[    0.686416] Loaded X.509 cert 'CentOS Linux Driver update signing key: 7f421ee0ab69461574bb358861dbe77762a4201b'

[    0.687773] Loaded X.509 cert 'CentOS Linux kernel signing key: da187dca7dbe53ab05bd13bd0c4e21f422b6a49c'

[    0.688786] registered taskstats version 1

[    0.690685] Key type trusted registered

[    0.692434] Key type encrypted registered

[    0.694226] IMA: No TPM chip found, activating TPM-bypass!

[    0.695118]   Magic number: 14:694:500

[    0.695641] rtc_cmos 00:00: setting system clock to 2018-12-20 21:29:03 UTC (1545341343)

[    0.704547] Freeing unused kernel memory: 1764k freed

[    0.707032] random: systemd: uninitialized urandom read (16 bytes read)

[    0.708407] random: systemd: uninitialized urandom read (16 bytes read)

[    0.709190] random: systemd: uninitialized urandom read (16 bytes read)

[    0.710903] systemd[1]: systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)

[    0.712914] systemd[1]: Detected virtualization kvm.

[    0.713501] systemd[1]: Detected architecture x86-64.

[    0.713928] systemd[1]: Running in initial RAM disk.

Welcome to CentOS Linux 7 (Core) dracut-033-502.el7 (Initramfs)!

[    0.715538] systemd[1]: Set hostname to <localhost.localdomain>.

[    0.736948] random: systemd: uninitialized urandom read (16 bytes read)

[    0.738245] random: systemd: uninitialized urandom read (16 bytes read)

[    0.739137] random: systemd: uninitialized urandom read (16 bytes read)

[    0.739814] random: systemd: uninitialized urandom read (16 bytes read)

[    0.740884] random: systemd: uninitialized urandom read (16 bytes read)

[    0.741658] random: systemd: uninitialized urandom read (16 bytes read)

[    0.743518] random: systemd: uninitialized urandom read (16 bytes read)

[  OK  ] Reached target Swap.

[    0.747403] systemd[1]: Reached target Swap.

[    0.747814] systemd[1]: Starting Swap.

[  OK  ] Created slice Root Slice.

[    0.749273] systemd[1]: Created slice Root Slice.

[    0.749830] systemd[1]: Starting Root Slice.

[  OK  ] Created slice System Slice.

[    0.751073] systemd[1]: Created slice System Slice.

[    0.751663] systemd[1]: Starting System Slice.

[  OK  ] Reached target Slices.

[    0.752742] systemd[1]: Reached target Slices.

[    0.753228] systemd[1]: Starting Slices.

[  OK  ] Listening on udev Kernel Socket.

[    0.754245] systemd[1]: Listening on udev Kernel Socket.

[    0.754839] systemd[1]: Starting udev Kernel Socket.

[  OK  ] Listening on Journal Socket.

[    0.756077] systemd[1]: Listening on Journal Socket.

[    0.756596] systemd[1]: Starting Journal Socket.

[    0.757363] systemd[1]: Starting Setup Virtual Console...

Starting Setup Virtual Console...

[    0.759128] systemd[1]: Starting dracut cmdline hook...

Starting dracut cmdline hook...

[    0.761096] systemd[1]: Starting Create list of required static device nodes for the current kernel...

Starting Create list of required st... nodes for the current kernel...

[    0.763150] systemd[1]: Starting Apply Kernel Variables...

Starting Apply Kernel Variables...

[    0.764460] systemd[1]: Starting Journal Service...

Starting Journal Service...

[  OK  ] Listening on udev Control Socket.

[    0.765890] systemd[1]: Listening on udev Control Socket.

[    0.766375] systemd[1]: Starting udev Control Socket.

[  OK  ] Reached target Sockets.

[    0.767303] systemd[1]: Reached target Sockets.

[    0.767704] systemd[1]: Starting Sockets.

[  OK  ] Reached target Timers.

[    0.768601] systemd[1]: Reached target Timers.

[    0.768997] systemd[1]: Starting Timers.

[  OK  ] Reached target Local File Systems.

[    0.769935] systemd[1]: Reached target Local File Systems.

[    0.770408] systemd[1]: Starting Local File Systems.

[  OK  ] Started Create list of required sta...ce nodes for the current kernel.

[    0.772060] systemd[1]: Started Create list of required static device nodes for the current kernel.

[  OK  ] Started Apply Kernel Variables.

[    0.773673] systemd[1]: Started Apply Kernel Variables.

[    0.774560] systemd[1]: Starting Create Static Device Nodes in /dev...

Starting Create Static Device Nodes in /dev...

[  OK  ] Started Create Static Device Nodes in /dev.

[    0.778261] systemd[1]: Started Create Static Device Nodes in /dev.

[  OK  ] Started Journal Service.

[    0.779757] systemd[1]: Started Journal Service.

[  OK  ] Started dracut cmdline hook.

Starting dracut pre-udev hook...

[  OK  ] Started dracut pre-udev hook.

Starting udev Kernel Device Manager...

[  OK  ] Started udev Kernel Device Manager.

[    0.862189] random: fast init done

Starting udev Coldplug all Devices...

Mounting Configuration File System...

[  OK  ] Mounted Configuration File System.

[    0.878443] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10

[    0.878988] virtio-pci 0000:00:03.0: virtio_pci: leaving for legacy driver

[    0.882638] virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver

[    0.885323] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10

[    0.885828] virtio-pci 0000:00:05.0: virtio_pci: leaving for legacy driver

[    0.887786] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11

[  OK  ] Started udev Coldplug all Devices.

Starting dracut initqueue hook...

[    0.890345] virtio-pci 0000:00:06.0: virtio_pci: leaving for legacy driver

[    0.891925] virtio-pci 0000:00:07.0: virtio_pci: leaving for legacy driver

[    0.896640] FDC 0 is a S82078B

[    0.924656] scsi host0: ata_piix

[    0.925210] scsi host1: ata_piix

[    0.925578] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0e0 irq 14

[    0.989113] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0e8 irq 15

[    0.989536]  vda: vda1

[  OK  ] Started dracut initqueue hook.

[  OK  ] Reached target Remote File Systems (Pre).

[  OK  ] Reached target Remote File Systems.

[  OK  ] Found device /dev/vda1.

Starting File System Check on /dev/vda1...

[  OK  ] Started File System Check on /dev/vda1.

Mounting /sysroot...

[    1.070451] SGI XFS with ACLs, security attributes, no debug enabled

[    1.074285] XFS (vda1): Mounting V5 Filesystem

[    1.079674] XFS (vda1): Ending clean mount

[  OK  ] Mounted /sysroot.

[  OK  ] Reached target Initrd Root File System.

Starting Reload Configuration from the Real Root...

[  OK  ] Started Reload Configuration from the Real Root.

[  OK  ] Reached target Initrd File Systems.

[    1.593094] tsc: Refined TSC clocksource calibration: 3191.976 MHz

[  OK  ] Started Setup Virtual Console.

Starting Show Plymouth Boot Screen...

[  OK  ] Reached target System Initialization.

[  OK  ] Started Show Plymouth Boot Screen.

[  OK  ] Reached target Paths.

[  OK  ] Reached target Basic System.

[  OK  ] Reached target Initrd Default Target.

Starting dracut pre-pivot and cleanup hook...

[  OK  ] Started dracut pre-pivot and cleanup hook.

Starting Cleaning Up and Shutting Down Daemons...

[  OK  ] Stopped target Timers.

Starting Plymouth switch root service...

[  OK  ] Stopped Cleaning Up and Shutting Down Daemons.

[  OK  ] Stopped dracut pre-pivot and cleanup hook.

Stopping dracut pre-pivot and cleanup hook...

[  OK  ] Stopped target Initrd Default Target.

[  OK  ] Stopped target Remote File Systems.

[  OK  ] Stopped target Remote File Systems (Pre).

[  OK  ] Stopped dracut initqueue hook.

Stopping dracut initqueue hook...

[  OK  ] Stopped target Basic System.

[  OK  ] Stopped target Sockets.

[  OK  ] Stopped target Slices.

[  OK  ] Stopped target System Initialization.

[  OK  ] Stopped Apply Kernel Variables.

Stopping Apply Kernel Variables...

Stopping udev Kernel Device Manager...

[  OK  ] Stopped udev Coldplug all Devices.

Stopping udev Coldplug all Devices...

[  OK  ] Stopped target Local File Systems.

[  OK  ] Stopped target Swap.

[  OK  ] Stopped target Paths.

[  OK  ] Stopped udev Kernel Device Manager.

[  OK  ] Stopped dracut pre-udev hook.

Stopping dracut pre-udev hook...

[  OK  ] Stopped dracut cmdline hook.

Stopping dracut cmdline hook...

[  OK  ] Stopped Create Static Device Nodes in /dev.

Stopping Create Static Device Nodes in /dev...

[  OK  ] Stopped Create list of required sta...ce nodes for the current kernel.

Stopping Create list of required st... nodes for the current kernel...

[  OK  ] Closed udev Control Socket.

[  OK  ] Closed udev Kernel Socket.

Starting Cleanup udevd DB...

[  OK  ] Started Cleanup udevd DB.

[  OK  ] Reached target Switch Root.

[  OK  ] Started Plymouth switch root service.

Starting Switch Root...

[    6.285172] systemd-journald[115]: Received SIGTERM from PID 1 (n/a).

[    6.323528] SELinux:  Disabled at runtime.

[    6.370957] type=1404 audit(1545341349.175:2): selinux=0 auid=4294967295 ses=4294967295

[    6.391492] ip_tables: (C) 2000-2006 Netfilter Core Team

[    6.392558] systemd[1]: Inserted module 'ip_tables'

Welcome to CentOS Linux 7 (Core)!

[  OK  ] Stopped Switch Root.

[  OK  ] Stopped Journal Service.

Starting Journal Service...

[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.

[  OK  ] Listening on udev Control Socket.

[  OK  ] Created slice system-serial\x2dgetty.slice.

Mounting Debug File System...

[  OK  ] Reached target Remote File Systems.

[  OK  ] Reached target Encrypted Volumes.

[  OK  ] Stopped File System Check on Root Device.

Stopping File System Check on Root Device...

[  OK  ] Stopped target Switch Root.

[  OK  ] Created slice system-getty.slice.

[  OK  ] Created slice User and Session Slice.

[  OK  ] Reached target Swap.

[  OK  ] Listening on udev Kernel Socket.

[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.

[  OK  ] Stopped target Initrd File Systems.

Mounting POSIX Message Queue File System...

Starting Create list of required st... nodes for the current kernel...

[  OK  ] Reached target Slices.

Mounting Huge Pages File System...

Starting Remount Root and Kernel File Systems...

Starting Apply Kernel Variables...

[  OK  ] Created slice system-selinux\x2dpol...grate\x2dlocal\x2dchanges.slice.

[  OK  ] Listening on Delayed Shutdown Socket.

[  OK  ] Stopped target Initrd Root File System.

[  OK  ] Started Journal Service.

[  OK  ] Mounted Debug File System.

[  OK  ] Mounted POSIX Message Queue File System.

[  OK  ] Mounted Huge Pages File System.

[  OK  ] Started Create list of required sta...ce nodes for the current kernel.

[  OK  ] Started Remount Root and Kernel File Systems.

[  OK  ] Started Apply Kernel Variables.

Starting Configure read-only root support...

Starting udev Coldplug all Devices...

Starting Load/Save Random Seed...

Starting Flush Journal to Persistent Storage...

Starting Create Static Device Nodes in /dev...

[  OK  ] Started Load/Save Random Seed.

[    6.539346] systemd-journald[354]: Received request to flush runtime journal from PID 1

[  OK  ] Started Create Static Device Nodes in /dev.

[  OK  ] Started udev Coldplug all Devices.

Starting udev Kernel Device Manager...

[  OK  ] Reached target Local File Systems (Pre).

[  OK  ] Started Flush Journal to Persistent Storage.

[  OK  ] Started Configure read-only root support.

[  OK  ] Reached target Local File Systems.

Starting Import network configuration from initramfs...

Starting Tell Plymouth To Write Out Runtime Data...

[  OK  ] Started Tell Plymouth To Write Out Runtime Data.

[  OK  ] Started udev Kernel Device Manager.

[  OK  ] Started Import network configuration from initramfs.

Starting Create Volatile Files and Directories...

[    6.602704] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0x700, revision 0

Starting Tell Plymouth To Write Out Runtime Data...

[    6.614908] input: PC Speaker as /devices/platform/pcspkr/input/input4

[  OK  ] Found device /dev/ttyS0.

[  OK  ] Started Tell Plymouth To Write Out Runtime Data.

[  OK  ] Started Create Volatile Files and Directories.

Starting Security Auditing Service...

[    6.650759] ppdev: user-space parallel port driver

[    6.655038] AES CTR mode by8 optimization enabled

[    6.657547] type=1305 audit(1545341349.461:3): audit_pid=427 old=0 auid=4294967295 ses=4294967295 res=1

[    6.663852] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)

[    6.672342] alg: No test for crc32 (crc32-pclmul)

[  OK  ] Started Security Auditing Service.

Starting Update UTMP about System Boot/Shutdown...

[  OK  ] Started Update UTMP about System Boot/Shutdown.

[  OK  ] Reached target System Initialization.

[  OK  ] Reached target Timers.

[  OK  ] Reached target Paths.

[  OK  ] Listening on D-Bus System Message Bus Socket.

[  OK  ] Reached target Sockets.

[  OK  ] Reached target Basic System.

Starting LSB: Bring up/down networking...

Starting NTP client/server...

[  OK  ] Started D-Bus System Message Bus.

Starting D-Bus System Message Bus...

Starting Dump dmesg to /var/log/dmesg...

Starting Login Service...

[  OK  ] Started QEMU Guest Agent.

Starting QEMU Guest Agent...

[  OK  ] Started irqbalance daemon.

Starting irqbalance daemon...

Starting System Logging Service...

Starting Authorization Manager...

Starting Permit User Sessions...

[  OK  ] Started Permit User Sessions.

Starting Terminate Plymouth Boot Screen...

[  OK  ] Started Command Scheduler.

Starting Command Scheduler...

Starting Wait for Plymouth Boot Screen to Quit...

[  OK  ] Started Login Service.

[  OK  ] Started NTP client/server.

[  OK  ] Started Dump dmesg to /var/log/dmesg.

[  OK  ] Started System Logging Service.

CentOS Linux 7 (Core)

Kernel 3.10.0-693.el7.x86_64 on an x86_64

localhost login: root   输入用户名root

密码:                         输入密码1

Last login: Thu Dec 20 21:28:17 on ttyS0

[root@localhost ~]# [  103.767796] random: crng init done

如果拖了很长时间才输入,它会停在这里,然后需要我们回车,才能进入虚拟机

[root@localhost ~]#              成功进入虚拟机

[root@localhost ~]# poweroff     关闭虚拟机

... ...

#######################################################################

#  virsh start openstack

域 openstack 已开始

# virsh console openstack

显示如下:

连接到域 openstack

换码符为 ^]              当我们第2次启动它时,它会停在这里,需要我们回车就会进入登陆页面了

CentOS Linux 7 (Core)

Kernel 3.10.0-693.el7.x86_64 on an x86_64

localhost login: root      这里输入用户名root

密码:                            这里输入密码1

Last login: Fri Dec 21 04:59:27 on ttyS0

[root@localhost ~]#        成功登陆

转载于:https://www.cnblogs.com/summer2/p/10798457.html

openstack1相关推荐

  1. [OpenStack] OpenStack Essex - Glance 安装部署与命令行详解

    Glance Install glance using the following command: sudo apt-get install glance glance-api glance-cli ...

  2. Openstack安装过程中出现的一些问题及解决

    一.Centos7安装Mitika问题 1.问题:在keystone安装阶段请求认证令牌出现错误 # vim admin-openrc export OS_PROJECT_DOMAIN_NAME=de ...

  3. ubuntu16.0 安装 openstack

    主要参考官方文档:https://docs.openstack.org/liberty/zh_CN/install-guide-ubuntu/environment-nosql-database.ht ...

  4. Tungsten Fabric知识库丨关于OpenStack、K8s、CentOS安装问题的补充

    作者:Tatsuya Naganawa 译者:TF编译组 多kube-master部署 3个Tungsten Fabric控制器节点:m3.xlarge(4 vcpu)-> c3.4xlarge ...

  5. openstack COA 考试模拟题

    COA 考试模拟题 version: 201911 Exam Tasks You are the cloud administrator of a fictitious company named E ...

  6. CentOS上搭建OpenStack云平台只需8G内存!!!

    Hello!大家好,今天阿坤为大家带来8G内存的云平台搭建,按照官方的标准是需要32G,最少也是16G内存的,但是阿坤觉的还不是极限,所以今天带大家挑战8G内存搭建最小云平台! 环境准备 1.总共需要 ...

  7. OpenStack_Stein版安装部署

    1. OpenStack简介 OpenStack 是一系列开源工具(或开源项目)的组合,主要使用池化虚拟资源来构建和管理私有云及公共云.其中的六个项目主要负责处理核心云计算服务,包括计算.网络.存储. ...

  8. 云计算|OpenStack|社区版OpenStack安装部署文档(九--- 创建一个虚拟机实例---Rocky版)

    官方文档: Launch an instance - Installation Guide documentation 如果neutron创建的时候使用的是provider network网络模型,只 ...

  9. 容器化OpenStack好处

    2016年OpenStack中国峰会,最大的一个感受,就是厂商都在做容器化OpenStack.这已经是一个不可逆转的势头. Mirantis的Fuel也要实现容器化OpenStack Canonica ...

最新文章

  1. 代码逻辑是分方法写好 还是在一个方法写好_这一团糟的代码,真的是我写的吗?...
  2. iframe中的奇怪现象
  3. 嵌入式java闹钟 实验报告_《Java程序设计》第五次实验实验报告
  4. 在Visual Studio 2010中实现数据驱动Coded UI Tests
  5. js-forEach 不能使用break continue return true false
  6. 使用@required注解完成依赖检查
  7. IIS支持Shtml后辍文件方法
  8. aix查看oracle进程内存,Aix 查看进程占用内存大小(按从大小排列)
  9. springboot+Vue在线考试系统
  10. php网站静态页面模板,用PHP制作静态网站的模板框架
  11. java 框架医院系统,java毕业设计_springboot框架的医院信息管理系统
  12. laravel pdf 加水印
  13. react异常 Each child in a list should have a unique “key” prop
  14. 网络安全等级保护2.0详解
  15. QT信号和槽机制分析
  16. OpenGL和OpenCV
  17. 散热性能测试软件,性能测试及散热表现
  18. 搭建个人博客,东半球最强教程
  19. 网关是什么,一文带你快速入门腾讯技术工程
  20. 如何让思路更清晰?simplemind for Mac思维导图来帮忙

热门文章

  1. java甲骨文杯_2015年“甲骨文杯”全国Java程序设计大赛
  2. 计算机检测维修与数据恢复国赛培训班招生
  3. Golang实现的大顶堆demo
  4. AI Benchmark v4榜首风云:海思麒麟9000登上榜首
  5. java Float.parseFloat
  6. harrier 查看查看服务器状态,机油尺检查细节多多,嘉普力汽配工场教你如何正确查看机油尺...
  7. “新力”才是长沙新消费品牌“爆炸”生长的特殊养料
  8. 利用shell脚本“综合、集中”查看linux server常用软硬件信息
  9. mysql ssd inodb,技术译文 | MySQL 8 需要多大的 innodb_buffer_pool_instances 值(上)
  10. pandas的get_dummies