我正在尝试使用此方法安装Centos 5.5 xen domU: http ://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU
它build议由本地apache服务的kickstartconfiguration文件。 我设法将它安装在物理机器上,但是当我尝试在virtualbox实例(最新virtualbox上的dom0)上安装anaconda时,出现以下错误:
Running anaconda, the CentOS system installer - please wait... Traceback (most recent call last): File "/usr/bin/anaconda", line 733, in ? vncksdata = setVNCFromKickstart(opts) File "/usr/bin/anaconda", line 277, in setVNCFromKickstart ksparser.readKickstart(opts.ksfile) File "/usr/lib/python2.4/site-packages/pykickstart/parser.py", line 1209, in readKickstart self.handleCommand(lineno, args) File "/usr/lib/python2.4/site-packages/pykickstart/parser.py", line 1069, in handleCommand raise KickstartParseError, formatErrorMsg(lineno, msg=_("Unknown command: %s" % cmd)) pykickstart.parser.KickstartParseError: The following problem occurred on line 1 of the kickstart file: Unknown command: <!DOCTYPE install exited abnormally [1/1]
一个互动的安装工程,我设法得到一个functionxen虚拟机,kickstart文件可通过链接下载,我有Selinux禁用。 我很确定kickstart文件的语法,有任何提示吗?
你的本地Apache服务不正确的文件,我认为这是服务的HTML文件,而不是kickstart文件。
Unknown command: <!DOCTYPE
这听起来像是你的kickstart文件在开始时包含一个DOCTYPE声明,或者你的Apache服务器在将内容发送回请求时添加它。
kickstart文件本身应该以text / plain的forms返回。 我通常用PHP写我的kickstart文件,所以我可以dynamic地改变里面的值,但是我用下面的标题行开始文件:
<? header('Content-type: text/plain'); ?>
这可以确保在Apache尝试确定MIMEtypes的情况下,无论文件扩展名是否正确返回文件。
我还将在我的kickstart目录中添加以下的Apache Directory块:
<Directory "/path/to/ks/"> Options +MultiViews -Indexes </Directory>
然后我用.php扩展名命名我的kickstart文件,例如base-centos55.ks.php ,然后在我的PXE启动configuration中追加ks=http://xxx.xxx.xxx.xxx/path/to/ks/base-centos55.ks来加载文件。 MultiViews选项允许您closures扩展,让Apache从哪些文件可用。
请注意,如果您的kickstart文件不能位于ks=参数中,则会显示相同的错误。 例如,我一直在尝试使用位于configuration了apache和安装程序的虚拟服务器上的kickstart文件,正确的是,无法parsing我的虚拟网站。 (使用可parsing的,实际的知识产权帮助)