If the VM needs to access the Internet through a proxy, configure the apt proxy. Otherwise, skip this step.
Run the following commands:
Modify the file and change the proxy IP address and port.
Acquire::http::Proxy "http://184.108.40.206:3128"; ~ ~ ~
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.
Before installing openssh-server, run the following command to delete residual configuration files from the system:
Run the following commands to install the SSH service:
apt-get install openssh-client
apt-get install openssh-server
apt-get install vlan
apt-get install ifenslave
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