Skip to content
Ask AI

ONIE Check and Preparation

This section provides guidelines for completing the ONIE environment verification and preparation prior to AsterNOS installation. ONIE (Open Network Install Environment) is the standard installation and boot environment for white-box switches, designed for deploying AsterNOS and other compatible network operating systems.

If the ONIE environment is not pre-installed on the device from the factory, the ONIE image must be provided and installed by the white-box hardware vendor or through their official channels. If technical assistance is required during installation, or to confirm whether the device is within the scope of support (refer to Hardware Compatibility List), please contact our technical support.

  • Successful ONIE Installation: After the system reboots, it will enter the ONIE: Install OS mode by default.

Connect a server or laptop to the switch’s serial port using a serial debugging tool. Power on the switch. If the ONIE environment is already pre-installed, it will automatically enter the ONIE GRUB menu page, with ONIE: Install OS selected by default.

Step:

  • Log in to the switch via the serial port and execute a reboot or power-cycle operation.
Terminal window
admin@sonic:~$ sudo reboot

  • After a moment, a system selection interface will appear. Select ONIE within 10 seconds; otherwise, the system will default to booting into the original NOS.

  • The ONIE GRUB menu will appear shortly. Select ONIE: Uninstall OS. This process will take some time to clear all existing systems and format their partitions.

  • Wait for the process to complete. Upon successful clearance, the system will automatically reboot and enter the ONIE: Install OS page.

Before installation, it is mandatory to confirm that the hardware platform identifier in ONIE matches the current device model. Incorrect platform information will cause driver loading failures and prevent the system from booting.

  • After completing the environment confirmation and selecting INSTALL_NOS, press Enter to enter the ONIE command-line page.

  • Execute the following command to check the platform information:
Terminal window
cat /etc/machine.conf

If the onie_platform and onie_machine fields do not match the current hardware platform, they must be manually modified using the vi command. Details are provided in the table below:

Table 1 Hardware Platform Mapping

Product NameOnie_machineOnie_platform
AS7726_32Xaccton_as7726_32xx86_64-accton_as7726_32x-r0
DCS6500-48Z8Cmuxi_dcs6500_48z8cx86_64-muxi_dcs6500_48z8c-r0
DS2000cel_ds2000x86_64-cel_ds2000-r0
DS3000cel_ds3000x86_64-cel_ds3000-r
CX308P-48Y-N-V2asterfusion_cx308p_48y_nx86_64-asterfusion_cx308p_48y_n-r0
CX532P-Nasterfusion_cx532p_nx86_64-asterfusion_cx532p_n-r0
CX532P-N-V2asterfusion_cx532p_nx86_64-asterfusion_cx532p_n-r0
CX564P-Nasterfusion_cx564p_nx86_64-asterfusion_cx564p_n-r0
CX664D-Nasterfusion_cx664d_nx86_64-asterfusion_cx664d_n-r0
CX732Q-Nasterfusion_cx732q_nx86_64-asterfusion_cx732q_n-r0
CX732Q-N-V2asterfusion_cx732q_nx86_64-asterfusion_cx732q_n-r0
CX864E-Nasterfusion_cx864p_nx86_64-asterfusion_cx864e_n-r0

After completing the check, proceed with the AsterNOS installation.