Skip to content

gitian building create vm debian vmware

BytzCK edited this page Nov 23, 2021 · 1 revision

Create Debian VM using VMWare

  • Download the most recent Debian ISO from https://www.debian.org/download (Version 11 at the time of writing)

  • Start VMWare Workstation and click on Create a New Virtual Machine

VMWare New

  • On the next screen select Custom Configuration

wizard1

  • Select the machine capability (in this case Workstation 16.x)

wizard2

  • Browse to the location you saved the Debian iso file and select it here

wizard3

  • Select guest operating system as Linux and select the most recent version of Debian (in this case 10)

wizard4

  • Give the Virtual Machine a name (Debian 11.x 64-bit used here)

wizard5

  • Select the number of processors for the virtual machine (4 in this case)

wizard6

  • Select the amount of memory for this machine (4Gb shown here)

wizard7

  • Set the networking type (NAT is the default)

wizard8

  • Leave the I/O controller as LSI Logic (unless you have a good reason to change it)

wizard9

  • The disk type should stay as SCSI

wizard10

  • Select "Create a new virtual disk"

wizard11

  • Set the disk capacity you want (512 GB shown here for reference)

wizard12

  • Specify the name you want to use for the disk file

wizard13

  • Check the settings and click Finish

wizard finish

  • The system will now reboot using the downloaded Debian ISO file

Install Debian on the Virtual Machine


  • Select Install from the boot menu. We do not need to install the graphical environment

setup1

  • Select your preferred language to install (English shown)

setup2

  • Select your location (United States shown)

setup3

  • Select the keyboard to use (American English shown)

setup4

  • Wait for the installer components to load

setup5

  • Give the system a hostname

setup6

  • Give the system a domain name

setup7

  • Set the root password

setup8

  • Confirm the root password

setup9

  • Create a new user which will be used for gitian building

setup10

  • Set the new user's username

setup11

  • Create a password for the new user

setup12

  • Confirm the password for the new user

setup13

  • Select your timezone

setup14

  • Partition the disk (Guided - use entire disk recommended)

setup15

  • Select the new disk to partition

setup16

  • Select "All files in one partition"

setup17

  • Select "Finish partitioning and write changes to disk"

setup18

  • Select "Yes" to write the changes to the disk

setup19

  • Wait for the base system to be installed

setup20

  • Select "No" when asked for extra installation media

setup21

  • Select your location to find a package repository close to you (United States shown)

setup22

  • Select a package mirror from the list

setup23

  • Configure a proxy if needed

setup24

  • Wait for the package manager to configure itself

setup25

  • Make your choice whether to participate in the package usage survey

setup26

  • Make sure to select ssh server here so you can log in to your system and deselect Debian Desktop Environment and GNOME

setup27

  • Wait for the software to install

setup28

  • Select "Yes" here to set up the boot loader

setup29

  • Select "/dev/sda" to install the boot loader on

setup30

  • Wait for the installation to complete

setup31

  • Installation is now complete

setup32

  • Choose continue to boot into your Debian Operating System

  • Log in to your new debian install as your chosen user and note the ip address using the command "ip -4 addr" at the command prompt then shut down the system

setup33

  • From the VMWare Main menu select Edit -> VIrtual Network Editor, select vmnet8 NAT and click on NAT Settings

setup34

  • Enter your sudo password to get to the NAT settings

setup35

  • Click "Add"

setup36

  • Enter the Port you want to use on the local system, the IP address you noted for the vitual machine and the ssh port (22) that you want forwarded to your local machine, click "Save"

setup37

  • Click "Save"

setup38

  • Restart your VM and you can ssh in to it using ssh user@localhost -p port

Clone this wiki locally