怎样使用kickstart创建逻辑卷管理(LVM)分区
解决方法:
在ks.cfg文件的’Disk Partition Information’下添加以下选项,使用kickstart创建逻辑卷管理(LVM)分区:
#Disk partitioning information
part pv.
volgroup
注意: 上面提到的选项是有先后顺序的。物理卷将先被创建,然后是卷组和逻辑卷。
一个例子: 创建两个物理分区分别给Boot和Swap分区,剩余的空间作LVM。
继续阅读 »
解决方法:
在ks.cfg文件的’Disk Partition Information’下添加以下选项,使用kickstart创建逻辑卷管理(LVM)分区:
#Disk partitioning information
part pv.
volgroup
注意: 上面提到的选项是有先后顺序的。物理卷将先被创建,然后是卷组和逻辑卷。
一个例子: 创建两个物理分区分别给Boot和Swap分区,剩余的空间作LVM。
继续阅读 »
1,安装dhcp:
1 | $sudo apt-get install dhcp3-server |
2,添加pxe配置到dhcpd.conf
next-server 172.28.1.103;
filename “pxelinux.0″;
3,安装tftp服务
1 | $ sudo apt-get install tftpd-hpa tftp-hpa |
4,配置tftp
1 2 3 4 | $ sudo nano /etc/default/tftpd-hpa # /etc/default/tftpd-hpa RUN_DAEMON="yes" OPTIONS="-l -s /home/pxetero/" |
首先安装需要的几个软件包
sudo apt-get install tftpd-hpa dhcp3-server portmap nfs-kernel-server
还有apache
安装完后tftpd服务自动启动,这个不用管,但是dhcpd出现错误,不知道怎么回事。不用管安,配置一下dhcp
vi /etc/dhcp3/dhcp.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option domain-name-servers 202.102.128.68, 202.102.134.68;
option domain-name “tm.net.my”;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
filename “pxelinux.0″;
}
现在启动dhcpd
sudo /etc/init.d/dhcp3-server restart
继续阅读 »
Linux kernel hacking and test running on the same machine becomes a major pain. This tutorial explains how to separate the two easily for a quick code-and-test loop. This tutorial explains how to setup a Linux thin client that boots using PXE by pulling a remote Linux kernel image and mounting a remote root file system over NFS. This is only possible if your client machine has a network card that supports this (do you remember seeing some type of option like press N to boot from network just after posting?). I am using Fedora Core 5 as my server, so some of the details may be specific to FC.
Most of the details of setting up the PXE boot server were found at Setting up a PXE-Boot Server.
1) yum install tftp-server dhcp
Make sure you have an NFS server.
2) create /etc/dhcpd.conf
继续阅读 »
PXELINUX is a SYSLINUX derivative, for booting Linux off a network server, using a network ROM conforming to the Intel PXE (Pre-Execution Environment) specification. PXELINUX is not a program that is intended to be flashed or burned into a PROM on the network card; if you want that, check out Etherboot ( http://www.etherboot.org/).
If you want to create PXE-compliant boot PROM for your network card (to use with PXELINUX, for example), check out NetBoot (http://netboot.sourceforge.net/).
PXELINUX operates in many ways like SYSLINUX. If you are not familiar with SYSLINUX, read the SYSLINUX FAQ first, since this documentation only explains the differences.
This documents how to setup a PXE boot server for Linux. This assumes that you’re using Redhat/FC as the PXE boot server. The vast majority of the information has been obtained from the following webpages:
http://dev.brantleyonline.com/wiki/index.php/General_Network_%28PXE%29_Booting
http://dev.brantleyonline.com/wiki/index.php/PXE_Booting_-_Fedora_Core
0) The first thing to note is that you need to setup your own mini-network that is completely disconnected from the network, since part of this process requires setting up a DHCP server which could conflict with the corporate DHCP server if they were both running on the same network simultaneously. So get yourself a switch from IT up front. You do *NOT* need the switch immediately, so just put it aside until I mention it again
later on.
1) The next step is to choose a box to be the PXE boot server. This can really be any box at all, as long as you have a NIC in it that works reliably under Linux. For the purposes of this documentation, I’m going to assume that you’ve loaded Fedora Core 4 on this box (do that now, if you’ve not already). Get this box onto the network with DHCP (just like a normal installation).
继续阅读 »