Until you install Arch Linux on VMware

Introduction!

When I actually installed Arch Linux on VMware, it was difficult to understand that it was an article on another site, so I summarized it. We have summarized it in an easy-to-understand manner, so we hope that not only those who are new to us but also those who have given up on the way will try again.

Since the method of building the VMware environment is posted, please proceed to the next if you understand. ** Make sure you have the latest version of VMware Workstation Player. ** ** If I didn't do this, the virtual environment couldn't be started.

People who are facing

What is Arch Linux in the first place?

archlinux-logo-dark-90dpi.png

As the name implies, it is one of the Linux distributions, and it has the appeal of being particularly customizable among Linux, but it is basically not for beginners but for commands and settings, such as increasing the choices and making the installation procedure difficult. A distribution for people who are used to touching files.

My environment

Apps to install, etc.

Prerequisites

There are various packages that I like. Please add or delete at any time.

Since we are using VMware this time, it may or may not be in the BIOS or UEFI section. Please enable the Intel Virtualization Technology (VT-x) settings If you do not understand, please refer to the following.

Google Search

Also, it is assumed that WMware Workstation Player is already installed. If you do not have it, please refer to the following.

Install VMware (https://slacknotebook.com/vmware-player-15-on-windows/#toc1)

Image file download destination

Image file (mirror.archlinuxjp.org)

bandicam 2020-10-09 15-53-01-996.jpg

Select this iso and download!

1. Build a virtual environment with VMware

If you understand this part, please ignore it! After the VMware installation is complete, start it.

Click Create New Virtual Machine (N)

キャプチャ.PNG

Specify the Arch Linux image you downloaded earlier in the installer disk image file

キャプチャ1.PNG

Set guest OS to "Linux" version to "Other Linux 5.x or later kernel (64-bit)"

キャプチャ2.PNG

This time, I'll call it "Arch Linux". If you want to specify the location, change it.

image.png

This time, specify the disk capacity to 20G. If you want to touch it a lot, increase it.

キャプチャ4.PNG

~~ Alright! Done! This is not the end of environment construction. Customize your hardware.

キャプチャ5.PNG

Increase the number of memory and processors. Set the network adapter to "bridge". Please proceed to the next if possible.

キャプチャ6.PNG

2. efi settings

** Don't start yet! !! !! ~~ Arch Linux is unfriendly ~~ There are still settings. ** ** Open the directory where the virtual environment is located. キャプチャ7.PNG

Start the file with the extension ".vmx" with Notepad. Add to the following, ** Please do not save yet **. It's a promise. Press Ctrl + Shift + S

firmware = "efi"

キャプチャ10.PNG

** Be sure to change the character code from "UTF-8" to "ANSI". ** ** The characters are garbled and cannot be opened. キャプチャ11.PNG

This completes the settings.

3. Start and build a virtual environment

Now let's start the built virtual environment.

Here, if this screen is displayed, efi has not been set. Make the settings above. キャプチャ14.PNG

If this screen is displayed, efi has been set, so proceed as it is. キャプチャ13.PNG

This screen will appear if you start up without any errors. Then ~~ Arch Linux is unfriendly, so let's set it ~~. bandicam 2020-10-09 13-41-52-460.jpg

Keymap settings

Probably most people use Japanese keyboards. (I'm sorry for the US array) Most Linux, including ArchLinux, uses a US keyboard layout, so first set the keyboard layout for the Japanese layout.

python


# loadkeys jp106

Confirm communication by ping

In most cases, the network connection should be established, but check it just in case.

python


# ping -c 4 archlinux.jp

Set root password

A simple password is recommended as this is only a temporary connection with SSH. I made it "a".

python


# passwd

Connect with SSH

It is hard to type commands to the virtual machine, so operate it via SSH. Start sshd and check the IP address.

python


Start SSH daemon
# systemctl start sshd

Confirmation of IP address
# ip a

When I checked, it was "ens33" in my environment and the IP address was "192.168.1.36". bandicam 2020-10-09 13-49-26-109.jpg

Time setting

The official manual recommends setting the time first, so set it.

python


# timedatectl set-ntp true

4. Create partition

Disks recognized by the live environment are assigned block devices such as / dev / sda and / dev / nvme0n1. To check the device, use the lsblk or fdisk command. Since efi is started, we will partition with GPT. This command will start gdisk.

python


# gdisk /dev/sda

First, create a GPT partition table with "o" ** This will delete all existing partitions **

python


Command (? for help):o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): y

The partition is [Arch Linux Installation Guide](https://wiki.archlinux.jp/index.php/%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88% E3% 83% BC% E3% 83% AB% E3% 82% AC% E3% 82% A4% E3% 83% 89 # .E3.83.91.E3.83.BC.E3.83.86.E3.82.A3 It is based on .E3.82.B7.E3.83.A7.E3.83.B3). The partitioning this time is set as follows.

partition capacity
ESP (EFI Syeten Partition) 512M
swap partition 1GB
Data partition All remaining capacity

ESP is a FAT32 formatted partition recommended for UEFI boot. Swap is the capacity to use a part of the disk as a substitute for memory when multiple tasks are started and memory is insufficient when using a personal computer. All the remaining areas are created as data areas (root, home directory, etc.).

python


Command (? for help):n
Permission number: 1
First sector :Enter without pressing anything
Last sector : +512M
Hex code or GUID : EF00

Command (? for help):n
Permission number: 2
First sector :Enter without pressing anything
Last sector : +1G
Hex code or GUID : 8200

Command (? for help):n
Permission number: 3
First sector :Enter without pressing anything
Last sector :Enter without pressing anything
Hex code or GUID : 8300

Finally, specify W to partition. It cannot be used as it is, so format each partition next.

python


Command (? for help):W
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
The operation has completed successfully.

Format each partition

Format ESP partition

Use the mkfs.vfat command because the UEFI boot partition must be formatted with FAT32.

python


# mkfs.vfat -F32 /dev/sda1

Linux file system (ext4) format

Use the mkfs.ext4 command as the command for formatting.

python


# mkfs.ext4 /dev/sda3

Create and load swap

To create swap space on Linux, use the mkswap command You can set it with the swapon command to actually use the swap space you created.

python


# mkswap /dev/sda2
# swapon /dev/sda2

Check if the format was successful

Use the lsblk command to see if it was formatted.

python


# lsblk

If it looks like this, it's OK.

bandicam 2020-10-09 14-01-30-866.jpg

Partition mount

Next, mount the formatted partition.

python


First mount the root directory
# mount /dev/sda3 /mnt
Create a directory and ESP/mnt/Mount on boot
# mkdir /mnt/boot
# mount /dev/sda1 /mnt/boot

Once the mount is complete, the system will be installed! Another breath!

5. System installation

Edit mirror list

Install the base system from here, but connect to the server to download the package. There are several mirrors in each country, and the default settings can take a long time to download, so choose a Japanese server. The mirror list is stored in /etc/pacman.d/mirrorlist, and the server is used first from the beginning, so edit this file.

Edit using the editor you want to use.

python


# nano /etc/pacman.d/mirrorlist

Once open, add this text to this position.

/etc/pacman.d/mirrorlist


Server = http://mirror.archlinuxjp.org/$repo/os/$arch

bandicam 2020-10-09 14-32-48-469.jpg

For nano

Write with Ctrl + O Exit with Ctrl + X

for vim

Enter insert mode with i Exit insert mode with Esc End with: wq

Base system installation

After editing the mirror list, it's time to install the base system. Install Linux-based and: Please add or delete as needed.

python


# pacstrap /mnt base base-devel linux linux-firmware btrfs-progs intel-ucode vi vim nano dosfstools efibootmgr openssh dhcpcd netctl ccache zsh zsh-completions zsh-syntax-highlighting wget man-db man-pages screenfetch

Downloading bandicam 2020-10-09 14-34-40-794.jpg

Creating fstab

fstab is for storing partition and file system information and where it is mounted. You can use genfstab to find the currently mounted partition and write the appropriate value.

python


# genfstab -U -p /mnt >> /mnt/etc/fstab

6. Arch Linux system settings

From here, enter the installed Arch Linux system and make various settings.

The Arch Linux system you just installed is in / mnt, so set the root to / mnt. The chroot command treats mnt as the root directory.

python


# arch-chroot /mnt /bin/bash

Language and keymap settings

Set the language used on Linux. This time, ja_JP and en_US (English) are required as default, so specify them. To set the keymap, you can select the language to use by removing the # at the beginning of the language to use from the /etc/locale.gen file.

python


# nano /etc/locale.gen

Delete these two first #s and save.

Then run the following command to generate the locale.

python


# locale-gen

If both 2 are displayed as done, the process is complete. bandicam 2020-10-09 14-47-57-676.jpg

Create locale.conf file

If you set Japanese at this stage, the characters may be garbled, so leave it in English without setting Japanese here.

python


# echo LANG=en_US.UTF-8 > /etc/locale.conf

Keymap settings (ignored for US layout)

The keyboard layout of the console on the installed Arch Linux is English layout by default, so specify the keyboard layout in the following configuration file. If you are using a Japanese keyboard, write the contents of KEYMAP = jp106 in the /etc/vconsole.conf file. Ignore this command for US arrays.

python


# echo KEYMAP=jp106 > /etc/vconsole.conf

Area setting

If you live in Japan, please hit the following command.

python


# ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

Time setting

Set the hardware clock to UTC.

python


# hwclock -u -w

Decide the Hostname

Hostname is the name of the Linux you want to install. Write any name you like in "/ etc / hostname". This time, set the Hostname to arch.

python


# echo arch > /etc/hostname

Edit / etc / hosts by deleting YOUR_HOSTNAME in the same way.

python


# nano /etc/hosts

bandicam 2020-10-09 14-50-55-790.jpg

Then set the root password. ** If you do not do this, you will not be able to log in even if you can install **

python


# passwd

Activate the daemon automatically

Enter this command to enable the daemon at startup.

python


# systemctl enable sshd
# systemctl enable systemd-networkd
# systemctl enable systemd-resolved
# systemctl enable dhcpcd.service

7. Boot loader settings

In order to boot Arch Linux, you need to select and install a Linux-compatible bootloader. This time I will use GRUB.

python


# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck --debug
# grub-mkconfig -o /boot/grub/grub.cfg

This completes the installation process! Thank you for your hard work.

8. Reboot the system

Let's reboot to see if it actually works.

python


# exit
# reboot

If you restart and this screen appears, it is proof that the installation is complete! bandicam 2020-10-09 15-31-41-230.jpg

Once you're logged in, try typing the screenfetch command !!!

aキャプチャ.PNG

** Oh ... beautiful ... this is Arch Linux. Han romance **

References

Arch Linux Official Page [Arch Linux Installation Guide](https://wiki.archlinux.jp/index.php/%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC % E3% 83% AB% E3% 82% AC% E3% 82% A4% E3% 83% 89) How to install Arch Linux on VMware Fusion [Base system installation] Install Arch Linux on VMware [Arch Linux Installation Our Complete Edition](https://qiita.com/TsutomuNakamura/items/b60518f8788e5e998744#base-%E3%83%91%E3%83%83%E3%82%B1%E3%83% BC% E3% 82% B8% E3% 81% AE% E3% 82% A4% E3% 83% B3% E3% 82% B9% E3% 83% 88% E3% 83% BC% E3% 83% AB) Mako's Note-Initial Arch Linux Settings Sakura Knowledge-Easy installation of rch Linux- "Fun Sakura Cloud" (17) Kuro's Thought Note-I tried using Arch Linux Tech Memo --Arch Linux Initial Settings Login becomes fun! I tried playing with CentOS using screenfetch Windows: Use VMware Workstation 15 Player

Recommended Posts

Until you install Arch Linux on VMware
Install Arch Linux on DeskMini A300
jblas on Arch Linux
Until you install MySQL-python
Install Linux on your Chromebox
Install tomcat 5.5 on Amazon Linux.
Install Docker on Arch Linux and run it remotely
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Setting up OpenSSH on Arch Linux
Install Python Pillow on Amazon Linux
Install CUDA on Linux Mint Mate 20
How to install VMware-Tools on Linux
Install pyenv on EC2 (Amazon Linux)
Rip Music CDs on Arch Linux
[Note] Install Imagick on Amazon Linux2
Until you install and run matplotlib
I'll install Ruby on EC2 (Amazon Linux2) 2020
Install scipy on Linux without internet connection
How to install aws-session-manager-plugin on Manajro Linux
Install wsl2 and master linux on windows
Build an NFS server on Arch Linux
Install and Configure TigerVNC server on Linux
Basic usage of Btrfs on Arch Linux
Until you install your own Python library
5 reasons to install Linux on your laptop.
Build a Samba server on Arch Linux
How to install Anisble on Amazon Linux 2
Dockerfile: Install Docker on your Linux server
Arch Linux install to BIOS boot system
Install rJava on Linux in R3.6 environment.
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Linux "Install on / dev / sda" error resolution
Install debian on linux on Arrows tab Q584 / H
Until you install Caffe and run the sample
Install Anydesk Linux version on Chromebook [Result NG]
[Note] Install wxPython 3.x on Linux Mint (Ubuntu)
Cross-compile windows version from nim on arch | linux
Until you create an Ubuntu boot USB on your Macbook and install Ubuntu on your Thinkpad
Deliver OBS footage to Zoom on Arch Linux
How to install Camunda Modeler on Manjaro Linux
Until you install Python with pythonbrew and run Flask on a WSGI server
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Arch Linux Recommendation
Build an Arch Linux environment on Raspberry Pi
Until you install Anaconda for data analysis on your Mac and launch the IDE
Install Grub on USB memory (UEFI) ~ Boot Linux from grub on USB memory ~
How to use C216 Audio Controller on Arch Linux
[Node] [npm] Install npm packeage on MacOS / Linux without sudo
How to install Linux on a 32bit UEFI PC
If you get hooked on pip install dlib on OSX
Until you install Gauge and run the official sample
I will install Arch Linux for the time being.
Compile and install MySQL-python for python2.7 on amazon linux
[AWS EC2] How to install Maven on Amazon Linux 2
How to install git on Linux such as EC2
Until you install TensorFlow-GPU with pip in Windows environment
Mounting samba on Linux. Until it mounts at startup.
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
Install mecab on Marvericks
Install Tensorflow on Mac