[Starlingx-discuss] 答复: Regarding installation of controller-0 from PXE boot server

chen.dq at neusoft.com chen.dq at neusoft.com
Thu Sep 10 06:52:46 UTC 2020


This may help you:


 - Set the NIC for PXE server on the jumper to a static IP.

 - Install and config dnsmasq:
    ```
    $ sudo apt-get install dnsmasq
    $ sudo vi /etc/dnsmasq.conf
    $ sudo service dnsmasq restart
    ```
    Example of /etc/dnsmasq.conf:
    ```
    interface=nic_name                    ## NIC for PXE Server
    bind-interfaces
    dhcp-range=10.10.10.150,10.10.10.200  ## DHCP Range for PXE install
    dhcp-boot=grubx64.efi                 ## StarlingX PXE boot file
    enable-tftp
    tftp-root=/var/lib/tftpboot/uefi      ## tftp server location

    ### Fix PXE/OAM NIC for Test Nodes
    # testnode-1
    dhcp-host=12:34:56:78:90:AB,10.10.10.151
    # testnode-1
    dhcp-host=12:34:56:78:90:AC,10.10.10.152


Below is my configuration /etc/dnsmasq.conf:

interface=eno1
# DHCP range-leases
dhcp-range= eno1,192.168.3.50,192.168.3.100,255.255.255.0,1h
# PXE
dhcp-boot=pxelinux.0
# Gateway
dhcp-option=3,192.168.3.3
enable-tftp
tftp-root=/var/lib/tftpboot
dhcp-host=94:c6:91:a9:54:f9,192.168.3.157

sudo apt-get install apache2
systemctl start apache2.service

The attachment is a simple script I wrote, for reference only.





________________________________
发件人: Amit Mahajan <ebiibe82 at gmail.com>
发送时间: 2020年9月7日 16:34:14
收件人: starlingx-discuss at lists.starlingx.io
主题: [Starlingx-discuss] Regarding installation of controller-0 from PXE boot server

Hi All,

Is there any documentation which can guide on setting up a StarlingX PXE boot server so that I can install controller-0 from this PXE server?

Regards,
Amit
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication
is not the intended recipient,unauthorized use,forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20200910/a3e32b1d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pxeserver_setup.sh
Type: application/x-shellscript
Size: 1351 bytes
Desc: pxeserver_setup.sh
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20200910/a3e32b1d/attachment.bin>


More information about the Starlingx-discuss mailing list