<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Pxe on EvBackup</title>
    <link>https://forzw.com/tags/pxe/</link>
    <description>Recent content in Pxe on EvBackup</description>
    <image>
      <title>EvBackup</title>
      <url>https://forzw.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://forzw.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 18 Sep 2012 08:12:17 +0000</lastBuildDate>
    <atom:link href="https://forzw.com/tags/pxe/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>VitrualBox支持PXE启动</title>
      <link>https://forzw.com/archives/677/</link>
      <pubDate>Tue, 18 Sep 2012 08:12:17 +0000</pubDate>
      <guid>https://forzw.com/archives/677/</guid>
      <description>&lt;p&gt;默认情况下VirtualBox下载安装后是不支持PXE启动的，启动的时候是会报下面错误：&lt;/p&gt;
&lt;p&gt;“FATAL:No bootable medium found!System halted.”&lt;/p&gt;
&lt;p&gt;这是因为缺少pxe扩展包所导致，通过下面这个地址下载扩展包，windows环境中可以通过双机形式安装。&lt;/p&gt;
&lt;p&gt;下载地址：http://download.virtualbox.org/virtualbox/4.1.22/Oracle_VM_VirtualBox_Extension_Pack-4.1.22-80657.vbox-extpack&lt;/p&gt;</description>
    </item>
    <item>
      <title>怎样使用kickstart创建逻辑卷管理（LVM）分区</title>
      <link>https://forzw.com/archives/633/</link>
      <pubDate>Wed, 31 Aug 2011 08:20:53 +0000</pubDate>
      <guid>https://forzw.com/archives/633/</guid>
      <description>&lt;p&gt;解决方法: 在ks.cfg文件的&amp;rsquo;Disk Partition Information&amp;rsquo;下添加以下选项，使用kickstart创建逻辑卷管理（LVM）分区：&lt;/p&gt;
&lt;p&gt;#Disk partitioning information part pv. volgroup logvol --vgname= &amp;ndash;size= &amp;ndash;name= 注意： 上面提到的选项是有先后顺序的。物理卷将先被创建，然后是卷组和逻辑卷。&lt;/p&gt;
&lt;p&gt;一个例子： 创建两个物理分区分别给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文件：&lt;/p&gt;
&lt;p&gt;#Disk partitioning information part /boot &amp;ndash;fstype ext3 &amp;ndash;size=150 part swap &amp;ndash;size=1024 part pv.01 &amp;ndash;size=1 &amp;ndash;grow volgroup vg_root pv.01 logvol / &amp;ndash;vgname=vg_root &amp;ndash;size=8192 &amp;ndash;name=lv_root logvol /var &amp;ndash;vgname=vg_root &amp;ndash;size=4096 &amp;ndash;name=lv_var logvol /tmp &amp;ndash;vgname=vg_root &amp;ndash;size=2048 &amp;ndash;name=lv_tmp logvol /spare &amp;ndash;vgname=vg_root &amp;ndash;size=1 &amp;ndash;grow &amp;ndash;name=lv_spare&lt;/p&gt;</description>
    </item>
    <item>
      <title>PXE Network Booting on Ubuntu Linux</title>
      <link>https://forzw.com/archives/497/</link>
      <pubDate>Fri, 09 Jul 2010 03:55:20 +0000</pubDate>
      <guid>https://forzw.com/archives/497/</guid>
      <description>&lt;p&gt;1,安装dhcp：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$sudo apt-get install dhcp3-server
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2,添加pxe配置到dhcpd.conf next-server 172.28.1.103; filename &amp;ldquo;pxelinux.0&amp;rdquo;;&lt;/p&gt;
&lt;p&gt;3,安装tftp服务&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; $ sudo apt-get install tftpd-hpa tftp-hpa
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;4,配置tftp&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; $ sudo nano /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa
RUN_DAEMON=&amp;#34;yes&amp;#34;
OPTIONS=&amp;#34;-l -s /home/pxetero/&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;5,添加tftp用户&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo adduser pxetero
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;允许正常用户访问 /home/pxetero/目录，并允许这个组 tkarvine.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; $ whoami 
 tkarvine
 $ sudo chown pxetero.tkarvine /home/pxetero/
 $ sudo chmod g+rwx /home/pxetero
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;6,下载所需要的文件&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; $ 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/
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;7,启动tftp、dhcp并测试&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; $ sudo /etc/init.d/tftpd-hpa start
 $ cd
 $ tftp localhost -c get pxelinux.0
 $ ls pxeli*
 pxelinux.0
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;这样tftp就是工作正常了，然后启动dhcp&lt;/p&gt;</description>
    </item>
    <item>
      <title>ubuntu10.04做PXE安装服务器</title>
      <link>https://forzw.com/archives/495/</link>
      <pubDate>Wed, 07 Jul 2010 02:34:46 +0000</pubDate>
      <guid>https://forzw.com/archives/495/</guid>
      <description>&lt;p&gt;首先安装需要的几个软件包 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 &amp;ldquo;tm.net.my&amp;rdquo;; option routers 192.168.1.1; option broadcast-address 192.168.1.255; default-lease-time 600; max-lease-time 7200; filename &amp;ldquo;pxelinux.0&amp;rdquo;; } 现在启动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&lt;/p&gt;
