Booting Kaspersky Rescue Disk from the PXE network

If you cannot use a bootable USB drive or DVD, you can boot from the Kaspersky Rescue Disk from the PXE (Preboot Execution Environment) network.

You must use a wired Ethernet network to boot Kaspersky Rescue Disk.

Booting Kaspersky Rescue Disk from the PXE network involves the following steps:

  1. Creating a directory for the application on the server, for example, /pxeboot/krd.
  2. Copying the krd.iso image to the /pxeboot/krd directory.

    To boot over HTTP/TFTP, you need at least 2.5 GB of RAM.

  3. Unpacking the krd.iso image to the /pxeboot/krd directory.
  4. Configuring DHCP and TFTP servers.

    Example configuration of DHCP and TFTP servers using dnsmasq in the /etc/dnsmasq.conf file

  5. Configuring the NFS or HTTP server.

    Example configuration of an NFS server using nfs-kernel-server in the /etc/exports file

  6. Booting from the Kaspersky Rescue Disk using the GRUB, SYSLINUX, or iPXE boot loader.

GRUB

  1. Install the GRUB boot loader to the /pxeboot directory.
  2. Configure the DHCP and TFTP servers using dnsmasq in the /etc/dnsmasq.conf file

    port=0 # DNS on/off

    dhcp-range=192.168.85.0,192.168.85.150,255.255.255.0,12h

    dhcp-option=option:router,192.168.85.1

    # Set architecture tag for client request

    dhcp-match=set:efi-x86_64,option:client-arch,7

    dhcp-match=set:efi-x86_64,option:client-arch,9

    dhcp-match=set:efi-x86,option:client-arch,6

    dhcp-match=set:bios,option:client-arch,0

    dhcp-boot=tag:efi-x86_64,"bootx64.efi"

    dhcp-boot=tag:efi-x86,"bootia32.efi"

    dhcp-boot=tag:bios,"pxegrub.0"

    enable-tftp

    tftp-root=/pxeboot

  3. Configure the GRUB boot loader in the /pxeboot/boot/grub/grub.cfg file.

    menuentry 'Kaspersky Rescue Disk NFS' {

    linux /krd/live/vmlinuz boot=live components locales=en_US.UTF-8 netboot=nfs nfsroot=192.168.85.135:/pxeboot/krd

    initrd /krd/live/initrd.img

    }

    menuentry 'Kaspersky Rescue Disk HTTP' {

    linux /krd/live/vmlinuz boot=live components locales=en_US.UTF-8 fetch=http://192.168.85.135:8080/krd/krd.iso

    initrd /krd/live/initrd.img

    }

    menuentry 'Kaspersky Rescue Disk TFTP' {

    linux /krd/live/vmlinuz boot=live components locales=en_US.UTF-8 fetch=tftp://192.168.85.135/krd/krd.iso

    initrd /krd/live/initrd.img

SYSLINUX

  1. Install the SYSLINUX boot loader to the /pxeboot directory.
  2. Configure the DHCP and TFTP servers using dnsmasq in the /etc/dnsmasq.conf file

    port=0 # DNS on/off

    dhcp-range=192.168.85.0,192.168.85.150,255.255.255.0,12h

    dhcp-option=option:router,192.168.85.1

    # Set architecture tag for client request

    dhcp-match=set:efi-x86_64,option:client-arch,7

    dhcp-match=set:efi-x86_64,option:client-arch,9

    dhcp-match=set:efi-x86,option:client-arch,6

    dhcp-match=set:bios,option:client-arch,0

    dhcp-boot=tag:efi-x86_64,"syslinux64.efi"

    dhcp-boot=tag:efi-x86,"syslinux32.efi"

    dhcp-boot=tag:bios,"pxelinux.0"

    enable-tftp

    tftp-root=/pxeboot

  3. Configure the SYSLINUX boot loader in the /pxeboot/pxelinux.cfg/default file.

    default menu.c32

    prompt 0

    menu title Boot Menu

    label KRDboot_NFS

    menu label Kaspersky Rescue Disk NFS

    linux krd/live/vmlinuz

    initrd krd/live/initrd.img

    append boot=live components locales=en_US.UTF-8 netboot=nfs nfsroot=192.168.85.135:/pxeboot/krd

    label KRDboot_HTTP

    menu label Kaspersky Rescue Disk HTTP

    linux krd/live/vmlinuz

    initrd krd/live/initrd.img

    append boot=live components locales=en_US.UTF-8 fetch=http://192.168.85.135:8080/krd/krd.iso

    label KRDboot_TFTP

    menu label Kaspersky Rescue Disk TFTP

    linux krd/live/vmlinuz

    initrd krd/live/initrd.img

    append boot=live components locales=en_US.UTF-8 fetch=tftp://192.168.85.135/krd/krd.iso

iPXE

  1. Install the iPXE boot loader to the /pxeboot/ipxe directory.
  2. Configure the DHCP and TFTP servers using dnsmasq in the /etc/dnsmasq.conf file

    #port=0 #DNS on/off

    dhcp-range=192.168.85.0,192.168.85.150,255.255.255.0,12h

    dhcp-option=option:router,192.168.85.1

    #Set architecture tag for client request

    dhcp-match=set:efi-x86_64,option:client-arch,7

    dhcp-match=set:efi-x86_64,option:client-arch,9

    dhcp-match=set:efi-x86,option:client-arch,6

    dhcp-match=set:bios,option:client-arch,0

    dhcp-userclass=set:ipxe,iPXE

    #First loader

    dhcp-boot=tag:efi-x86_64,"ipxe/ipxe64.efi"

    dhcp-boot=tag:efi-x86,"ipxe/ipxe32.efi"

    dhcp-boot=tag:bios,"ipxe/undionly.kpxe"

    #Second loader

    dhcp-boot=tag:ipxe,"nfs://192.168.85.135:/pxeboot/ipxe/ipxe.cfg"

    enable-tftp

    tftp-root=/pxeboot

  3. Configure the iPXE boot loader in the /pxeboot/ipxe/ipxe.cfg file.

    #!ipxe

    set server 192.168.85.135 # or DNS name

    set nfs_root /pxeboot

    kernel nfs://${server}:${nfs_root}/krd/live/vmlinuz

    initrd nfs://${server}:${nfs_root}/krd/live/initrd.img

    imgargs vmlinuz initrd=initrd.img boot=live components locales=en_US.UTF-8 netboot=nfs nfsroot=${server}:${nfs_root}/krd

    boot

Page top