存档

2011年11月 的存档

ubuntu编译xen报缺少iasl的处理

2011年11月24日 评论已被关闭

解决办法是先编译好iasl,copy到$PATH中。

wget http://acpica.org/download/acpica-unix-20110922.tar.gz
tar zxvf acpica-unix-20110922.tar.gz
cd acpica-unix-20110922/compiler
make
cp iasl /usr/bin

接下来可以顺利的编译通过xen了。
wget http://bits.xensource.com/oss-xen/release/4.1.2/xen-4.1.2.tar.gz
$ tar zxvf xen-4.1.2.tar.gz
$ cd xen-4.1.2/
make dist-xen dist-tools dist-stubdom
make install-xen
make install-tools PYTHON_PREFIX_ARG=”–install-layout=deb”
make install-stubdom

分类: ubuntu 标签: ,

BUG of kickstart config file of Ubuntu

2011年11月24日 评论已被关闭

利用RHEL的kickstart安装ubuntu,通过已有的一台ubuntu的kickstart工具生成了cfg文件,结果中看不中用,clearpart不起作用,无法完全的无人值守安装,因为无法自动删除raid和lvm,所以安装的时候只好把设定好的raid及分区部分注释掉,然后通过文本安装页面进行配置。
另外openssh-server也木有安装好,只能通过console手工安装。

cat ubuntu_ks.cfg
#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T

#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone –utc America/New_York
#Root password
rootpw –iscrypted $1$dIx6XYId$Grao2hlnjSQCXCbmdShWW1
#Initial user
user fisher –fullname “2hei” –iscrypted –password $1$yFK9gVs1$L9RHTs7B6oClIC4fonT.s/
#Reboot after installation
reboot
#Use text mode install
#text
graphical
#Install OS instead of upgrade
install
#Use Web installation
url –url http://2hei.net/install/ubuntu/9.10/
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart –all –initlabel
bootloader –location=mbr

#Disk partitioning information
#part raid.11 –size 20480 –asprimary –ondisk sda
#part raid.12 –size 100 –asprimary –ondisk sda
#part raid.13 –size 8192 –ondisk sda
#part raid.14 –size 1 –grow –ondisk sda
#part raid.21 –size 20480 –asprimary –ondisk sdb
#part raid.22 –size 100 –asprimary –ondisk sdb
#part raid.23 –size 8192 –ondisk sdb
#part raid.24 –size 1 –grow –ondisk sdb
#raid / –level=1 –device=md1 raid.11 raid.21
#raid /boot –level=1 –device=md0 raid.12 raid.22
#raid swap –level=1 –device=md2 raid.13 raid.23
#raid  –level=1 –device=md3 raid.14 raid.24
#System authorization infomation
auth  –useshadow  –enablemd5
#Network information
network –bootproto=static –ip=192.168.100.2 –netmask=255.255.255.0 –gateway=192.168.100.1 –nameserver=192.168.100.1 –device=eth0
#Firewall configuration
firewall –disabled –http –ssh
#X Window System configuration information
xconfig –depth=32 –resolution=800×600 –defaultdesktop=GNOME –startxonboot
%packages
@Ubuntu-desktop
openssh-server

分类: OpenSource 标签: ,