Home > Arch Linux > Arch Linux Virtualbox Image

Arch Linux Virtualbox Image


Here you can make several choices. Please note, a 32bit version will work on a 64bit system, however a 64bit version will not work on a 32bit system. I have chosen fdisk as it is available on most Linux distributions and is very simple to use. Before we can use this space, we need to mount our filesystems first. http://advalens.com/arch-linux/arch-linux-virtualbox-install.html

As we saw from the previously entered "lsblk" command, our 20GB disk can be identified by the label "sda". Mounting Filesystems The next step before the installation is initiated is to mount our filesystems. A full list of the available codes can be seen be issuing the command "L". Choose the closest location for downloads At this point we are going to modify a file called: /etc/pacman.d/mirrorlist You can either manually edit this file leaving the closest locations present or check that

Arch Linux Virtualbox Image

If all is ok you should see your disk allocation and have an IP addressed assigned. Partitioning your Disk At this point we need to partition our disks ready for our installation. The number signifies the partition numbers we created earlier. I have chosen to use "fdisk for this purpose.

For this example I am using a 20GB disk. Commands Issued: mkfs.ext4 /dev/sda1 mkfs.ext4 /dev/sda3 We are going to use a filesystem type of "ext4". Therefore the command we are going to enter to initiate the partitioning tool will be: fdisk /dev/sda To view all the commands available to "fdisk" you can type the letter "m". Arch Virtual First work with our standard Linux partitions: /dev/sda1 and /dev/sda2.

Command Issued: mkswap /dev/sda2 swapon /dev/sda2 The swapon command is used to activate the swap space. lsblk - Use this command to verify The "lsblk" command can be used to show our current layout: Here we can see our partitions and the space that has been allocated. Note, although we have defined our partitions, they will not be written to disk until we issue the "w" command to write our entries. https://bbs.archlinux.org/viewtopic.php?id=131273 The commands used are as follows: mount /dev/sda1 /mnt Our root filesystem is mounted on mount point "/mnt" mkdir /mnt/home A mount point is created for the home filesystem.

Arch Linux Initial Boot Screen Initially the following screen is displayed. Virtualbox-host-dkms Vs Virtualbox-host-modules-arch Enter - To accept default end sector. (Uses all remaining space) t - Select Partition Type 3 - Specify we are working with Partition number 3 83 - 83 was selected Create Swap Partition The following commands were issued to create our swap partition: n - Creates a new partition p - Selected a Primary Partition 2 - Selected Partition Number 2 mount /dev/sda3 /mnt/home Our home file system is mounted on "/mnt/home" Note: There is no need to worry about our swap partition, this was initialized earlier.


This is a popular choice as it incorporates journalling. http://wideaperture.net/blog/?p=3851 Before we install and run reflector, it is a good idea to make a copy of the original file. Arch Linux Virtualbox Image To check that you have been allocated an IP address issue the command ip a s. Virtualbox-host-modules-arch Once selected, click on the "Start" button.

I will be allocating 10GB of space to the root partition, 1GB of space for swap and the remaining disk will go to my home partition. 10GB - root Partition 1GB have a peek at these guys Install Reflector To install reflector, we simply issue the following commands using the "pacman" package manager: pacman -Syy pacman -S reflector After issuing the above command, you need to reply "Y" Using fdisk for partitioning To start using the "fdisk" partitioning tool, we need to specify which disk we are going to be using (working with). At this point it is always a good idea to check your disk and internet connection. Manjaro Virtualbox

Select Location of start up disk (iso image) Click the small folder icon and navigate to the location of your installation media (iso image). LandofLinux.com Homepage Arch Install Arch Vbox Settings Learn Linux Monitoring Install Guides Books RHEL Ubuntu CentOS Install Arch Install Archlinux on VirtualBox Booting Reflector is a special script that can retrieve the latest mirror list from the MirrorStatus page, filter the most up-to date mirrors, sort them by speed and overwrite the file /etc/pacman.d/mirrorlist. http://advalens.com/arch-linux/arch-linux-raspberry-pi-image.html For this part of the installation, we will be using the "mkfs" command to create our file systems and the "mkswap" command to create our swap space.

Arch Linux Initial root shell After selecting the 64bit option, the system will load and you will be presented with a root shell where you will type in your commands. Modprobe: Fatal: Module Vboxdrv Not Found In Directory After clicking start, you will be asked for the location of your installation image unless you specified this earlier on the storage tab. In this installation, I am using the 64bit version.

The sda part of the name corresponds to our disk.

To create a copy, we can issue the following command: cp -vf /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup When run, this command will make a copy of the original file and call it "mirrorlist.backup". Using reflector Once we have installed "reflector", we can now issue the following comman You can issue the command lsblk to display your disk allocation (list block device command). How To Install Arch Linux In A Virtual Machine Write our proposed partition layout To write our proposed changes, we issue the "w" command: Create Filesystems and Format Partitions The next step of the installation involves the creation/formatting of our

You can select to boot a 64bit version of the iso by selecting "Boot Arch Linux (x86_64) or choose the 32bit version by selecting "Boot Arch Linux (i686). However, make sure you have an active network connection as this will be needed throughout the installation process.