Installing Arch Linux on VirtualBox
Let’s assume you love your Linux terminal to get things done (like I do). Let’s also assume that the firm you’re working for is forcing you to use Windows. Bugger! What are you gonna do now? One option would be to use Cygwin, but unfortunately, it is just a Linux terminal emulator still based on Windows and very buggy on top of that. A better solution would be to install a clean Linux distribution inside a virtual machine. And this is exactly what I would like to share with you today, namely some tips on how to install a distribution of Arch Linux on VirtualBox.
Just follow these steps and you should be good to go:
- Download the latest versions of Arch Linux and VirtualBox.
- You will probably lose network connectivity. Go to Network settings, disable VirtualBox network adapter. Repair Windows connection and then re-enable VirtualBox network adapter.
- Create a “New Virtual Machine” in VirtualBox.
- Give it a name of your choice.
- Choose type: Linux.
- Choose name: Arch Linux (32 bit).
- Load the Live CD from
<path_to_archlinux_iso>\archlinux-2014.12.01-dual.iso
- Start the virtual machine.
- Disable Hardware VirtEx if you get this error: Right-click image, select Show in Explorer, edit in Notepad++. Update as below:
- Once booted, you can change the default US keyboard layout to, e.g., CH layout by using this command:
loadkeys de_CH-latin1
- If you want to set a different screen size for your virtual box, follow these steps:
- Close VirtualBox and executed the following in windows cmds (in both commands replace the last bit with your desired resolution):
"C:\Program Files\Oracle\VirtualBox\VBoxManage" setextradata "<Name of your VM>" "CustomVideoMode1" "1920x1200x32"
"C:\Program Files\Oracle\VirtualBox\VBoxManage" controlvm "<Name of your VM>" setvideomodehint 1920 1200 32
- Now follow the steps described here and you should be all set to work in the full-screen mode in your native resolution!
- Close VirtualBox and executed the following in windows cmds (in both commands replace the last bit with your desired resolution):
- Make sure to set up a proxy:
export http_proxy=http://user:password@proxy:8080
export https_proxy=https://user:password@proxy:8080
export no_proxy="localhost,10*"
- Follow these steps to install Arch Linux.
- Network - Used Bridged Adapter if you intend to reach the machine from elsewhere inside your corporate Intranet (including the host machine). Image -> Settings -> Network.
I’ll try to update this post as I go along. Feel free to share your thoughts / questions in the comments section.