&lt;p&gt;ubuntu是要用http的 mkdir /var/www/ubuntu sudo mount -o loop ubuntu-10.04-alternate-i386.iso /var/www/ubuntu 在安装过程中会要求选择服务器，选最上面的手动输入，服务器填你的IP，目录就不用改了。这里你也可以同步官方服务器的这个目录，这样安装完成就不用再升级了&lt;/p&gt;
&lt;p&gt;把光盘中的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&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linux NFS Root and PXE-Boot</title>
      <link>https://forzw.com/archives/415/</link>
      <pubDate>Mon, 25 Jan 2010 02:59:46 +0000</pubDate>
      <guid>https://forzw.com/archives/415/</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
    </item>
    <item>
      <title>PXELINUX</title>
      <link>https://forzw.com/archives/414/</link>
      <pubDate>Mon, 25 Jan 2010 02:56:59 +0000</pubDate>
      <guid>https://forzw.com/archives/414/</guid>
      <description>&lt;h2 id=&#34;what-is-pxelinux&#34;&gt;What is PXELINUX?&lt;/h2&gt;
&lt;p&gt;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 ( &lt;a href=&#34;http://www.etherboot.org/&#34; title=&#34;http://www.etherboot.org/&#34;&gt;http://www.etherboot.org/&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;If you want to create PXE-compliant boot PROM for your network card (to use with PXELINUX, for example), check out NetBoot (&lt;a href=&#34;http://netboot.sourceforge.net/&#34; title=&#34;http://netboot.sourceforge.net/&#34;&gt;http://netboot.sourceforge.net/&lt;/a&gt;).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setting up a PXE-Boot Server</title>
      <link>https://forzw.com/archives/413/</link>
      <pubDate>Mon, 25 Jan 2010 02:53:16 +0000</pubDate>
      <guid>https://forzw.com/archives/413/</guid>
      <description>&lt;p&gt;This documents how to setup a PXE boot server for Linux. This assumes that you&amp;rsquo;re using Redhat/FC as the PXE boot server. The vast majority of the information has been obtained from the following webpages:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://dev.brantleyonline.com/wiki/index.php/General&#34;&gt;http://dev.brantleyonline.com/wiki/index.php/General&lt;/a&gt;_Network_%28PXE%29_Booting &lt;a href=&#34;http://dev.brantleyonline.com/wiki/index.php/PXE&#34;&gt;http://dev.brantleyonline.com/wiki/index.php/PXE&lt;/a&gt;_Booting_-_Fedora_Core&lt;/p&gt;
&lt;ol start=&#34;0&#34;&gt;
&lt;li&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;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&amp;rsquo;m going to assume that you&amp;rsquo;ve loaded Fedora Core 4 on this box (do that now, if you&amp;rsquo;ve not already). Get this box onto the network with DHCP (just like a normal installation).  2) Next you&amp;rsquo;ll need to install the following packages (which ship with FC4 already, so if you did an &amp;rsquo;everything&amp;rsquo; OS install, you should have them already. If not, you can install them easily with yum): tftp-server dhcp httpd syslinux&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
  </channel>
</rss>
