User Tools

Site Tools


esxi:debian_minimal_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
esxi:debian_minimal_server [2024/07/30 16:01]
derek
esxi:debian_minimal_server [2024/10/24 12:44] (current)
derek
Line 13: Line 13:
         * ''CPU'':         * ''CPU'':
           * Use the full amount of cores per socket to end up with one socket           * Use the full amount of cores per socket to end up with one socket
-          * Enable ''Expose hardware assisted virtualization to the guest OS'' 
         * If using NVMe storage for the datastore:         * If using NVMe storage for the datastore:
           * ''Add other device'' > ''NVMe controller''           * ''Add other device'' > ''NVMe controller''
           * ''Hard Disk 1'' > ''Controller location'' > ''NVMe controller 0''           * ''Hard Disk 1'' > ''Controller location'' > ''NVMe controller 0''
           * Remove ''SCSI controller 0''           * Remove ''SCSI controller 0''
 +        * ''VM Options'' > ''Boot Options'' > Enable ''Force BIOS setup''
         * Select other appropriate VM settings depending on desired applications         * Select other appropriate VM settings depending on desired applications
       * Confirm settings and ''Finish''       * Confirm settings and ''Finish''
Line 25: Line 25:
       * Use ''Start earlier'' and ''Start later'' to set the desired order       * Use ''Start earlier'' and ''Start later'' to set the desired order
     * Go to ''Virtual Machines'' on the sidebar and click on the current VM     * Go to ''Virtual Machines'' on the sidebar and click on the current VM
 +      * Run and then stop the VM, it should have booted to its BIOS
 +      * Give the VM a static IP address from your router using the generated MAC address (found under ''Hardware Configuration'' > ''Network adapter 1'') and desired hostname
       * Power on the VM       * Power on the VM
       * Go through the Debian setup process       * Go through the Debian setup process
 +        * Give an empty password for ''root'' to disable root login and setup sudo
         * In software selection, selecting only the ''SSH server'' and ''Standard system utilities''         * In software selection, selecting only the ''SSH server'' and ''Standard system utilities''
-    Give the VM a static IP address from your router using the generated MAC address (found under ''Hardware Configuration'' > ''Network adapter 1''and desired hostname +      Once setup is finished and it has booted 
-    Reboot the VM +        Log in as the created user 
-    Using an SSH client, connect to the hostname set above, then run: +        Run: <code bash> 
-<code bash> +# Install VMWare tools if not already 
-# Login with root details that were set earlier +sudo apt install open-vm-tools
-# Update packages: +
-apt update +
-apt upgrade +
-# Install VMWare tools +
-apt install open-vm-tools+
  
 # Change the SSH port to 50001: # Change the SSH port to 50001:
-sed -i "s/#Port 22/Port 50001/" /etc/ssh/sshd_config+sudo sed -i "s/#Port 22/Port 50001/" /etc/ssh/sshd_config
 # Optionally enable root SSH login # Optionally enable root SSH login
-sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config+sudo sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config 
 + 
 +# Optionally set the timezone to UTC: 
 +timedatectl set-timezone UTC 
 exit exit
 </code> </code>
- +    Shut down the VM 
-    Shutdown the VM +    * Edit VM note to be the following: <code>
-    * Edit VM note to be the following: +
-<code>+
 Minimal server installation of Debian <xx> Minimal server installation of Debian <xx>
  
Line 58: Line 58:
 ====Update==== ====Update====
   * If desired, Log in to ESXi, navigate to the docker VM and create new snapshot   * If desired, Log in to ESXi, navigate to the docker VM and create new snapshot
-  * Using an SSH client, connect to <hostname>:50001 then run: +  * Using an SSH client, connect to <hostname>:50001 then run: <code bash> 
-<code bash> +sudo apt update 
-# Run the following with sudo if not logged in as root +sudo apt upgrade 
-apt update +sudo reboot  # If desired/needed
-apt upgrade +
-reboot  # If desired/needed+
 </code> </code>
  
esxi/debian_minimal_server.1722355285.txt.gz · Last modified: 2024/09/22 19:51 (external edit)