- Preface
- New and Changed Information for this Release
- Overview
- Installing Cisco UCS Director Bare Metal Agent
- Configuring Cisco UCS Director Bare Metal Agent
- Managing Bare Metal Agent
- Adding Non-Windows OS Images
- Adding Windows OS Images
- Provisioning OS Images through Orchestration Workflow Tasks
- Sample Operating System Configuration Template Files
- Ports
Adding Non-Windows
OS Images
This chapter contains the following sections:
- Adding a Non-Windows OS Image in Bare Metal Agent
- Manually Adding a Linux OS Image in Bare Metal Agent
- Manually Adding a VMware vSphere ESXi OS Image in Bare Metal Agent
Adding a Non-Windows OS Image in Bare Metal Agent
This procedure creates a Non-Windows OS image template in Bare Metal Agent. You must add the OS image template before you can request a PXE boot for the OS image.
![]() Note | You cannot use this procedure to create supported Windows operating systems images. For more information about how to set up Windows OS images, see Adding Windows OS Images. |
You must have all resources and requirements in place for each operating system image that you want to install through a Bare Metal Agent PXE boot request.
Manually Adding a Linux OS Image in Bare Metal Agent
| Step 1 | Create a
directory for the operating system image in the
/opt/cnsaroot/images directory of the
Bare Metal Agent
VM.
mkdir /opt/cnsaroot/images/image_name This directory is used to store the operating system image files required for PXE installation.
| ||
| Step 2 | Create a
directory for the operating system image with the same name as the one that you
created in Step 1 in the
/opt/cnsaroot/templates directory of the
Bare Metal Agent
VM.
mkdir /opt/csnaroot/templates/new_image_name This directory is used to store the Kickstart and PXE configuration template files for the operating system image. | ||
| Step 3 | Copy the .iso file or files for the required operating system to the /tmp directory of the Bare Metal Agent VM. | ||
| Step 4 | Mount the
.iso file to the
iso directory.
mount –o loop /tmp/.iso_file /mnt/iso | ||
| Step 5 | Copy the entire
contents of the
.iso file to the
/opt/cnsaroot/images/image_name directory that you created in
Step 1.
cp –R /mnt/iso/* /opt/cnsaroot/images/image_name
| ||
| Step 6 | When the copy
operation is complete, unmount the
.iso file.
umount /mnt/iso | ||
| Step 7 | If the operating system image consists of more than one .iso file, repeat Steps 5, 6, and 7 for each .iso file until the contents of all .iso files have been copied to the /opt/cnsaroot/images/image_name directory. | ||
| Step 8 | Create a
ks.cfg file and a
pxe.cfg file in the
/opt/cnsaroot/templates/image_name directory that you created in
Step 2.
touch /opt/cnsaroot/templates/image_name/ks.cfg touch /opt/cnsaroot/templates/image_name/pxe.cfg | ||
| Step 9 | Add the required
configuration information to the
ks.cfg and
pxe.cfg files.
For sample ks.cfg and pxe.cfg files and more information about these files, see Sample Operating System Configuration Template Files. | ||
| Step 10 | Create a soft
link in the
/var/www/html directory for this operating system
image.
ln –s /opt/cnsaroot/images/image_name /var/www/html/ | ||
| Step 11 | (Optional)If necessary, update the initrd.img and vmlinuz files for the operating system image as follows: | ||
| Step 12 | In
Cisco
UCS Director,
verify that the operating system image is available from the
OS
Type drop-down list in the Setup PXE Boot task.
Wait two minutes, or for whatever duration has been set for the Bare Metal Agent synchronization frequency. By default, Bare Metal Agent is synchronized with Cisco UCS Director every two minutes. You can change this frequency with the bma.sync.frequency property in service.properties.template file under /opt/infra in the Bare Metal Agent VM. |
Manually Adding a VMware vSphere ESXi OS Image in Bare Metal Agent
| Step 1 | Create a
directory for the operating system image data in the
/opt/cnsaroot directory of the
Bare Metal Agent
VM.
mkdir /opt/cnsaroot/images This directory is used to store the operating system image files required for PXE installation.
| ||
| Step 2 | Create a
directory for the operating system image with the same name as the one that you
created in Step 1 in the
/opt/cnsaroot/templates directory of the
Bare Metal Agent
VM.
mkdir /opt/csnaroot/templates/new_image_name This directory is used to store the Kickstart and PXE configuration template files for the operating system image. | ||
| Step 3 | Copy the .iso file or files for the required operating system to the /tmp directory of the Bare Metal Agent VM. | ||
| Step 4 | Mount the
.iso file to the
iso directory.
mount –o loop /tmp/.iso_file /mnt/iso | ||
| Step 5 | Copy the entire
contents of the
.iso file to the
/opt/cnsaroot/image_name directory that you created in
Step 1.
cp –R /mnt/iso/* /opt/cnsaroot/image_name
| ||
| Step 6 | When the copy
operation is complete, unmount the
.iso file.
umount /mnt/iso | ||
| Step 7 | If the operating system image consists of more than one .iso file, repeat Steps 5, 6, and 7 for each .iso file until the contents of all .iso files have been copied to the /opt/cnsaroot/image_name directory. | ||
| Step 8 | Create a
ks.cfg file and a
pxe.cfg file in the
/opt/cnsaroot/templates/image_name directory that you created in
Step 2.
touch /opt/cnsaroot/templates/image_name/ks.cfg touch /opt/cnsaroot/templates/image_name/pxe.cfg | ||
| Step 9 | Add the required
configuration information to the
ks.cfg and
pxe.cfg files.
For sample ks.cfg and pxe.cfg files and more information about these files, see Sample Operating System Configuration Template Files. | ||
| Step 10 | Copy the
boot.cfg file from the
/opt/cnsaroot/image_name directory to the
/opt/cnsaroot/templates/image_name directory.
cd /opt/cnsaroot/templates/image_name/ cp /opt/cnsaroot/image_name/boot.cfg ./ | ||
| Step 11 | Edit the boot.cfg file in the /opt/cnsaroot/templates/image_name directory as follows: | ||
| Step 12 | In
Cisco
UCS Director,
verify that the operating system image is available from the
OS
Type drop-down list in the Setup PXE Boot task.
Wait two minutes, or for whatever duration has been set for the Bare Metal Agent synchronization frequency. By default, Bare Metal Agent is synchronized with Cisco UCS Director every two minutes. You can change this frequency with the bma.sync.frequency property in service.properties.template file under /opt/infra in the Bare Metal Agent VM. |

Feedback