真機php
安裝git,同步git裏的資料html
# yum -y install git前端
# git clone git://124.193.128.166/hello.gitnode
# cd hello/python
# git pulllinux
# ls 查看上傳到git裏的資料ios
cmd.txt grub ifcfg-eth0 node.xml openstack.txt readme.txt vbr.xml 大綱.txtgit
其中vbr.xml文件,是寫的一個叫vbr的虛擬網絡的模版shell
# cat vbr.xmlvim
<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 ~]# 成功登錄