一、官方下载rhel7.3的镜像

安装rhel7.3虚拟机

封装rhel7.3虚拟机

二、配置网路

封装rhel7.3虚拟机

三、配置yum源

封装rhel7.3虚拟机

四、安装常用的软件和

封装rhel7.3虚拟机

五、关闭火墙开机不启动,关闭selinux,关闭NetworkManager

NetworkManager disable stop

封装rhel7.3虚拟机

fireword       stop   disable

封装rhel7.3虚拟机
selinux        disable

封装rhel7.3虚拟机

六、将网卡改为eth0,该操作结束后要重新启动生效

编辑vim /boot/grub2/grub.cfg
  在LANG=en_US.UTF-8  后写入 net.ifnames=0

封装rhel7.3虚拟机

七、修改主机名,添加本地解析

封装rhel7.3虚拟机

封装rhel7.3虚拟机

封装rhel7.3虚拟机

关闭虚拟机

八、物理机安装libguestfs-tools并清除rhel7.3的虚拟机缓存

封装rhel7.3虚拟机

virt-sysprep -d rhel7.3   (-d 后面的虚拟名名字是安装虚拟机时给虚拟机起的名字)

封装rhel7.3虚拟机
这样虚拟机封装完成......

相关文章:

  • 2022-01-13
  • 2021-08-24
  • 2021-11-19
  • 2021-10-24
猜你喜欢
  • 2021-04-15
  • 2021-11-13
  • 2021-11-11
  • 2022-01-02
  • 2021-06-16
相关资源
相似解决方案