|
如果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
复制代码
- [root@instructor html]# pwd
- /var/www/html
复制代码- [root@instructor html]# cp workstation.cfg workstation-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
复制代码
|
|