source: MondoRescue/branches/3.0/mindi/README.pxe

Last change on this file was 3173, checked in by Bruno Cornec, 8 years ago
  • Use 2 README files as embedded doc for restore boot, with function keys
  • Improve #628 by adding a comment in order to connect external disks after the boot.
  • Improve also boot menu visibility.
  • Property svn:keywords set to Id
File size: 4.9 KB
1MondoRescue supports image deployment using Pre eXecution Environment (PXE)
2Linux deployments with PXE is documented at
3Multiple parameters are available at restore time for PXE support:
5broadcast   Network broadcast to setup on the device (e.g.
6dhcp        The LAN interface is automatically setup from DHCP
7            (replaces ipaddr, netmask, broadcast, gateway)
8gateway     The default gateway to setup (e.g.
9hwaddr      MAC address of the device to use to restore through (optional)
10ipaddr      IP Address to setup on the device (e.g.
11ipdev       Device name (e.g. eth2)
12iproute     Additional static route (uses "route add" syntax with : separator)
13            (e.g. iproute="-net:
14mountpoint  Mount point on the Remote Network server to use
15            (if NFS, should be in /etc/exports of the NFS server)
16netfsmount  Server and mountpoint on which the ISO is available (optional)
17            (if SSHFS the server part can be of the form user@server)
18netfsopt    Contains options passed to the mount command (optional)
19netfspath   Local path on the remote server where image is located (optional)
20netmask     Netmask to setup on the device (e.g.
21proto       Protocol to use for mounting the remote share
22            (default is NFS, sshfs and smbfs are also available)
23ramdisk_size Size of the RAM disk where the initrd is exploded
24server      IP address of the Remote Network server
26To use it, on your deployment server, add the following line to your conf file:
27label mondo
28        kernel vmlinuz-mondo
29        append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 selinux=0 rw root=/dev/ram iso acpi=off apm=off devfs=nomount exec-shield=0 pxe [proto=nfs|sshfs|smbfs] [prefix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [hwaddr=M:A:C:A:D:R] [netfsmount=server:mountpoint] [netfsopt=-o option][netfspath=local_path] [ping=#] [iproute=-net:netdest:[netmask:Nm]gw:GW] ...
31The [] mean this parameter is optional
32The () mean that you have a choice with the '|' meaning 'or'
34The initrd and kernel file come from the first bootable media
35created by mondoarchive. To get them, please issue:
37# mount /path/to/mondorescue-1.iso /mnt/cdrom -o loop
38# cp -a /mnt/cdrom/vmlinuz /var/tftpboot/vmlinuz-mondo
39# cp -a /mnt/cdrom/initrd.img /var/tftpboot/initrd-mondo
40# umount /mnt/cdrom
42Thus the PXE ROM will boot mondo's kernel and mondo's initrd in memory and will append all the right configuration options (as you find in isolinux.cfg on the first bootable media) to which you need to add the keyword pxe.
43(You need to have backup your data using the NFS option of mondoarchive)
45If you used the -p option of mondoarchive, you may specify the real name of mondo images to use during restore. To do that use prefix=machine on the initrd line, after the pxe keyword, to load the ISO images saved with -p machine.
46Without prefix keyword, the name of the images used during archiving with the -p option will be used (they may differ). If -p wasn't used then the name mondorescue-1.iso, ... will be used.
48During boot mondorestore will start your NFS configuration and mount mondo's content from the network rather than from a physical media. You may alter the IP configuration stored from the original machine by passing the ipconf option describing respectively the IP address, netmask, broadcast and default gateway you want to setup for the machine, separated by ':'. Or alternatively, you may specify the dhcp keyword so that a DHCP request is made to get those information. In the 2 cases, you have to mention on which physical interface those parameters should apply. On some configurations, you may also want to increase the number of ping queries made before the NFS mount, which is of 3 by default, using the ping option and give the number you want. If you have a different NFS server for the deployment than for the archiving, you can also precise it through the netfsmount option. The structure on both server under the mountpoint has to be the same.
50CAVEAT: the limit to the number of char on the append line is 255. Use symlinks to reduce the size of your path if needed.
52NOTE: If you don't have selinux=0 on the boot line, you may have issues restoring extended attributes on your filesystem and thus be unable to log on at next reboot after restore.
54Please report any problem around that tool to
56$Id: README.pxe 3173 2013-07-29 07:08:58Z bruno $
582013-07-25 adds support for iproute
592011-10-09 adds support for hwaddr
602009-12-05 nfsopt added tp allow for custom options at mount time
612009-09-09 Changed to netfs for multi protocol support (nfs, sshfs, ...)
622009-05-07 nfspath added to allow redeployment from another NFS directory
632006-06-10 nfsmount added to allow redeployment from another NFS server
642006-06-02 ipdev added to allow redeployment on another interface
652005-12-18 new ipconf and ping option
662005-12-14 detailed explanations on where to find initrd and kernel
Note: See TracBrowser for help on using the repository browser.