• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. Private Image Creation Guide (BMS)
  4. Creating a Linux Image
  5. Installing Cloud-Init
  6. Ubuntu 14.04

Ubuntu 14.04

  1. Configure the apt source.

    If the VM needs to access the Internet through a proxy, configure the apt proxy. Otherwise, skip this step.

    Run the following commands:

    cd /etc/apt/

    vim apt.conf

    Modify the file and change the proxy IP address and port.

      Acquire::http::Proxy "http://191.200.5.88:3128";
      ~
      ~
      ~
  2. Run the apt update command.

    If information shown in the preceding figure is displayed, the network connection is unstable. Run the apt update command again until no exceptions occur.

    Run the apt-get install cloud-init command.

  3. Run the cloud-init -v command. If the output is cloud-init 0.7.5, the installation is complete.
  4. Install the SSH service.

    Before installing openssh-server, run the following command to delete residual configuration files from the system:

    rm /etc/ssh/sshd_config

    Run the following commands to install the SSH service:

    apt-get install openssh-client

    apt-get install openssh-server

  5. Run the following commands to install the vlan and ifenslave services:

    apt-get install vlan

    apt-get install ifenslave

  6. Modify the /etc/network/interfaces configuration file and add the following statement to the end of the file:
    source /etc/network/interfaces.d/*cfg
  7. Install the dkms tool.

    To prevent any SDI driver exceptions, run the apt-get install dkms command to install the dkms tool online.

    After installation, run the vi /usr/sbin/dkms command. Press Shift+: to enter the CLI, enter 282, and press Enter to go to the 282th row, and change it to the following:

    invoke_command "$mkinitrd -f $initrd_dir/$initrd $1" "$mkinitrd" background