Arch Linux VM in VirtualBox
Arch Linux VM in VirtualBox
commands:
mklabel msdos
mkpart primary ext4 0% 100%
set 1 boot on
print
quit
First we select msdos partition type, which is another name for the MBR partition type. Then we
create a primary partition which will fill up 100% of the disk, and indicate that we will later format it
as an ext4 file system type. We then make the partition bootable. Finally run the printcommand
to see if all is well before we quit out of parted.
If you paid attention to the printoutput, you will see that your partition doesnt actually start at the
beginning of the disk, even if we told it so. Parted skipped 1049kB at the start of the disk. Dont
worry. Thats the way it should be.
After creating the partition /dev/sda1, run the following command to format the partition as an ext4
filesystem:
mkfs.ext4 /dev/sda1
Note that we do not create a swap partition because a swap file can be added later if necessary.
Lastly, dont forget to mount the new partition at /mntto begin filling it up with an Arch Linux
installation:
mount /dev/sda1 /mnt
Install the base system
Follow the Guides instruction.
Chroot and configure the base system
You should carefully follow all of the steps in this section to configure your new system. Here are
some additional tips:
Add FONT=Lat2-Terminus16to /etc/vconsole.conf, which will make the console look
much nicer.
For configuring the network, we follow Wired / Dynamic IP setup, which means that all you need
Required reading
At this point, you have a minimally functional Arch Linux system. There are a few more things to do
before you can use the system productively.
Before we begin, however, you must understand some basic concepts about Arch Linux. Please read
the following short sections in the General Recommendations page:
Section 1: System administration
Section 2: Package management
Section 3: Graphical user interface
After you have read the sections, move on to the post-installation setup.
Post-installation setup
User management
Pick a name for a non-root user and add the user. For example:
useradd -m -g users -s /bin/bash archie
passwd archie
At this point, you can make the non-root user a sudoer. A sudoer can run a command as root by
passing it through the sudocommand.
First, install sudo:
pacman -S sudo
Then, add the following lines to /etc/sudoers(you can omit the comments of course, and replace
archie with your user name):
# The basic structure of a user spec looks like this:
# who where = (as_whom) how: what
Before you start your Xfce4 desktop, log in as the non-root user. You can switch to the 2nd virtual
console by pressing Ctrl-Alt-F2. After you log in as a non-root user, you can type the following
to start your Xfce4 desktop:
startxfce4
Ssl
0:00 /usr/bin/VBoxService -f
402 ?
Sl
414 ?
Sl
420 ?
Sl
425 ?
Sl
4. 1. Type uname -rto see the current kernel version youre running
2. Reboot into the new LTS kernel
3. Type uname -ragain to see the new LTS kernel version.