Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Excerpt

This page describes how to create a Linux base image.

Requirements

  • Computer being captured has been added to the VCL database
  • Computer has been installed with Linux
  • Two network adapters are enabled on the computer:
    • eth0 - connected to the private network
    • eth1 - connected to the public network
  • The ability to log in as root via SSH using an identity key on the private network from management node

Configure SSH Identity Key Authentication

  1. On the Linux computer being captured, create a /root/.ssh directory:
    Tip

    mkdir /root/.ssh

  2. On the management node, copy the public SSH identity key to the authorized_keys file on the Linux computer being captured:
    Tip

    scp /etc/vcl/vcl.key.pub <hostname or IP address>:/root/.ssh/authorized_keys

  3. Or replace the above two steps with the following on the management node:
    Tip

    ssh-copy-id -i /etc/vcl/vcl.key <hostname or IP address>

  4. Make sure you can login from the management node to the Linux computer being captured using the identity key:
    Tip

    ssh -i /etc/vcl/vcl.key <hostname or IP address>

Configure the ifcfg-* Files

  1. Navigate to the network-scripts directory:
    Tip

    cd /etc/sysconfig/network-scripts

  2. Delete any ifcfg-*.bak files:
    Tip

    rm -f /etc/sysconfig/network-scripts/ifcfg-*.bak

  3. Edit every ifcfg-eth* file in the network-scripts directory. Remove the HWADDRESS= line:
    Tip

    vi ifcfg-eth0

    Tip

    vi ifcfg-eth1

    The ifcfg-eth0 file should contain the following:
    No Format
    DEVICE=eth0
    BOOTPROTO=dhcp
    ONBOOT=yes
    
    The ifcfg-eth1 file should contain the following:
    No Format
    DEVICE=eth1
    BOOTPROTO=dhcp
    ONBOOT=yes
    
  4. Reboot the computer:
    Tip

    shutdown -r now

  5. Check the ifcfg-eth* files to make sure there are no ifcfg-eth* files and that the HWADDRESS= lines have not been automatically added back:
    Tip

    ls /etc/sysconfig/network-scripts

    Tip

    cat /etc/sysconfig/network-scripts/ifcfg-eth0

    Tip

    cat /etc/sysconfig/network-scripts/ifcfg-eth1

Include Page
Capture A Base Image
Capture A Base Image