CentOS7配置KVM
準(zhǔn)備
系統(tǒng)環(huán)境
inet1 | inet2 | 主機(jī)名 | 系統(tǒng) | 配置 |
---|---|---|---|---|
192.169.72.201 | 202.207.240.201 | kvm-01 | CentOS7.5.1804 | MEM:4G CPU:2C/2P DISK:15G |
CentOS7鏡像
CentOS-7-x86_64-DVD-1804.iso
創(chuàng)建相關(guān)目錄
mkdir -p /server/tools # 存放CentOS-7-x86_64-DVD-1804.iso
mkdir -p /server/scripts # 存放自定義腳本
mkdir /data # 存放磁盤文件
開啟VMware的CPU虛擬化功能
安裝命令補(bǔ)全工具并重啟
yum install bash-completion -y
reboot
安裝
yum install libvirt virt-install qemu-kvm -y
systemctl start libvirtd
systemctl enable libvirtd
- libvirt: 虛擬機(jī)管理軟件(kvm,xen,qemu,lxc)
- virt: virt-install virt-clone 虛擬機(jī)的安裝工具和克隆工具
- qemu-kvm qemu-img(qcow2,raw) 管理虛擬機(jī)的虛擬磁盤
KVM創(chuàng)建
從鏡像創(chuàng)建
- 創(chuàng)建虛擬機(jī)
virt-install --virt-type kvm --os-type=linux --os-variant rhel7 \
--name centos7 --memory 1024 --vcpus 1 --disk /data/centos.qcow2,format=qcow2,size=6 \
--cdrom /server/tools/CentOS-7-x86_64-DVD-1804.iso --network network=default \
--graphics vnc,listen=0.0.0.0 --noautoconsole
- 參數(shù)說(shuō)明
--virt-type kvm # 指定虛擬化類型(qemu/kvm)
--os-type=linux # 系統(tǒng)類型
--os-variant rhel7 # 系統(tǒng)版本
--name centos7 # 虛擬機(jī)的名字
--memory 1024 # 內(nèi)存大小
--vcpus 1 # 處理器數(shù)量
--disk /opt/centos.raw,format=raw,size=6 # 硬盤類型(qcow2,raw),存放位置,以及大?。℅)
--cdrom /opt/CentOS-7-x86_64-DVD-1804.iso # 指定光驅(qū)文件
--network network=default # 指定網(wǎng)絡(luò)類型,默認(rèn)是nat模式
--graphics vnc,listen=0.0.0.0 # 指定終端輸出設(shè)備
--noautoconsole
- vnc軟件連接 安裝系統(tǒng)
注意:(1)云主機(jī)一般不需要交換分區(qū)、(2)網(wǎng)卡設(shè)置開機(jī)自啟動(dòng)、(3)關(guān)閉kdump和sercurity plicy等、(4)修改時(shí)區(qū)
從克隆文件創(chuàng)建
前提,有完整克隆或者鏈接克隆帶有系統(tǒng)的磁盤文件(通過qemu-img創(chuàng)建)
- 創(chuàng)建帶有系統(tǒng)的磁盤文件
qemu-img create -f qcow2 -b /data/centos.qcow2 /data/centos-vm.qcow2
- 從克隆磁盤文件創(chuàng)建KVM
virt-install --virt-type kvm --os-type=linux --os-variant rhel7 --name centos-vm \
--memory 512,maxmemory=2048 --vcpus 1,maxvcpus=5 --disk /data/centos-vm.qcow2 --boot hd \
--network bridge=br0 --graphics vnc,listen=0.0.0.0 --noautoconsole
--memory 512,maxmemory=2048 # 指定最小內(nèi)存為512M,最大內(nèi)存為2048M
--vcpus 1,maxvcpus=5 # 指定CPU最小個(gè)數(shù)為1,最大個(gè)數(shù)為5
--disk /data/centos-vm.qcow2 # 指定虛擬機(jī)的硬盤文件
--boot hd # 指定從硬盤加載KVM
KVM相關(guān)命令
虛擬機(jī)管理命令
virsh list --all # 查看所有的虛擬機(jī)
virsh start centos7 # 啟動(dòng)虛擬機(jī)
virsh shutdown centos7 # 正常關(guān)機(jī)虛擬機(jī)
virsh destroy centos7 # 強(qiáng)制關(guān)機(jī)(相當(dāng)于拔電源)
virsh reboot centos7 # 重啟
virsh domrename centos7 nginx-01 # 虛擬機(jī)重命名(注意:必須關(guān)機(jī)重命名,開機(jī)狀態(tài)下重命名會(huì)失?。?/span>
virsh suspend centos7 # 掛起虛擬機(jī)
virsh resume centos7 # 從掛起狀態(tài)恢復(fù)
virsh autostart centos7 # 設(shè)置kvm虛擬機(jī)開機(jī)自啟動(dòng)(本質(zhì)就是給.xml文件創(chuàng)建軟連接 /etc/libvirt/qemu/autostart/)
virsh autostart --disable centos7 # 取消虛擬機(jī)開機(jī)自啟動(dòng)(刪除創(chuàng)建的軟連接)
虛擬機(jī)配置文件管理命令
virsh dumpxml centos7 >/data/centos7.xml # 導(dǎo)出虛擬機(jī)配置文件
virsh define /data/centos7.xml # 導(dǎo)入配置文件(虛擬機(jī)文件遷移后,需要使用該命令導(dǎo)入虛擬機(jī))
virsh undefine centos7 # 刪除虛擬機(jī)(此時(shí)使用virsh list --all 查看已經(jīng)找不到了)
virsh edit centos7 # 修改虛擬機(jī)的配置文件(比如備份磁盤文件后需要修改路徑等)
虛擬機(jī)運(yùn)行時(shí)終端端口使用查詢
virsh vncdisplay centos7
:0
# :0表示 5900
# :1表示 5901
# 。。。
配置console登錄
-
進(jìn)入kvm虛擬機(jī),修改內(nèi)核參數(shù),并重啟
grubby --update-kernel=ALL --args="console=ttyS0,115200n8" reboot
-
終端測(cè)試
virsh console centos7 # 如果沒有出現(xiàn)登錄頁(yè)面,多進(jìn)行幾次回車
KVM磁盤管理
磁盤格式
- qcow2: (cow copy in write)占用空間小,支持快照,性能比raw差一些,方便傳輸
- raw: 裸格式,占用空間比較大,不支持快照功能,性能好,不方便傳輸
查看磁盤
[root@kvm-01 ~]# qemu-img info /data/centos.qcow2
image: /data/centos.qcow2
file format: qcow2
virtual size: 6.0G (6442450944 bytes)
disk size: 1.5G
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: true
創(chuàng)建磁盤
# 創(chuàng)建一個(gè)名字為test.qcow2的硬盤,格式為qcow2,容量2G
[root@kvm-01 ~]# qemu-img create -f qcow2 /data/test.qcow2 2G
Formatting '/data/test.qcow2', fmt=qcow2 size=2147483648 encryption=off cluster_size=65536 lazy_refcounts=off
- -f 指定創(chuàng)建的磁盤格式
磁盤擴(kuò)容
# 將以上容量為2G的test.qocw2硬盤容量增加3G
[root@kvm-01 ~]# qemu-img resize /data/test.qcow2 +3G
Image resized.
[root@kvm-01 ~]# qemu-img info /data/test.qcow2
image: /data/test.qcow2
file format: qcow2
virtual size: 5.0G (5368709120 bytes)
disk size: 260K
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
注意:
- qcow2格式只能進(jìn)行+擴(kuò)容,raw格式可以進(jìn)行+擴(kuò)容和-縮容
- 不管什么格式的硬盤,都要遵守只擴(kuò)容,不縮容;避免數(shù)據(jù)丟失
磁盤格式轉(zhuǎn)化
- 轉(zhuǎn)磁盤格式
# 將test.qcow2硬盤從格式qcow2轉(zhuǎn)為raw格式
[root@kvm-01 ~]# qemu-img convert -f qcow2 -O raw /data/test.qcow2 /data/test.raw
[root@kvm-01 ~]# qemu-img info /data/test.raw
image: /data/test.raw
file format: raw
virtual size: 5.0G (5368709120 bytes)
disk size: 0
- 修改虛擬機(jī)配置文件
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/data/centos7.qcow2'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</disk>
KVM快照管理
- raw不支持快照,qcow2支持快照
- 快照保存在qcow2的磁盤文件中,占用一定的磁盤空間(方便遷移)
創(chuàng)建快照
-
默認(rèn)方式(創(chuàng)建的快照以u(píng)nix的時(shí)間戳命名)
# 給centos7創(chuàng)建默認(rèn)快照,生成的名字是1657883658 [root@kvm-01 ~]# virsh snapshot-create centos7 Domain snapshot 1657883658 created
-
自定義快照名稱方式
# 給centos7虛擬機(jī)創(chuàng)建一個(gè)名為snap-01的快照 [root@kvm-01 ~]# virsh snapshot-create-as --name snap-01 centos7 Domain snapshot snap-01 created
–name 指定快照的名稱
查看快照
[root@kvm-01 ~]# virsh snapshot-list centos7
Name Creation Time State
------------------------------------------------------------
1657883658 2022-07-15 19:14:18 +0800 running
snap-01 2022-07-15 19:16:02 +0800 running
刪除快照
[root@kvm-01 ~]# virsh snapshot-delete centos7 --snapshotname 1657883658
Domain snapshot 1657883658 deleted
snapshot-delete centos7 指定刪除centos7虛擬機(jī)的快照
–snapshotname 1657883658 指定刪除快照的名稱
還原快照
[root@kvm-01 ~]# virsh snapshot-revert centos7 --snapshotname snap-01
[root@kvm-01 ~]# echo $?
0
snapshot-revert centos7 指定對(duì)centos7虛擬機(jī)進(jìn)行還原快照
–snapshotname snap-01 指定還原的快照名稱是snap-01
KVM克隆管理
完整克隆
- 完整克隆是對(duì)源KVM的完整拷貝,克隆后與源KVM無(wú)關(guān)
- KVM的完整克隆分為自動(dòng)克隆和手動(dòng)克隆
- KVM克隆時(shí)虛擬機(jī)必須關(guān)機(jī)或掛起
- 自動(dòng)完整克隆
virt-clone --auto-clone -o centos7 -n centos7-clone01
- 手動(dòng)完整克?。梢跃帉懲暾寺〉哪_本)
- 拷貝虛擬機(jī)磁盤文件
[root@kvm-01 ~]# cp /data/centos.qcow2 /data/centos-clone02.qcow2
- 導(dǎo)出現(xiàn)有KVM配置文件,并修改
virsh dumpxml centos7 >/data/centos7-clone02.xml
sed -ri "s|(<name>)(.*)(</name>)|\1centos7-clone02\3|g" /data/centos7-clone02.xml
sed -i "/<uuid>/d" /data/centos7-clone02.xml
sed -i "/<mac address/d" /data/centos7-clone02.xml
sed -ri "s|(<source file=')(.*)('/>)|\1/data/centos-clone02.qcow2\3|g" /data/centos7-clone02.xml
- 導(dǎo)入配置文件(克隆的KVM)
virsh define /data/centos7-clone02.xml
- 啟動(dòng)測(cè)試
virsh start centos7-clone02
鏈接克隆
- 鏈接克隆是基于源虛擬機(jī)的增量拷貝,其中基礎(chǔ)時(shí)源虛擬機(jī),克隆后的變化存放在新創(chuàng)建的鏈接磁盤文件中
- kvm默認(rèn)沒有創(chuàng)建鏈接克隆的命令,需要后動(dòng)實(shí)現(xiàn)鏈接克隆
-
生成鏈接克隆磁盤文件
qemu-img create -f qcow2 -b /data/centos.qcow2 /data/centos7-linkclone03.qcow2
-
導(dǎo)出源虛擬機(jī)配置文件,并修改
virsh dumpxml centos7 >/data/centos7-linkclone03.xml sed -ri "s|(<name>)(.*)(</name>)|\1centos7-linkclone03\3|g" /data/centos7-linkclone03.xml sed -i "/<uuid>/d" /data/centos7-linkclone03.xml sed -i "/<mac address/d" /data/centos7-linkclone03.xml sed -ri "s|(<source file=')(.*)('/>)|\1/data/centos7-linkclone03.qcow2\3|g" /data/centos7-linkclone03.xml
-
導(dǎo)入配置文件(導(dǎo)入虛擬機(jī))
virsh define /data/centos7-linkclone03.xml
-
啟動(dòng)測(cè)試
virsh start centos7-linkclone03
- 編寫鏈接克隆的腳本
#!/bin/bash
#Author:Wjz
#Email:1072002783@qq.com
#Blog:https://blog.csdn.net/weixin_51720652
#Time:2022-07-14 15:11:09
#Name:virsh-linkcolne.sh
#Description:create the linkclone kvm virtual machine
[ -f /etc/init.d/functions ] && source /etc/init.d/functions
# define vars
SOURCE_NAME=$1
LINKCLONE_NAME=$2
# judege the params nums
if [ $# -ne 2 ];then
echo "USAGE: $0 source-vm-name linkclone-vm-name"
exit 6
fi
# judge the source vm is exist?
RET_VAL1=`/usr/bin/virsh list --all|grep -w $SOURCE_NAME|wc -l`
if [ $RET_VAL1 -ne 1 ];then
action "source vm is not exist!" /bin/false
exit 1
fi
# get the absulate path about the source img
SOURCE_DISK=`/usr/bin/virsh dumpxml $SOURCE_NAME |grep "source file"|awk -F"'" '{print $2}'`
DISK_DIR=`dirname $SOURCE_DISK` #get the disk dirname
# create the virtual disk file of linkclone kvm virtual machine
/usr/bin/qemu-img create -f qcow2 -b $SOURCE_DISK ${DISK_DIR}/${LINKCLONE_NAME}.qcow2 &>/dev/null
if [ $? -ne 0 ];then
action "create the linkclone vm disk" /bin/false
exit 2
else
action "create the linkclone vm disk" /bin/true
fi
# generate the virtual machine configure file
/usr/bin/virsh dumpxml $SOURCE_NAME >/tmp/${LINKCLONE_NAME}.xml
if [ $? -ne 0 ];then
action "generate the linkclone vm configure file" /bin/false
exit 3
else
action "generate the linkclone vm configure file" /bin/true
fi
# modify the file
sed -ri "s|(<name>)(.*)(</name>)|\1${LINKCLONE_NAME}\3|g" /tmp/${LINKCLONE_NAME}.xml
sed -i '/<uuid>/d' /tmp/${LINKCLONE_NAME}.xml
sed -i '/<mac address/d' /tmp/${LINKCLONE_NAME}.xml
sed -ri "s|(<source file=')(.*)('/>)|\1${DISK_DIR}/${LINKCLONE_NAME}.qcow2\3|g" /tmp/${LINKCLONE_NAME}.xml
if [ $? -ne 0 ];then
action "edit the linkclone vm configure file" /bin/false
exit 4
else
action "edit the linkclone vm configure file" /bin/true
fi
# define the config file
/usr/bin/virsh define /tmp/${LINKCLONE_NAME}.xml &>/dev/null
/usr/bin/virsh start ${LINKCLONE_NAME} &>/dev/null
if [ $? -ne 0 ];then
action "start the linkclone vm" /bin/false
exit 5
else
action "start the linkclone vm" /bin/true
fi
exit 0
KVM網(wǎng)絡(luò)管理
橋接網(wǎng)絡(luò)
原理圖:
-
創(chuàng)建橋接網(wǎng)卡
virsh iface-bridge ens33 br0 # 創(chuàng)建橋接網(wǎng)卡,指定橋接的宿主機(jī)網(wǎng)卡是ens33,指定橋接后的名稱的br0 systemctl restart network # 橋接后重啟網(wǎng)絡(luò)服務(wù)(如果以上橋接網(wǎng)卡不生效) virsh iface-unbridge br0 # 取消橋接網(wǎng)卡
-
利用克隆磁盤文件創(chuàng)建橋接網(wǎng)絡(luò)類型VM
# 創(chuàng)建帶有系統(tǒng)的克隆磁盤文件 qemu-img create -f qcow2 -b /data/centos.qcow2 /data/centos-bridge.qcow2 # 創(chuàng)建橋接KVM virt-install --virt-type kvm --os-type=linux --os-variant rhel7 --name centos-bridge \ --memory 1024 --vcpus 1 --disk /data/centos-bridge.qcow2 --boot hd --network bridge=br0 \ --graphics vnc,listen=0.0.0.0 --noautoconsole
? --network bridge=br0 指定網(wǎng)絡(luò)為橋接類型并指定使用的橋接網(wǎng)卡是br0
-
查看VM網(wǎng)絡(luò)
-
利用VM配置文件修改網(wǎng)絡(luò)類型
# virsh edit xxx
<interface type='network'> # 將network 該為 bridge
<mac address='52:54:00:dc:40:13'/>
<source network='default'/> # 改為 <source bridge='br0'>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<interface type='bridge'>
<source bridge='br0'>
NAT網(wǎng)絡(luò)
原理圖:
- NAT模式是KVM默認(rèn)的網(wǎng)絡(luò)模式
查看默認(rèn)的iptables
[root@kvm-01 ~]# iptables -t nat -nL
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
RETURN all -- 192.168.122.0/24 224.0.0.0/24
RETURN all -- 192.168.122.0/24 255.255.255.255
MASQUERADE tcp -- 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535
MASQUERADE udp -- 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535
MASQUERADE all -- 192.168.122.0/24 !192.168.122.0/24
iptables發(fā)現(xiàn)nat模式配置了轉(zhuǎn)發(fā)規(guī)則
NAT模式和Bridge模式共存
原理圖:
在創(chuàng)建完了bridge網(wǎng)絡(luò)基礎(chǔ)上,需要添加內(nèi)核參數(shù),實(shí)現(xiàn)NAT模式的外網(wǎng)訪問
echo 'net.ipv4.ip_forward = 1' >>/etc/sysctl.conf
sysctl -p
KVM熱添加技術(shù)
熱添加硬盤
-
創(chuàng)建虛擬硬盤
qemu-img create -f qcow2 /data/centos-add.qcow2 5G
-
將虛擬硬盤附加到指定主機(jī)
virsh attach-disk centos7 --subdriver qcow2 /data/centos-add.qcow2 vdb # 臨時(shí)附加,立馬生效 virsh attach-disk centos7 --subdriver qcow2 /data/centos-add.qcow2 vdb --config # 永久附加,下一次開機(jī)生效
–subdriver qcow2 指定附加硬盤的格式
-
進(jìn)入KVM進(jìn)行分區(qū)、格式化、掛載、更新硬盤塊
-
進(jìn)入KVM查看硬盤添加情況
-
格式化硬盤(這里省略分區(qū))
mkfs.ext4 /dev/vdb # 將整個(gè)硬盤格式化為ext4類型
-
掛載,查看掛載情況
mkdir /data mount /dev/vdb /data df -h
-
更新塊
resize2fs /dev/vdb #(ext4格式) xfs_growfs /dev/vdb #(xfs格式)
-
以下步驟是對(duì)虛擬硬盤再次調(diào)整容量后的操作步驟,這里省略
-
進(jìn)入KVM進(jìn)行卸載因公安,進(jìn)入終端剝離硬盤
virsh detach-disk centos7 vdb # 臨時(shí)剝離,立即生效 virsh detach-disk centos7 vdb --config # 永久剝離,下一次開機(jī)生效
-
終端調(diào)整虛擬硬盤容量,重新附加硬盤
-
進(jìn)入KVM重新掛載并更新硬盤塊
熱添加網(wǎng)卡
virsh attach-interface centos7 --type bridge --source br0 --model virtio #臨時(shí)添加網(wǎng)卡,橋接模式
virsh attach-interface centos7 --type bridge --source br0 --model virtio --config # 永久添加網(wǎng)卡,橋接模式
virsh detach-interface centos7 --type bridge --mac 52:54:00:84:f0:b4 --config # 永久刪除網(wǎng)卡
- –type bridge 指定添加的網(wǎng)卡類型為bridge
- –source br0 指定要橋接的網(wǎng)橋是br0
- –mode virtio 指定VM要呈現(xiàn)的網(wǎng)絡(luò)設(shè)備模式/模型
- –config 永久生效
熱添加內(nèi)存
熱添加內(nèi)存默認(rèn)是不支持的,需要在創(chuàng)建KVM的時(shí)候指定特定的參數(shù)
–memory 1024,maxmemory=2048 指定最大內(nèi)存和最小內(nèi)存
- 創(chuàng)建可調(diào)整內(nèi)存大小的KVM
qemu-img create -f qcow2 -b /data/centos.qcow2 /data/centos-resize-mem.qcow2
virt-install --virt-type kvm --os-type=linux --os-variant rhel7 --name centos-resize-mem \
--memory 512,maxmemory=2048 --vcpus 1 --disk /data/centos-resize-mem.qcow2 --boot hd --network bridge=br0 \
--graphics vnc,listen=0.0.0.0 --noautoconsole
Starting install...
Domain creation completed.
[root@kvm-01 data]# virsh list --all
Id Name State
----------------------------------------------------
4 centos7-linkclone03 running
5 centos-bridge running
6 centos7 running
7 centos-resize-mem running
- 查看配置文件,檢查當(dāng)前內(nèi)存和最大內(nèi)存大小
[root@kvm-01 data]# virsh dumpxml centos-resize-mem |head -5|tail -2
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>524288</currentMemory>
- 調(diào)整內(nèi)存大小,查看配置文件,檢查調(diào)整內(nèi)存后的當(dāng)前內(nèi)存和最大內(nèi)存信息
virsh setmem centos-resize-mem 1024 # 臨時(shí)調(diào)整內(nèi)存大小
virsh setmem centos-resize-mem 1024 --config # 永久調(diào)整內(nèi)存大小(不能超過預(yù)設(shè)的最大值)
[root@kvm-01 data]# virsh dumpxml centos-resize-mem |head -5|tail -2
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>174932</currentMemory>
發(fā)現(xiàn)內(nèi)存有所變化.
熱添加CPU
默認(rèn)不支持,需要在創(chuàng)建KVM的時(shí)候指定特定的參數(shù)
–vcpus 1,maxvcpus=10 設(shè)置cpu的最小個(gè)數(shù)和最大個(gè)數(shù)文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-460111.html
- 創(chuàng)建可調(diào)整cpu數(shù)量的KVM
qemu-img create -f qcow2 -b /data/centos.qcow2 /data/centos-resize-vcpus.qcow2
virt-install --virt-type kvm --os-type=linux --os-variant rhel7 --name centos-resize-vcpus \
--memory 1024 --vcpus 1,maxvcpus=5 --disk /data/centos-resize-vcpus.qcow2 --boot hd --network bridge=br0 \
--graphics vnc,listen=0.0.0.0 --noautoconsole
Starting install...
Domain creation completed.
[root@kvm-01 data]# virsh list --all
Id Name State
----------------------------------------------------
4 centos7-linkclone03 running
5 centos-bridge running
6 centos7 running
8 centos-resize-mem running
9 centos-resize-vcpus running
- 查看配置文件,檢查當(dāng)前cpu
[root@kvm-01 data]# virsh dumpxml centos-resize-vcpus |head -6|tail -1
<vcpu placement='static' current='1'>5</vcpu>
發(fā)現(xiàn)當(dāng)前cpu的格式是1,最大數(shù)量是5文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-460111.html
- 調(diào)整cpu個(gè)數(shù),查看配置文件,檢查cpu信息
virsh setvcpus centos-resize-vcpus 3
virsh setvcpus centos-resize-vcpus 3 --config
[root@kvm-01 data]# virsh dumpxml centos-resize-vcpus |head -6|tail -1
<vcpu placement='static' current='3'>5</vcpu>
到了這里,關(guān)于CentOS7配置KVM的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!