在RHEL7.3上面搭建好了ApacheWeb服务,现在想把RHEL8.1系统镜像上传到ApacheWeb根目录,但由于RHEL8.1系统镜像的大小为7.31GB,已经超过4GB,通过rz无法上传。解决方法是把RHEL8.1系统镜像挂载到RHEL7.3系统上再制作一个新系统镜像,然后把新系统镜像移动到ApacheWeb根目录里面的系统镜像目录即可,也可以先到ApacheWeb根目录里的系统镜像目录再制作新系统镜像,这样就可以省去移动新系统镜像的步骤了。
环境
RedHatEnterpriseLinuxServerrelease7.3
VMwareWorkstationPro14
添加镜像
[root@Jaking~]#ifconfigens32:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu1500inet192.168.10.10netmask255.255.255.0broadcast192.168.10.255inet6fe80::20c:29ff:fe84:eae5prefixlen64scopeid0x20ether00:0c:29:84:ea:e5txqueuelen1000(Ethernet)RXpackets636bytes53068(51.8KiB)RXerrors0dropped0overruns0frame0TXpackets508bytes85327(83.3KiB)TXerrors0dropped0overruns0carrier0collisions0lo:flags=73<UP,LOOPBACK,RUNNING>mtu65536inet127.0.0.1netmask255.0.0.0inet6::1prefixlen128scopeid0x10looptxqueuelen1(LocalLoopback)RXpackets4bytes340(340.0B)RXerrors0dropped0overruns0frame0TXpackets4bytes340(340.0B)TXerrors0dropped0overruns0carrier0collisions0virbr0:flags=4099<UP,BROADCAST,MULTICAST>mtu1500inet192.168.122.1netmask255.255.255.0broadcast192.168.122.255ether52:54:00:25:a2:80txqueuelen1000(Ethernet)RXpackets0bytes0(0.0B)RXerrors0dropped0overruns0frame0TXpackets0bytes0(0.0B)TXerrors0dropped0overruns0carrier0collisions0[root@Jaking~]#df-hFilesystemSizeUsedAvailUse%Mountedon/dev/mapper/rhel-root48G4.9G41G11%/devtmpfs478M0478M0%/devtmpfs489M0489M0%/dev/shmtmpfs489M6.7M482M2%/runtmpfs489M0489M0%/sys/fs/cgroup/dev/sr03.6G3.6G0100%/media/cdrom/dev/sdd40G27G14G67%/download/dev/sda21014M145M870M15%/boot/dev/mapper/rhel-data10G33M10G1%/datatmpfs98M098M0%/run/user/0[root@Jaking~]#ls/dev/sr*/dev/sr0/dev/sr1#/dev/sr1为新添加的镜像
制作新系统镜像
切换到ApacheWeb根目录里的系统镜像目录
[root@Jaking~]#cd/download/系统镜像/[root@Jaking系统镜像]#lsCentOS-7.6-x86_64-DVD-1810.isorhel-server-7.3-x86_64-dvd.isoWindows7x64.isoLaoMaoTao.isoubuntu-18.04.1-desktop-amd64.isoWindowsSever2008.isorhel-server-6.5-x86_64-dvd.isoWindows2003SP2.iso[root@Jaking系统镜像]#ddif=/dev/sr1of=RHEL-8.1.iso15335424+0recordsin15335424+0recordsout7851737088bytes(7.9GB)copied,174.329s,45.0MB/s
通过Web界面查看新系统镜像
http://192.168.10.10/系统镜像/
下载镜像
用watchifstat实时查看网卡流量
总结
至此,镜像已经制作成功,下载后就能直接使用。