VitrualBox支持PXE启动

默认情况下VirtualBox下载安装后是不支持PXE启动的,启动的时候是会报下面错误: “FATAL:No bootable medium found!System halted.” 这是因为缺少pxe扩展包所导致,通过下面这个地址下载扩展包,windows环境中可以通过双机形式安装。 下载地址:http://download.virtualbox.org/virtualbox/4.1.22/Oracle_VM_VirtualBox_Extension_Pack-4.1.22-80657.vbox-extpack

2012-09-18 · 1 min · 8 words · kevin

怎样使用kickstart创建逻辑卷管理(LVM)分区

解决方法: 在ks.cfg文件的’Disk Partition Information’下添加以下选项,使用kickstart创建逻辑卷管理(LVM)分区: #Disk partitioning information part pv. volgroup logvol --vgname= –size= –name= 注意: 上面提到的选项是有先后顺序的。物理卷将先被创建,然后是卷组和逻辑卷。 一个例子: 创建两个物理分区分别给Boot和Swap分区,剩余的空间作LVM。 Partition Size Name /boot 150MB /boot swap 1GB swap / 8GB lv_root /var 4GB lv_var /tmp 2GB lv_tmp /spare remaining space lv_spare 解决办法: 按照上面的需求,将以下己行加入到ks.cfg文件: #Disk partitioning information part /boot –fstype ext3 –size=150 part swap –size=1024 part pv.01 –size=1 –grow volgroup vg_root pv.01 logvol / –vgname=vg_root –size=8192 –name=lv_root logvol /var –vgname=vg_root –size=4096 –name=lv_var logvol /tmp –vgname=vg_root –size=2048 –name=lv_tmp logvol /spare –vgname=vg_root –size=1 –grow –name=lv_spare ...

2011-08-31 · 1 min · 82 words · kevin

PXE Network Booting on Ubuntu Linux

1,安装dhcp: $sudo apt-get install dhcp3-server 2,添加pxe配置到dhcpd.conf next-server 172.28.1.103; filename “pxelinux.0”; 3,安装tftp服务 $ sudo apt-get install tftpd-hpa tftp-hpa 4,配置tftp $ sudo nano /etc/default/tftpd-hpa # /etc/default/tftpd-hpa RUN_DAEMON="yes" OPTIONS="-l -s /home/pxetero/" 5,添加tftp用户 $ sudo adduser pxetero 允许正常用户访问 /home/pxetero/目录,并允许这个组 tkarvine. $ whoami tkarvine $ sudo chown pxetero.tkarvine /home/pxetero/ $ sudo chmod g+rwx /home/pxetero 6,下载所需要的文件 $ cd /home/pxetero $ wget -np -r http://archive.ubuntu.com/ubuntu/dists/breezy/main/installer-i386/current/images/netboot/ $ mv archive.ubuntu.com/ubuntu/dists/breezy/main/installer-i386/current/images/netboot/* . $ rm -rf archive.ubuntu.com/ 7,启动tftp、dhcp并测试 $ sudo /etc/init.d/tftpd-hpa start $ cd $ tftp localhost -c get pxelinux.0 $ ls pxeli* pxelinux.0 这样tftp就是工作正常了,然后启动dhcp ...

2010-07-09 · 2 min · 343 words · kevin

ubuntu10.04做PXE安装服务器

首先安装需要的几个软件包 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 然后再配置nfs(这是其它linux用到的,ubuntu只有netboot方式) vi /etc/exports /mnt/iso 192.168.1.0/24(ro,sync) 其中/mnt/iso是我挂载光盘镜像的目录 启动nfs服务 sudo /etc/init.d/nfs-kernel-server restart ubuntu是要用http的 mkdir /var/www/ubuntu sudo mount -o loop ubuntu-10.04-alternate-i386.iso /var/www/ubuntu 在安装过程中会要求选择服务器,选最上面的手动输入,服务器填你的IP,目录就不用改了。这里你也可以同步官方服务器的这个目录,这样安装完成就不用再升级了 把光盘中的netboot目录中的所有都拷到/var/lib/tftpboot/中 sudo cp /mnt/iso/install/netboot/* /var/lib/tftpboot/ 修改默认的配置文件 sudo vi /var/lib/tftpboot/pxelinux.cfg/default 把其中的 LABEL install kernel linux append vga=normal initrd=initrd.gz 改为 LABEL install kernel linux append vga=normal initrd=initrd.gz ...

2010-07-07 · 1 min · 94 words · kevin

Linux NFS Root and PXE-Boot

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. ...

2010-01-25 · 3 min · 493 words · kevin

PXELINUX

What is PXELINUX? 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/). ...

2010-01-25 · 15 min · 3174 words · kevin

Setting up a PXE-Boot Server

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 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. 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). 2) Next you’ll need to install the following packages (which ship with FC4 already, so if you did an ’everything’ OS install, you should have them already. If not, you can install them easily with yum): tftp-server dhcp httpd syslinux ...

2010-01-25 · 6 min · 1090 words · kevin