Difference between revisions of "Installing Arch Linux from VirtualBox"

From ArchWiki
Jump to: navigation, search
(New page: Category:HOWTOs (English) {{stub}} == Don't touch this article, I (warriant) am working on it! == == Introduction == This HOWTO will guide you through the process of installing Archl...)
 
Line 1: Line 1:
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]
 
{{stub}}
 
{{stub}}
 
== Don't touch this article, I (warriant) am working on it! ==
 
  
 
== Introduction ==
 
== Introduction ==
This HOWTO will guide you through the process of installing Archlinux on a raw disk using VirtualBox.
+
This HOWTO will guide you through the process of installing Archlinux from a host machine on a raw disk using VirtualBox.
  
 
This is useful for example in case you want to work with the computer while installing.
 
This is useful for example in case you want to work with the computer while installing.
Line 13: Line 11:
  
 
== Step 2: Creating a raw disk .vmdk image ==
 
== Step 2: Creating a raw disk .vmdk image ==
In order to use a raw disk in VirtualBox, you must have write rights for the device. There are two ways to achieve this: either by directly changing the access rights of the device or by adding your user to the '''disk''' group. The latter way is preferred. To do this, run:
+
In order to use a raw disk in VirtualBox, your user must have write rights for the device. There are two ways to achieve this: either by directly changing the access rights of the device or by adding your user to the '''disk''' group. The latter way is preferred. To do this, run:
 
  # gpasswd -a '''user''' disk
 
  # gpasswd -a '''user''' disk
 
To apply the new group settings, you have to log out and log in again.
 
To apply the new group settings, you have to log out and log in again.
Line 21: Line 19:
 
Where '''user''' is your user name and '''/dev/sdb''' is the device you want to install Archlinux on.
 
Where '''user''' is your user name and '''/dev/sdb''' is the device you want to install Archlinux on.
  
For more information on using raw host disks, see the VirtualBox user manual.
+
''For more information on using raw host disks, see the VirtualBox user manual.''
  
 
== Step 3: Download the Archlinux install image ==
 
== Step 3: Download the Archlinux install image ==
If you have a working Internet connection on your host machine, which you probably do, you should download the '''FTP''' ISO image. Otherwise download the '''core''' image. To obtain the image, go to: http://archlinux.org/download/
+
If you have a working Internet connection on your host machine, which you probably do, you should go for the '''FTP''' ISO image. Otherwise download the '''core''' image. To obtain the image, go to: http://archlinux.org/download/
  
 
== Step 4: Creating a virtual machine ==
 
== Step 4: Creating a virtual machine ==
* Load the raw .vmdk image,
+
Start up the VirtualBox GUI and run the ''New Virtual Machine Wizard'':
* load the ISO image,
+
# Give the machine a name and choose '''Arch Linux''' for the operating system.
* ...
+
# Choose the amount of memory to be allocated to the machine. At least 160 MiB is needed.
 +
# Select the '''raw.vmdk''' disk image.
 +
# Click ''Finish''.
 +
 
 +
Now go to '''File » Virtual Disk Manager''' and add the installation CD-ROM image you've downloaded. Close the window, go to the '''Settings''' of the virtual machine and choose the '''CD/DVD-ROM''' item on the left. Finally check the '''Mount CD/DVD Drive''' box, choose the '''ISO Image File''' option and select the installation media.
  
== Step 5: Booting the virtual machine ==
+
== Step 5: Installing the system ==
Blah blah blah...
+
The hard part is behind you. Now you can loosely continue with one of these guides:
 +
* [[Official Arch Linux Install Guide]]
 +
* [[Installing Arch Linux on a USB key]]

Revision as of 16:35, 7 December 2008

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Installing Arch Linux from VirtualBox#)

Introduction

This HOWTO will guide you through the process of installing Archlinux from a host machine on a raw disk using VirtualBox.

This is useful for example in case you want to work with the computer while installing.

Step 1: Install VirtualBox

See the detailed article VirtualBox for installation instructions. You have to install the PUEL edition.

Step 2: Creating a raw disk .vmdk image

In order to use a raw disk in VirtualBox, your user must have write rights for the device. There are two ways to achieve this: either by directly changing the access rights of the device or by adding your user to the disk group. The latter way is preferred. To do this, run:

# gpasswd -a user disk

To apply the new group settings, you have to log out and log in again.

Now you must create a special .vmdk virtual machine disk file, so VirtualBox will save the data to a raw disk instead of the file. Let the file be saved in your user's VirtualBox directory, named raw.vmdk. You'll create it using this command:

$ VBoxManage internalcommands createrawvmdk -filename /home/user/.VirtualBox/VDI/raw.vmdk -rawdisk /dev/sdb -register

Where user is your user name and /dev/sdb is the device you want to install Archlinux on.

For more information on using raw host disks, see the VirtualBox user manual.

Step 3: Download the Archlinux install image

If you have a working Internet connection on your host machine, which you probably do, you should go for the FTP ISO image. Otherwise download the core image. To obtain the image, go to: http://archlinux.org/download/

Step 4: Creating a virtual machine

Start up the VirtualBox GUI and run the New Virtual Machine Wizard:

  1. Give the machine a name and choose Arch Linux for the operating system.
  2. Choose the amount of memory to be allocated to the machine. At least 160 MiB is needed.
  3. Select the raw.vmdk disk image.
  4. Click Finish.

Now go to File » Virtual Disk Manager and add the installation CD-ROM image you've downloaded. Close the window, go to the Settings of the virtual machine and choose the CD/DVD-ROM item on the left. Finally check the Mount CD/DVD Drive box, choose the ISO Image File option and select the installation media.

Step 5: Installing the system

The hard part is behind you. Now you can loosely continue with one of these guides: