Installing Alpine in a virtual machine: Difference between revisions
Guest09248 (talk | contribs) (Created page with "This page will walk you through how to setup a virtual machine for AlpineLinux installation == VirtualBox == This guide describes a standard install of Alpine within a Virt...") |
Guest09248 (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
= VirtualBox = | |||
This guide describes a standard install of Alpine within a Virtual Box VM. (virtual machine) | This guide describes a standard install of Alpine within a Virtual Box VM. (virtual machine) | ||
Line 9: | Line 9: | ||
This enables you to install and test Alpine on your main computer almost as you would any other program. | This enables you to install and test Alpine on your main computer almost as you would any other program. | ||
=Preparation= | == Preparation == | ||
==Install Virtual Box on host== | == Install Virtual Box on host == | ||
First you'll need to download and install Virtual Box on your host computer. Either from the official homepage (for Windows, OS X or Solaris) or from your distribution’s repository (for Linux). | First you'll need to download and install Virtual Box on your host computer. Either from the official homepage (for Windows, OS X or Solaris) or from your distribution’s repository (for Linux). | ||
Line 22: | Line 22: | ||
Install both and start VirtualBox to check for proper operation. If you have problems, consult the VirtualBox user manual or one of the support sites for Virtual Box. | Install both and start VirtualBox to check for proper operation. If you have problems, consult the VirtualBox user manual or one of the support sites for Virtual Box. | ||
==Download Alpine== | == Download Alpine == | ||
Download the [https://www.alpinelinux.org/downloads/ Virtual Alpine ISO], which is optimized for virtual systems, from the Alpine Download section. Save it in a location where you can find it easily. | Download the [https://www.alpinelinux.org/downloads/ Virtual Alpine ISO], which is optimized for virtual systems, from the Alpine Download section. Save it in a location where you can find it easily. | ||
=Setting up virtual PC= | == Setting up virtual PC == | ||
Start Virtual Box. You will see a mostly empty window with a couple symbols in the upper left corner. The leftmost icon is a multi pointed star. If you hover your mouse over it, the tooltip will say “New”. | Start Virtual Box. You will see a mostly empty window with a couple symbols in the upper left corner. The leftmost icon is a multi pointed star. If you hover your mouse over it, the tooltip will say “New”. | ||
Line 45: | Line 45: | ||
Once that is done, click on the green start arrow on the menu bar. | Once that is done, click on the green start arrow on the menu bar. | ||
=Install Alpine on the virtual computer= | == Install Alpine on the virtual computer == | ||
Follow the steps described in the [[Installation#Installation_Handbook|Installation Handbook]], just as if you were installing Alpine on a real PC. | Follow the steps described in the [[Installation#Installation_Handbook|Installation Handbook]], just as if you were installing Alpine on a real PC. | ||
Line 51: | Line 51: | ||
{{Tip|Do not reboot your virtual box after the installation. Instead, shut down the virtual machine, remove the Alpine ISO from the virtual optical drive, then restart the virtual machine.}} | {{Tip|Do not reboot your virtual box after the installation. Instead, shut down the virtual machine, remove the Alpine ISO from the virtual optical drive, then restart the virtual machine.}} | ||
=Install drivers for Virtual Box= | == Install drivers for Virtual Box == | ||
Once you successfully reboot into the Alpine VM, there are two steps left: | Once you successfully reboot into the Alpine VM, there are two steps left: | ||
Line 64: | Line 64: | ||
<br> | <br> | ||
= KVM / QEMU = | |||
<br> | <br> | ||
= VMware = | |||
Revision as of 16:56, 8 December 2021
This page will walk you through how to setup a virtual machine for AlpineLinux installation
VirtualBox
This guide describes a standard install of Alpine within a Virtual Box VM. (virtual machine)
Oracle VM VirtualBox runs one or more virtual x86 or x64 guests on a host computer.
This enables you to install and test Alpine on your main computer almost as you would any other program.
Preparation
Install Virtual Box on host
First you'll need to download and install Virtual Box on your host computer. Either from the official homepage (for Windows, OS X or Solaris) or from your distribution’s repository (for Linux).
Virtual Box consists of two components:
- VirtualBox platform package
- Oracle VM VirtualBox Extension Pack
Install both and start VirtualBox to check for proper operation. If you have problems, consult the VirtualBox user manual or one of the support sites for Virtual Box.
Download Alpine
Download the Virtual Alpine ISO, which is optimized for virtual systems, from the Alpine Download section. Save it in a location where you can find it easily.
Setting up virtual PC
Start Virtual Box. You will see a mostly empty window with a couple symbols in the upper left corner. The leftmost icon is a multi pointed star. If you hover your mouse over it, the tooltip will say “New”.
Click on the multi pointed star to create a new machine. A window will pop up, asking you some questions about the virtual (guest) computer you want to create.
- Name: Choose anything you like. e.g. “Alpine”.
- Type: Linux
- Version: Other Linux, either 64 bit or 32 bit. Choose 64 bit if you downloaded the x86_64 Alpine-ISO, or 32 bit if you downloaded the x86 Alpine-ISO.
- Use the default values for the other questions, simply click “next” or “create” until the dialogue finishes.
You will see a new entry in Virtual Box, called Alpine (or the name you chose during step 1 in the dialogue above). Click on it for more information about your guest.
One of the entries should read Mass storage, and offer an IDE controller with a primary master (the virtual hard disc) and a secondary master (the virtual optical drive).
Click on the secondary master. A context menu will pop up. Select the entry “choose image” and open the Alpine ISO you downloaded earlier.
Once that is done, click on the green start arrow on the menu bar.
Install Alpine on the virtual computer
Follow the steps described in the Installation Handbook, just as if you were installing Alpine on a real PC.
Install drivers for Virtual Box
Once you successfully reboot into the Alpine VM, there are two steps left:
- Enable the Community Respository
- Enable VirtualBox shared folders
These two steps install all drivers that other programs might request, and activate several comfort functions.
linux-firmware-none
package using apk, then install the linux-lts
package to download a kernel with the appropriate drivers without pulling in hundreds of MB of uneeded firmware files. Uninstall the linux-virt
package and reboot to use the new kernel.
KVM / QEMU