How to Install the Arch Linux on VirtualBox
Installing the Arch Linux System Guide in a VirtualBox virtual machine
This article navigation
1. Arch Linux Software Warehouse
2. Install the Arch Linux system in the VirtualBox virtual machine
1. Download the Arch Linux system
2. Initialize the installation in Oracle VirtualBox management interface
3. Disk Partitioning
4. Boot the Arch Linux boot
5. Set the hostname and network
6. Install boot loader
7. Boot into the Arch Linux system
Arch Linux is a Linux kernel-based operating system designed specifically for i689 and 86-64 architecture computers. Its unique Package Manager uses the full traceability of the "Pacman" command to upgrade system application software to the latest version. Pacman is a manager for installing, upgrading, and uninstalling packages. This is a completely free and open source software that is supported by the Linux open source community.
Arch Linux is also highly respected for its extensive Wiki-assisted documentation. The system is based on binary software packages, which are primarily developed for i832, 64-bit, and 32-bit systems, while also providing optimal performance optimization for modern hardware systems.
You can refer to this tutorial to install the Arch Linux system directly on your local computer, or you can use the VirtualBox virtual machine in your Windows pc to install it.
Arch Linux Software Warehouse
To install the Arch Linux system in VirtualBox, you need to know the base software repository for the system. The software warehouse is used to obtain packages during the installation process. For Arch Linux Systems, there are many repositories available that can be maintained using the Pacman tool. The following is a list of some of the basic repositories used to install the Arch Linux system in VirtualBox:
- The core software repository includes all the software packages used to base the system, such as booting the Arch Linux system and compiling the package.
- The extra software repository includes packages other than the core software warehouse and software packages related to the desktop environment.
- The Community software repository contains packages that are used by users of trusted Linux communities, most of which are migrated to the core repositories or additional repositories.
- The Multilib software repository includes 32-bit packages and a class library that installs 32-bit applications on 64-bit operating systems.
- testing software repositories include those that are about to become cores or additional packages.
- The community-testing software repository is primarily used for Linux community testing.
- The multilib testing software warehouse is similar to the test repositories, but it contains several types of class libraries.
- The gnome-unstable software repository includes the latest GNOME desktop environments.
- The kde-unstable software repository includes KDE's latest pre-release packages.
Installing the Arch Linux system in the VirtualBox virtual machine
Download the Arch Linux system
To install the Arch Linux system in the VirtualBox virtual machine, you'd better use the new version of the Arch Linux system downloaded on the website. You can choose to download the system files directly or by seed, which is a very safe way to download. Before installing, make sure you have up to 1 GB of free space and memory in your system.
initializing the system installation in the Oracle VirtualBox virtual Machine Management interface
Open the Oracle VirtualBox virtual Machine Management interface, click New, enter the name of the new system you want to create, and enter the Arch Linux. The system will automatically select the version and type of Arch Linux, depending on your system configuration. Click Next .
Allocate memory for your new system, preferably in megabytes. Click Next , and then click New to create a virtual disk.
In the next step, you will be asked to select a disk type for the new system. VirtualBox disk mirroring is typically selected.
Select dynamic Assignment, and click Next .
Allocate the size and location of your hard disk
Now you can see that the Arch Linux system has been created. Click Start .
Click ' Browse ' and select the boot disk you downloaded from the official website.
Click Start , and then turn on full screen mode.
Launch and install the Arch Linux system in VirtualBox
You will see the first open interface of the Arch Linux system. Click "Start Arch Linux (x86_64)" for 64-bit systems, or click "Boot Arch Linux (i686)" for 32-bit systems.
When you click the first option, the system starts. Actually just go into a temporary boot state, that is, into the Arch Linux self-birth system, and log in as root account.
Enter the following command to check the network connection.
Ping google.com
This word Ping indicates a network packet search. You will see the following return information indicating that Arch Linux is connected to the extranet. This is a critical point in the execution of the installation process.
Enter the following command to clear the screen:
Clear
Before you start the installation, you need to partition the hard disk first. Enter # fdisk –1 , and you will see the current system's disk partitioning situation. Notice how you initially assigned the Arch Linux system A storage space of GB.
Hard Disk Partitioning
We are going to divide this three GB disk into three partitions. The first primary partition is the root partition, which is a size of ten GB. The second partition is a swap partition, which is twice times the size of memory and 2048 MB. The third is a logical partition with a size of 8 GB.
Enter the following command:
Cfdisk
You will see GPT, DOS, SGI and sun types, select the dos option, and then press enter .
Here you will see the primary disk space, which is a size of GB. Press to modify the partition size outside of the remaining space, and enter ten GB.
Press Enter and click Primary Partition.
In the bootable option, press Enter to select the bootable type.
In the write option, press Enter to write the partition information to disk.
Then enter Yes to apply the change.
You have now created a partition that has completed ten GB. Click the remaining space and enter the partition size 2048 M.
Create the logical way in the same way. In the exit option, press ENTER, and then enter the following command to clear the screen:
Clear .
Enter the following command to format the newly created partition:
mkfs.ext4/dev/sda1
The sda1 here is the partition name. Use the same command to format the second partition Sda3:
Mkfs.ext4/dev/sda3
To format a swap partition:
mkswap/dev/sda2 .
Use the following command to activate the swap partition:
swapon/dev/sda2
Enter the clear command to clear the screen:
Clear .
Enter the following command to mount the primary partition to begin the system installation:
mount/dev/sda1/mnt.
boot Arch Linux boot
Enter the following command to boot the system:
pacstrap/mnt Base Base-devel
You can see that the system is synchronizing the packets.
Installation of the system will begin in a few minutes.
After the system basic software installation is complete, enter the following command to create the Fstab file:
genfstab/mnt>>/mnt/etc/fstab
Configure the zone, time, and root account password.
Enter the following command to change the root directory of the system to the installation directory for Arch Linux:
Arch-chroot/mnt/bin/bash
Now to change the language configuration:
Nano/etc/local.gen
Select the following language configuration by deleting # and pressing control + x , pressing _y , and then pressing the enter key:
Enter the following command to activate:
Locale-gen
Press the enter key.
Use the following command to create the/etc/locale.conf configuration file:
nano/etc/locale.conf
And then press enter . You can now add a language to the system by entering the following line in the configuration file:
Lang=en_us. UTF-8
Then press control + x , press _y , and then press enter .
Enter the following command to synchronize the time zone:
LS User/share/zoneinfo_
Below you will be a list of the whole world's time zones.
Enter the following command to select your time zone:
LN –s/usr/share/zoneinfo/asia/kolkata/etc/localtime
Alternatively, you can select a different name from the list below.
Use the following command to set the standard time:
Hwclock -SYSTOHC–UTC
The hardware clock is synchronized.
Set the root account password:
passwd
Press enter . However, enter the password you want to set and press ENTER to confirm.
set host name and network
Use the following command to set the host name:
Nano/etc/hostname
And then press enter . Enter the name of the host you want to set, press control + x , press _y , and then press enter .
Enable DHCPCD:
Systemctl Enable DHCPCD
In this way, the next time the system starts, DHCPCD will automatically start and get an IP address automatically:
Installing the boot loader
As a final step, enter the following command to initialize the grub installation. Enter the following command:
Pacman –S Grub Os-rober
Then press y to download the relevant program.
Use the following command to install the boot loader to the hard disk:
GRUB-INSTALL/DEV/SD
Then configure:
Grub-mkconfig –o/boot/grub/grub.cfg
Final reboot system:
reboot
And then press enter .
boot into the installed completed Arch Linux system
Select the "Start an existing operating system" option to launch the Arch Linux system in virtual box VMS.
When you log in with your root account and password, you will be moved to the newly installed Arch Linux operating system.
Original link:
https://www.howtoforge.com/tutorial/install-arch-linux-on-virtualbox/
Installing the Arch Linux System Guide in a VirtualBox virtual machine