Host and activate the PXE server Docker container application on the Cisco 8201 router using the application manager to enable clients to download boot images and configuration files from the router.
Procedure
-
Install the optional RPM
xr-pxeserveron the router.Example:
Router#install package add xr-pxeserver Router#install apply restart Router#install commitWhen the optional RPM
xr-pxeserveris installed and activated, thepxe_svr_mgrprocess is instantiated. Thepxe_svr_mgrprocess handles installation and updating the PXE server Docker RPM (pxe-server-docker.rpm) with the application manager. Also, when the optional RPMxr-pxeserveris upgraded, thepxe_svr_mgrprocess checks for the new version of thepxe-server-docker.rpm. If there is a change in the version number, it updates the existing version on the router to the new Docker RPM version and re-launches the PXE server Docker container for the changes to reflect.Note
After activating the
xr-pxeserverRPM package, thepxe_svr_mgrprocess installs thepxe-server-docker.rpmwith application manager only when the ongoing install operation is committed and no more install operations are pending. -
Verify the PXE server Docker container application package installed.
Example:
Router#show appmgr packages installed Package ------------------------------------------------------------ pxe-server-2.1.0-ThinXR.x86_64 -
Create the following folder structure in the
/misc/disk1/path and copy thedhcp.confandimage.isofiles to their respective folders.Example:
/server |---- config | |---- dhcpd.conf | |---- dhcpd6.conf |---- images | |---- Image-boot.iso ----logsNote
The PXE server Docker container uses the
/server/folder for its operations. This path is mounted to the PXE server Docker using the application manager configuration.In case of a dual RP system, it is recommended to create this directory structure under
/misc/disk1/mirror/. This automatically syncs the PXE server related files to the standby RP node, making all files available on the new active RP node after RPFO. Otherwise, you must create the directory structure again and copy all the necessary files for the PXE server Docker container. -
Configure and activate the PXE server Docker container application on the interface BVI301.
Example:
Router#config Router(config)#appmgr Router(config-appmgr)#application pxeserver Router(config-application)#activate type docker source pxe-server docker-run-opts "-it --restart always --cap-add=NET_ADMIN --net=host --log-opt max-size=20m --log-opt max-file=3 -v /misc/disk1/mirror/server:/server " docker-run-cmd "-i BV301 -4 172.16.0.0/12 -6 2001:DB8::/48 -l /server/images -t" Router(config-application)#commitThe parameters are:
-
--cap-add=NET_ADMIN --net=host— Mandatory -
-i <interface>— Mandatory -
-4 <secondary ipv4 address of BVI> -
-6 <ipv6 address of BVI> -
-l <location of image stored>— Default:/server/images -
-t <1 - tftp enabled, 0 - tftp disabled>
-
-
Verify the PXE server Docker container status.
Example:
Router(config)#appmgr application exec name pxeserver docker-exec-cmd status dhcpd RUNNING pid 94, uptime 0:00:05 dhcpd6 RUNNING pid 95, uptime 0:00:05 monitor RUNNING pid 96, uptime 0:00:05 nginx RUNNING pid 97, uptime 0:00:05 syslogd RUNNING pid 98, uptime 0:00:05 tftp-hpa4 RUNNING pid 101, uptime 0:00:05 tftp-hpa6 RUNNING pid 104, uptime 0:00:05
What to do next
The PXE server Docker container is active and the clients can now download the boot image and the configuration file from the PXE server (Cisco 8201 router).