botang 发表于 2019-8-8 21:33:25

课程第14次

如果INSTRUCTOR虚拟机不能正常进入急救模式:
在INSTRUCTOR上
vim /var/lib/tftpboot/pxelinux.cfg/default#default vesamenu.c32
#prompt 1
timeout 600
default rescue
#display boot.msg


label ws
menu label Install GLS workstation
kernel vmlinuz
append ksdevice load_ramdisk=1 initrd=initrd.img network ks=http://192.168.0.254/workstation.cfg noipv6

label rescue
menu label Install GLS workstation
kernel vmlinuz
append ksdevice load_ramdisk=1 initrd=initrd.img network ks=http://192.168.0.254/workstation-rescue.cfg noipv6 rescue

# pwd
/var/www/html# cp workstation.cfgworkstation-rescue.cfg改workstation-rescue.fg:
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
url --url="http://192.168.0.254/pub/rhel7/dvd/"
# Use CDROM installation media
# Use graphical install
text
# Run the Setup Agent on first boot
firstboot --disable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8

# Network information
network--bootproto=dhcp

# Root password
rootpw --plaintext redhat123
# System services
services --enabled="chronyd,sshd"
# System timezone
timezone Asia/Shanghai --isUtc
# X Window System configuration information
xconfig--startxonboot
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda rescue
# Partition clearing information
clearpart --all--initlabel
# Disk partitioning information





页: [1]
查看完整版本: 课程第14次