Ready to work
1. A clean operating system image, the official download is recommended.
2. A linux host, you need to install mkisofs
3. Kickstarts file
encapsulated disc
1. Copy the file
1
2
3
4
5
6
|
cd
iso文件所在目录
mount
-
o
loop
.
/
CentOS
-
6.5
-
x86_64
-
bin
-
DVD1
.
iso
/
mnt
/
##挂载镜像文件
mkdir
/
var
/
iso
##创建新系统的文件目录
cd
/
mnt
##进入光盘挂载目录
cp
-
a
.
/
var
/
iso
/
cd
/
var
/
iso
|
2. Modify the file
Operate in the /var/iso/ directory.
1
|
vi
isolinux
/
isolinux
.
cfg
|
Add label linux above the line.
1
2
3
4
5
|
label
custom
menu
label
^
custom
CentOS
6.5
menu
default
kernel
vmlinuz
append
ks
=
cdrom
:
/
isolinux
/
ks
.
cfg
initrd
=
initrd
.
img
biosdevname
=
0
|
Copy the prepared ks.cfg to the isolinux/ directory
1
|
cp
/
root
/
ks
.
cfg
isolinux
/
ks
.
cfg
|
3. Package the CD
1
|
mkisofs
-
o
.
.
/
CentOS
-
6.5
-
x86_64_release1
.
0.iso
-
b
isolinux
/
isolinux
.
bin
-
c
isolinux
/
boot
.
cat
-
no
-
emul
-
|