做一个优秀的虚拟机母盘,保持不动,镜像即可
先改变eth0网络
vi /boot/grub2/grub.cfg
reboot
vi /etc/sysconfig/network-scripts/ifcfg-eth0 配置网络
systemctl stop/disable NetworkManager
vim /etc/yum.repos.d/yum.repo 配置网络yum源
yum install vim lftp net-tools
systemctl stop/disable firewalld
hostnamectl set-hostname server1
设置完毕关闭母盘清除缓存
cd /var/lib/libvirt/images/
yum upgrade libguestfs-tools
yum wahtprovides */virt-stsprep
virt-sysprep -d wjj-rhce
qemu-img create -f qcow2 -b wjj-rhce.qcow2 wjj-rhce2 #虚拟机快照
来源:CSDN
作者:YiSean96
链接:https://blog.csdn.net/YiSean96/article/details/104398907