RHEL8 teaching environment virtual machine installed on VMware Workstation

When installing the Red Hat Enterprise Linux 8 teaching environment, students need to install the environment into a virtual machine to practice on their laptops. VMware Workstation is generally recommended to host the entire teaching environment.

Get ready:

1) mobile hard disk

2) USB disk above 16G

3) RHEL8 teaching environment software

Step 1: check whether the teaching environment software is complete

# yum install -y http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/python3-pyyaml-3.12-12.el8.i686.rpm

# ./rht-usb-8.x-7.r2019052915git14db55b verify RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf

Verifying manifest file RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf
  Publish date: 2019-05-29 15:41:50
  type        md5sum  artifact-name
  ----------- ------- -----------------------------------------------
  content     GOODSUM rhel-8.0-x86_64-dvd.iso
  content     GOODSUM foundation-config-8.x-7.r2019052915git14db55b.noarch.rpm
  content     GOODSUM foundation0-config-8.x-7.r2019052915git14db55b.noarch.rpm
  content     GOODSUM redhat-survey-7.x-58.0.noarch.rpm
  content     GOODSUM redhat-training-survey-7-59.4.noarch.rpm
  content     GOODSUM redhat-training-roster-7-59.1.noarch.rpm
  content     GOODSUM rhci-foundation-8.0-7.r2019052915gitc76cfec.iso
  content     GOODSUM rht-usb-8.x-7.r2019052915git14db55b
  content     GOODSUM rht-usb-7.x-6.r2019052915git14db55b
  content     GOODSUM ClassroomSetup-8.x-7.r2019052915git14db55b.txt
  content     GOODSUM ClassroomReset-8.x-7.r2019052915git14db55b.txt
  content     GOODSUM ClassroomTroubleshooting-8.x-7.r2019052915git14db55b.txt
  content     GOODSUM ClassPrep-8.x-7.r2019052915git14db55b.txt
=====================================================================
INFO     Manifest RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf passed.

INFO     Verification SUCCEEDED

Step 2: format USB disk
 

# lsblk

# umount /dev/sdc1

# cd /mnt/hd/rhel8

# ./rht-usb-8.x-7.r2019052915git14db55b usbmkpart /dev/sdc gpt
INFO     Configuration file: /root/.icrm/config.yml
INFO     Partitioning USB Device: /dev/sdc
Confirm gpt partitioning /dev/sdc (y/N) y
Wipe existing partitioning of /dev/sdc (y/N) y
INFO     /dev/sdc: zap partitions OK
INFO     /dev/sdc: wipe partitions OK
INFO     /dev/sdc: partitioning OK
INFO     /dev/sdc3: apparent RHTINST partition
INFO     Now run usbformat of /dev/sdc3
INFO     Appear to have properly partitioned USB device.

Check it and find that the above command divides my 64G USB disk into three areas, as follows:

sdc               8:32   1   60G  0 disk 
├─sdc1            8:33   1    1M  0 part 
├─sdc2            8:34   1  200M  0 part 
└─sdc3            8:35   1 59.8G  0 part 

Format the third partition.

# ./rht-usb-8.x-7.r2019052915git14db55b usbformat /dev/sdc3

INFO     Configuration file: /root/.icrm/config.yml
INFO     Formatting USB Partition: /dev/sdc3
Confirm reformatting /dev/sdc3 (y/N) y
INFO     mkfs.ext4 64-bit support
INFO     mkfs.ext4 no metadata_csum support
INFO     /dev/sdc3: format OK
INFO     Appear to have properly formatted USB device.

 

Step 3: copy Foundation virtual machine to USB disk

# ./rht-usb-8.x-7.r2019052915git14db55b usbadd RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf 

