[2/3] Arch Linux in VMware Workstation – Prepare and execute the scripts

Posted by

This article is part of the series Arch Linux in a “VMware Workstation”.

In the second article I will explain to you how I get my scripts into virtual machine and execute them.

Configuration I use:

  • Ubuntu 18.04 Desktop
  • VMware Workstation Pro 15

For this article to follow along, I assume that you have completed the article Setup the virtual machine to continue.

Steps in this article:

  • Accessing the VM from a terminal.
  • Synchronize the time.
  • Install git
  • Download the repository
  • Prep and execute the scripts
  • Admire the results

Now we can ssh into this virtual machine from our host machine:

If you want to time how long the installation script takes in your configuration, make sure your time is synchronized before running the script:
timedatectl set-ntp true

Download the latest repository files:
pacman -Sy

Note: I have omitted the option u as I do not want to update the live system.
Install git:
pacman -S git

Press Y to continue the installation…
Clone the git repository:
git clone https://github.com/MTijbout/ArchInstall.git

Change into the cloned repository and make the scripts executable:
cd ArchInstall
chmod +x *.sh
ll

Now the fun part starts. We are ready to start the script! Lets time it:
time ./ArchInstallation.sh

Once completed, you can see the time it took:

It shows 1 minute and 6 seconds…

Of course for the speed some factors play a big role: internet speed, power of your host system, the mirror used and its speed…

To finalize reboot the machine and have a look at the result:

It shows the GNU GRUB boot loader. That is a pleasure to my eye to see this worked …
Once booted and logged in:

It shows the system name that is specified in the script and uname -a shows that the latest kernel (as of writing this article) is used.

NOTICE: I will not go in any detail of what to do next with the VM to make it a production ready and secured system. That is outside the scope of the series of articles.

The sshd service is enabled and started as specified in the script. Before you can connect to it, you have to either allow root to login with a password or create an administrative account with ssh rights.


This concludes this article. If all went fine, you have now a virtual machine running a freshly installed Arch Linux system and ready to connect from the host machine.

To continue to the next article in this series click here: Article 3: The scripts in detail

Leave a Reply

Your email address will not be published. Required fields are marked *