Difference between revisions of "Archiso as pxe server"

From ArchWiki
Jump to: navigation, search
m (installing with -Sy can bring problems: https://bbs.archlinux.org/viewtopic.php?id=89328)
(Undo revision 142302 by Kynikos (talk) This is on live medium, you don't want to do this...)
Line 15: Line 15:
 
# '' route add default gw 192.168.0.1
 
# '' route add default gw 192.168.0.1
 
# '' echo nameserver 192.168.0.1 >> /etc/resolv.conf
 
# '' echo nameserver 192.168.0.1 >> /etc/resolv.conf
# '' pacman -Syu dnsmasq nbd
+
# '' pacman -Sy dnsmasq nbd
 
# '' wget http://aur.archlinux.org/packages/archiso-pxe-server/archiso-pxe-server.tar.gz
 
# '' wget http://aur.archlinux.org/packages/archiso-pxe-server/archiso-pxe-server.tar.gz
 
# '' bsdtar xf archiso-pxe-server.tar.gz
 
# '' bsdtar xf archiso-pxe-server.tar.gz
Line 23: Line 23:
  
 
=== Inside an installation ===
 
=== Inside an installation ===
# '' pacman -Syu dnsmasq nbd --needed
+
# '' pacman -Sy dnsmasq nbd --needed
 
# '' wget http://aur.archlinux.org/packages/archiso-pxe-server/archiso-pxe-server.tar.gz
 
# '' wget http://aur.archlinux.org/packages/archiso-pxe-server/archiso-pxe-server.tar.gz
 
# '' bsdtar xf archiso-pxe-server.tar.gz
 
# '' bsdtar xf archiso-pxe-server.tar.gz

Revision as of 15:52, 21 May 2011

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Archiso as pxe server#)

Merge-arrows-2.pngThis article or section is a candidate for merging with Install_Arch_from_network_(via_PXE).Merge-arrows-2.png

Notes: please use the second argument of the template to provide more detailed indications. (Discuss in Talk:Archiso as pxe server#)

Introduction

This small HOWTO will show you how to setup a live environment that can act as server for Arch Linux live media. Once you have done all these steps, Arch Linux live media is able to boot via PXE on your network.

Preparing your environment

There are two kinds of environment that let you host a PXE server for Arch Linux live media: An Arch Linux live environment running from a USB or CD and an already installed Arch Linux environment (though this will potentially work on any Linux distro).

Inside a live environment

  1. boot an Arch Linux live medium generated by archiso via USB or CD
  2. login as root
  3. ifconfig eth0 192.168.0.7
  4. route add default gw 192.168.0.1
  5. echo nameserver 192.168.0.1 >> /etc/resolv.conf
  6. pacman -Sy dnsmasq nbd
  7. wget http://aur.archlinux.org/packages/archiso-pxe-server/archiso-pxe-server.tar.gz
  8. bsdtar xf archiso-pxe-server.tar.gz
  9. cd archiso-pxe-server
  10. chmod +x archiso-pxe-server
  11. ./archiso-pxe-server (by default will get ip from eth0 and use the bootdevice)

Inside an installation

  1. pacman -Sy dnsmasq nbd --needed
  2. wget http://aur.archlinux.org/packages/archiso-pxe-server/archiso-pxe-server.tar.gz
  3. bsdtar xf archiso-pxe-server.tar.gz
  4. cd archiso-pxe-server
  5. chmod +x archiso-pxe-server
  6. ./archiso-pxe-server -s archlinux-2010.05-core-i686.iso
Note: Please report any trouble in the discussion page!

See also