INFO     Configuration file: /root/.icrm/config.yml
INFO     Adding to USB: RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf
INFO     New files needed space is 7.2G out of 7.2G
INFO     Calculation finds we need: 7779043345 bytes (7.2G)
INFO     USB space Total: 59.8G  Used: 51.8M  Free: 56.7G
INFO     Copying manifest file: RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf (3.2K) to /tmp/tmpa2r6ijh6/manifests/RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf
INFO     Starting copy of RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf
INFO     Copying artifact: rhel-8.0-x86_64-dvd.iso
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/rhel-8.0-x86_64-dvd.iso (6.6G) to /tmp/tmpa2r6ijh6/rhel8.0/x86_64/isos/rhel-8.0-x86_64-dvd.iso
INFO     Copying artifact: foundation-config-8.x-7.r2019052915git14db55b.noarch.rpm
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/foundation-config-8.x-7.r2019052915git14db55b.noarch.rpm (37.8K) to /tmp/tmpa2r6ijh6/ucf/Packages/foundation-config-8.x-7.r2019052915git14db55b.noarch.rpm
INFO     Copying artifact: foundation0-config-8.x-7.r2019052915git14db55b.noarch.rpm
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/foundation0-config-8.x-7.r2019052915git14db55b.noarch.rpm (110.9K) to /tmp/tmpa2r6ijh6/ucf/Packages/foundation0-config-8.x-7.r2019052915git14db55b.noarch.rpm
INFO     Copying artifact: redhat-survey-7.x-58.0.noarch.rpm
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/redhat-survey-7.x-58.0.noarch.rpm (4.5K) to /tmp/tmpa2r6ijh6/rhtops/Packages/redhat-survey-7.x-58.0.noarch.rpm
INFO     Copying artifact: redhat-training-survey-7-59.4.noarch.rpm
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/redhat-training-survey-7-59.4.noarch.rpm (853.8K) to /tmp/tmpa2r6ijh6/ucf/Packages/redhat-training-survey-7-59.4.noarch.rpm
INFO     Copying artifact: redhat-training-roster-7-59.1.noarch.rpm
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/redhat-training-roster-7-59.1.noarch.rpm (906.0K) to /tmp/tmpa2r6ijh6/ucf/Packages/redhat-training-roster-7-59.1.noarch.rpm
INFO     Copying artifact: rhci-foundation-8.0-7.r2019052915gitc76cfec.iso
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/rhci-foundation-8.0-7.r2019052915gitc76cfec.iso (642.4M) to /tmp/tmpa2r6ijh6/boot/rhci-foundation-8.0-7.r2019052915gitc76cfec.iso
INFO     Extracting boot files: rhci-foundation-8.0-7.r2019052915gitc76cfec.iso
INFO     Copying /tmp/tmp35jicn2f/ (dir) to /tmp/tmpa2r6ijh6/boot (exists)
INFO     Copying artifact: rht-usb-8.x-7.r2019052915git14db55b
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/rht-usb-8.x-7.r2019052915git14db55b (154.8K) to /tmp/tmpa2r6ijh6/ks/rht-usb-8.x-7.r2019052915git14db55b
INFO     Copying artifact: rht-usb-7.x-6.r2019052915git14db55b
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/rht-usb-7.x-6.r2019052915git14db55b (154.8K) to /tmp/tmpa2r6ijh6/ks/rht-usb-7.x-6.r2019052915git14db55b
INFO     Copying artifact: ClassroomSetup-8.x-7.r2019052915git14db55b.txt
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/ClassroomSetup-8.x-7.r2019052915git14db55b.txt (48.1K) to /tmp/tmpa2r6ijh6/docs/ClassroomSetup-8.x-7.r2019052915git14db55b.txt
INFO     Copying artifact: ClassroomReset-8.x-7.r2019052915git14db55b.txt
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/ClassroomReset-8.x-7.r2019052915git14db55b.txt (20.5K) to /tmp/tmpa2r6ijh6/docs/ClassroomReset-8.x-7.r2019052915git14db55b.txt
INFO     Copying artifact: ClassroomTroubleshooting-8.x-7.r2019052915git14db55b.txt
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/ClassroomTroubleshooting-8.x-7.r2019052915git14db55b.txt (38.4K) to /tmp/tmpa2r6ijh6/docs/ClassroomTroubleshooting-8.x-7.r2019052915git14db55b.txt
INFO     Copying artifact: ClassPrep-8.x-7.r2019052915git14db55b.txt
INFO     Copying /mnt/hd/Redhat/rhce8/f0_rhel8/ClassPrep-8.x-7.r2019052915git14db55b.txt (31.2K) to /tmp/tmpa2r6ijh6/docs/ClassPrep-8.x-7.r2019052915git14db55b.txt
INFO     USBAdd completed.

Step 4: copy the contents of the course to the USB disk

 

Step 5: install a virtual machine with Foundation ISO

 

The sixth step:

Keywords: Operation & Maintenance RPM RHEL CentOS Red Hat

Added by roots on Wed, 13 Nov 2019 21:43:21 +0200