我想用RHEL 6.4设置一些全新的服务器。 服务器没有DVD,所以我必须使用USB进行安装。 我已经有了一个kickstart文件的自定义ISO,我使用的服务器与DVD完美无瑕。 我用iso2usb来移动ISO到我的USB。
当我从USB启动,ks文件被发现,anaconda启动,但然后停止与以下错误:
“设备['sda1']给出的安装源找不到,请检查您的参数,然后重试”
笔记:
请帮助我使用kickstart自动安装。
编辑1:这是anaconda.log文件:
09:01:57,029 INFO : no /etc/zfcp.conf; not configuring zfcp 09:01:57,259 INFO : created new libuser.conf at /tmp/libuser.4rAbps with instPath="/mnt/sysimage" 09:01:57,259 INFO : anaconda called with cmdline = ['/usr/bin/anaconda', '--stage2', 'hd:sda1:///images/install.img', '--dlabel', '--kickstart', '/tmp/ks.cfg', '--graphical', '--selinux', '--lang', 'en_US.UTF-8', '--keymap', 'us', '--repo', 'hd:sda1:/'] 09:01:57,260 INFO : Display mode = g 09:01:57,260 INFO : Default encoding = utf-8 09:01:59,444 DEBUG : X server has signalled a successful start. 09:01:59,446 INFO : Starting window manager, pid 1345. 09:01:59,537 INFO : Starting graphical installation. 09:01:59,741 INFO : Detected 7968M of memory 09:01:59,741 INFO : Swap attempt of 7968M 09:02:00,840 INFO : ISCSID is /usr/sbin/iscsid 09:02:00,840 INFO : no initiator set
编辑2:这是anaconda日志的一部分,表明它find了USB等:
09:01:47,918 INFO : starting STEP_STAGE2 09:01:47,918 INFO : partition is sda1, dir is //images/install.img 09:01:47,918 INFO : mounting device sda1 for hard drive install 09:01:48,005 INFO : Path to stage2 image is /mnt/isodir///images/install.img 09:01:54,214 INFO : mounted loopback device /mnt/runtime on /dev/loop0 as /tmp/install.img 09:01:54,214 INFO : Looking for updates for HD in /mnt/isodir///images/updates.img 09:01:54,214 INFO : Looking for product for HD in /mnt/isodir///images/product.img 09:01:54,227 INFO : got stage2 at url hd:sda1:///images/install.img 09:01:54,254 INFO : Loading SELinux policy 09:01:54,700 INFO : getting ready to spawn shell now 09:01:54,975 INFO : Running anaconda script /usr/bin/anaconda 09:01:56,882 INFO : _Fedora is the highest priority installclass, using it 09:01:56,921 INFO : Running kickstart %%pre script(s) 09:01:56,922 WARNING : '/bin/sh' specified as full path 09:01:56,926 INFO : All kickstart %%pre script(s) have been run
检查你的ISO文件内容是否在根path中有.discinfo和.treeinfo。
我习惯在RHEL 6.3上面对这个问题,因为我自定义ISO并忘记在刻录ISO之前将这些文件复制到根path。
你可以切换到tty2并键入
list-harddrives
? 我只是想知道你是如何知道USB驱动器是SDA,因为有时设备名称会根据内核,驱动程序等被加载而改变。