Guide: Install Arch Linux on VirtualBox – Guide
Arch Linux is a Linux-based operating system designed for x86-64 computers. It exclusive package manager is responsible for providing updates to the latest software applications using “pacman” with full tracking. Pacman is the package manager used to install, update and remove software packages. It is fully developed for free and open source software and is supported by the Linux community.
Arch Linux is a Linux operating system that is based on binary packages intended for i832, 64-bit and 32-bit systems. This operating system is optimized for best performance on modern hardware systems.
Install arch linux on VirtualBox
I am satisfied with the default keyboard and internet, so I don’t bother configuring them.
To start the system clock using NTP, set the “true” flag in timedatectl. ..
Listing the block devices with lsblk, you will see sda with size XXG and enter the disk listed as well as sr0 where the ISO is. Our goal here is to make sda bootable, but at this point it’s just an unmounted and unformatted block, which is pretty useless. So let’s configure an sda partition using parted:
To create a new MBR partition on your hard drive, type: parted /dev/sda mklabel msdos This will create a new partition with the label “msdos.” ..
Then I run mkpart primary ext4 0% 100%, set 1 boot and exit to create a partition for my operating system.
Format the partition on ext4 with mkfs.ext4 / dev/sda1 and mount it with mount / dev/sda1 / mnt
I’m always looking for the perfect reflection. I jump swapping mirrors to see if I can find my true self. ..
Install the base packages with pacstrap -i / mnt base and then install the required development libraries with pacman -S libc6-dev and libpthread-dev.
genfstab -U / mnt> / mnt / etc/fstab
root=/dev/sda3 ro noauto rw defaults 0 0
To help your locale-aware programs and libraries render text, regional currency values, time and date formats correctly, set your Locale and type the following (assuming US): vi /etc/locale.gen, which will open the editor vi, / en_US.UTF-8, followed by the character x to delete the leading #, which uncomment the appropriate line, and finally: wq which saves and closes the file
To find your timezone, type tzselect in a terminal. This will list all the timezones in the world. Next, type ln -s / usr / share / zoneinfo / Zone / SubZone / etc / localtime where Zone is your selection. For example, if you are in the United States and want to use Mountain Time, you would type: ln -s “/usr/share/zoneinfo/US/Mountain” “/etc/localtime” ..
Do not install microcode updates as this can cause problems with your virtual machine.
Install the grub package with pacman -S grub os-prober.
I refer to my machine on the network as “exultantcarpenter” and add this hostname to /etc/hosts by adding it as an option next to localhost (the line should look like 127.0.0.1 localhost.localdomain localhost exultantcarpenter, all separated by tabs).
- ls /sys/class/net which will produce two words for the screen, for example enp0s8 lo.
- systemctl enable dhcpcd@enp0s8.service
Almost there! Then we set a password, unmount and reboot! Set a password with passwd, exit chroot with exit, unmount with umount -R / mnt and restart with shutdown. Once the machine is disconnected from the virtual machine, go back to VirtualBox, select the machine and remove the drive (Settings > Storage > Storage Tree, select the ISO and click the minus sign to remove). ..
You’ve just completed your task, but you’re not done.
Final note
This guide is for Arch Linux on VirtualBox. If you have any questions about this article, please ask us. Also, please share your love by sharing this article with your friends.