https://wiki.archlinux.org/api.php?action=feedcontributions&user=752181905&feedformat=atomArchWiki - User contributions [en]2024-03-29T09:25:15ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Install_Arch_Linux_from_VirtualBox&diff=176089Install Arch Linux from VirtualBox2011-12-28T06:24:40Z<p>752181905: /* Step 1: Install VirtualBox */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Virtualization]]<br />
{{i18n|Installing Arch Linux from VirtualBox}}<br />
<br />
This HOWTO will guide you through the process of installing Arch Linux from a host machine on a raw disk using VirtualBox. This method offers the ability to continue to work with the computer while installing.<br />
<br />
== Step 1: Installing VirtualBox ==<br />
See the detailed article [[VirtualBox]] for installation instructions. '''You have to install the PUEL edition.'''<br />
<br />
== Step 2: Creating a raw disk .vmdk image ==<br />
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:<br />
# gpasswd -a '''user''' disk<br />
'''''Note:''' To apply the new group settings, you have to log out and log in again.''<br />
<br />
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:<br />
$ VBoxManage internalcommands createrawvmdk -filename /home/'''user'''/.VirtualBox/VDI/raw.vmdk -rawdisk '''/dev/sdb''' -register<br />
Where '''user''' is your user name and '''/dev/sdb''' is the device you want to install Archlinux on.<br />
<br />
''For more information on using raw host disks, see [http://www.virtualbox.org/wiki/Downloads#Usermanual the VirtualBox user manual].''<br />
<br />
== Step 3: Downloading an Archlinux install image ==<br />
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/<br />
<br />
== Step 4: Creating a virtual machine ==<br />
Start up the VirtualBox GUI and run the ''New Virtual Machine Wizard'':<br />
# Give the machine a name and choose '''Arch Linux''' for the operating system.<br />
# Choose the amount of memory to be allocated to the machine. At least 160 MiB is needed.<br />
# Select the '''raw.vmdk''' disk image.<br />
# Click ''Finish''.<br />
<br />
Now go to '''File &raquo; 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.<br />
<br />
== Step 5: Installing the system ==<br />
The main part is behind you. You have prepared a virtual machine with mounted installation media. Remember that inside the virtual machine, your disk will be named '''/dev/sda'''. Now you can loosely continue with one of these guides:<br />
* [[Official Arch Linux Install Guide]]<br />
* [[Installing Arch Linux on a USB key]]<br />
<br />
== Troubleshooting ==<br />
=== It doesn't boot on real hardware! ===<br />
This is most probably caused by the <code>autodetect</code> hook in ''[[mkinitcpio|/etc/mkinitcpio.conf]]'', which removes unneeded modules from the initramfs image. If you have this hook in that file, remove it from the file and run:<br />
# mkinitcpio -p linux<br />
to regenerate the initramfs image.</div>752181905https://wiki.archlinux.org/index.php?title=Install_Arch_Linux_from_VirtualBox&diff=176088Install Arch Linux from VirtualBox2011-12-28T06:24:19Z<p>752181905: /* 第一步: 安装VirtualBox */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Virtualization]]<br />
{{i18n|Installing Arch Linux from VirtualBox}}<br />
<br />
This HOWTO will guide you through the process of installing Arch Linux from a host machine on a raw disk using VirtualBox. This method offers the ability to continue to work with the computer while installing.<br />
<br />
== Step 1: Install VirtualBox ==<br />
See the detailed article [[VirtualBox]] for installation instructions. '''You have to install the PUEL edition.'''<br />
<br />
== Step 2: Creating a raw disk .vmdk image ==<br />
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:<br />
# gpasswd -a '''user''' disk<br />
'''''Note:''' To apply the new group settings, you have to log out and log in again.''<br />
<br />
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:<br />
$ VBoxManage internalcommands createrawvmdk -filename /home/'''user'''/.VirtualBox/VDI/raw.vmdk -rawdisk '''/dev/sdb''' -register<br />
Where '''user''' is your user name and '''/dev/sdb''' is the device you want to install Archlinux on.<br />
<br />
''For more information on using raw host disks, see [http://www.virtualbox.org/wiki/Downloads#Usermanual the VirtualBox user manual].''<br />
<br />
== Step 3: Downloading an Archlinux install image ==<br />
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/<br />
<br />
== Step 4: Creating a virtual machine ==<br />
Start up the VirtualBox GUI and run the ''New Virtual Machine Wizard'':<br />
# Give the machine a name and choose '''Arch Linux''' for the operating system.<br />
# Choose the amount of memory to be allocated to the machine. At least 160 MiB is needed.<br />
# Select the '''raw.vmdk''' disk image.<br />
# Click ''Finish''.<br />
<br />
Now go to '''File &raquo; 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.<br />
<br />
== Step 5: Installing the system ==<br />
The main part is behind you. You have prepared a virtual machine with mounted installation media. Remember that inside the virtual machine, your disk will be named '''/dev/sda'''. Now you can loosely continue with one of these guides:<br />
* [[Official Arch Linux Install Guide]]<br />
* [[Installing Arch Linux on a USB key]]<br />
<br />
== Troubleshooting ==<br />
=== It doesn't boot on real hardware! ===<br />
This is most probably caused by the <code>autodetect</code> hook in ''[[mkinitcpio|/etc/mkinitcpio.conf]]'', which removes unneeded modules from the initramfs image. If you have this hook in that file, remove it from the file and run:<br />
# mkinitcpio -p linux<br />
to regenerate the initramfs image.</div>752181905https://wiki.archlinux.org/index.php?title=Install_Arch_Linux_from_VirtualBox&diff=176087Install Arch Linux from VirtualBox2011-12-28T06:22:59Z<p>752181905: /* Step 1: Install VirtualBox */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Virtualization]]<br />
{{i18n|Installing Arch Linux from VirtualBox}}<br />
<br />
This HOWTO will guide you through the process of installing Arch Linux from a host machine on a raw disk using VirtualBox. This method offers the ability to continue to work with the computer while installing.<br />
<br />
== 第一步: 安装VirtualBox ==<br />
[VirtualBox的安装说明],请参阅详细的文章。'''您需要安装PUEL版本'''<br />
<br />
== Step 2: Creating a raw disk .vmdk image ==<br />
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:<br />
# gpasswd -a '''user''' disk<br />
'''''Note:''' To apply the new group settings, you have to log out and log in again.''<br />
<br />
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:<br />
$ VBoxManage internalcommands createrawvmdk -filename /home/'''user'''/.VirtualBox/VDI/raw.vmdk -rawdisk '''/dev/sdb''' -register<br />
Where '''user''' is your user name and '''/dev/sdb''' is the device you want to install Archlinux on.<br />
<br />
''For more information on using raw host disks, see [http://www.virtualbox.org/wiki/Downloads#Usermanual the VirtualBox user manual].''<br />
<br />
== Step 3: Downloading an Archlinux install image ==<br />
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/<br />
<br />
== Step 4: Creating a virtual machine ==<br />
Start up the VirtualBox GUI and run the ''New Virtual Machine Wizard'':<br />
# Give the machine a name and choose '''Arch Linux''' for the operating system.<br />
# Choose the amount of memory to be allocated to the machine. At least 160 MiB is needed.<br />
# Select the '''raw.vmdk''' disk image.<br />
# Click ''Finish''.<br />
<br />
Now go to '''File &raquo; 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.<br />
<br />
== Step 5: Installing the system ==<br />
The main part is behind you. You have prepared a virtual machine with mounted installation media. Remember that inside the virtual machine, your disk will be named '''/dev/sda'''. Now you can loosely continue with one of these guides:<br />
* [[Official Arch Linux Install Guide]]<br />
* [[Installing Arch Linux on a USB key]]<br />
<br />
== Troubleshooting ==<br />
=== It doesn't boot on real hardware! ===<br />
This is most probably caused by the <code>autodetect</code> hook in ''[[mkinitcpio|/etc/mkinitcpio.conf]]'', which removes unneeded modules from the initramfs image. If you have this hook in that file, remove it from the file and run:<br />
# mkinitcpio -p linux<br />
to regenerate the initramfs image.</div>752181905