Bo's Oracle Station

查看: 1502|回复: 0

课程第14次

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2019-8-8 21:33:25 | 显示全部楼层 |阅读模式
如果INSTRUCTOR虚拟机不能正常进入急救模式:
在INSTRUCTOR上
  1. vim /var/lib/tftpboot/pxelinux.cfg/default
复制代码
  1. #default vesamenu.c32
  2. #prompt 1
  3. timeout 600
  4. default rescue
  5. #display boot.msg


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

  10. label rescue
  11.   menu label Install GLS workstation
  12.   kernel vmlinuz
  13.   append ksdevice load_ramdisk=1 initrd=initrd.img network ks=http://192.168.0.254/workstation-rescue.cfg noipv6 rescue
复制代码

  1. [root@instructor html]# pwd
  2. /var/www/html
复制代码
  1. [root@instructor html]# cp workstation.cfg  workstation-rescue.cfg
复制代码
改workstation-rescue.fg:
  1. #version=DEVEL
  2. # System authorization information
  3. auth --enableshadow --passalgo=sha512
  4. url --url="http://192.168.0.254/pub/rhel7/dvd/"
  5. # Use CDROM installation media
  6. # Use graphical install
  7. text
  8. # Run the Setup Agent on first boot
  9. firstboot --disable
  10. ignoredisk --only-use=sda
  11. # Keyboard layouts
  12. keyboard --vckeymap=us --xlayouts='us'
  13. # System language
  14. lang en_US.UTF-8

  15. # Network information
  16. network  --bootproto=dhcp

  17. # Root password
  18. rootpw --plaintext redhat123
  19. # System services
  20. services --enabled="chronyd,sshd"
  21. # System timezone
  22. timezone Asia/Shanghai --isUtc
  23. # X Window System configuration information
  24. xconfig  --startxonboot
  25. # System bootloader configuration
  26. bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda rescue
  27. # Partition clearing information
  28. clearpart --all  --initlabel
  29. # Disk partitioning information
复制代码





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-9 14:31 , Processed in 0.042292 second(s), 24 queries .

快速回复 返回顶部 返回列表