Project

General

Profile

Support #930

Updated by Daniel Curtis about 6 years ago

{{>toc}} 

 This is a guide for installing a Standard version of the Alpine Linux distro as a VirtualBox guest. VirtualBox is expected to have the host additions already installed. 

 h2. Install Alpine 

 * Create a new VM and add the downloaded ISO to the Storage section. 

 * Start the VM and wait until the login prompt appears. Username is *root*, password is *blank*. 

 * Start the alpine setup script: 
 <pre> 
 setup-alpine 
 </pre> 
 #* Setup the localization: 
 <pre> 
 us 
 us 
 </pre> 
 #* Set the hostname: 
 <pre> 
 alpine 
 </pre> 
 #* Next hit *enter* to use the automatically detected +network interface+. 
 #* Next hit *enter* to use +DHCP+ network interface. 
 #* Next hit *enter* to +skip manual+ network configuration. 
 #* Set the new +root password+. 
 #* Set the timezone: 
 <pre> 
 America 
 </pre> 
 #* Set the subtimezone: 
 <pre> 
 Los_Angeles 
 </pre> 
 #* Next hit *enter* to +skip proxy+ settings. 
 #* Next hit *enter* to +detect the fastest repo+ mirror. 
 #* Next hit *enter* to select the +default SSH server+. 
 #* Next hit *enter* to select the +default NTP client+. 
 #* Enter the hard drive to install Alpine to: 
 <pre> 
 sda 
 </pre> 
 #* Choose a sys install: 
 <pre> 
 sys 
 </pre> 
 #* Enter y to erase the hard drive: 
 <pre> 
 y 
 </pre> 
 #* Reboot to exit the installer, make sure to remove the ISO from the Storage section of the VM: 
 <pre> 
 reboot 
 </pre> 

 h2. Setup Alpine 

 * Once the VM has rebooted, login as root. 

 * Install nano: 
 <pre> 
 apk add nano 
 </pre> 

 * Edit the apk repository mirror list: 
 <pre> 
 nano /etc/apk/repositories 
 </pre> 
 #* And enable the community repo: 
 <pre> 
 http://dl-cdn.alpinelinux.org/alpine/v3.7/main 
 http://dl-cdn.alpinelinux.org/alpine/v3.7/community 
 </pre> 

 * Update the apk package metadata: 
 <pre> 
 apk update 
 </pre> 

 h3. VirtualBox 

 * Start by creating a shared folder on the host system, this guide uses *Shared* as the folder name. 

 * Install the virtualbox guest additions: 
 <pre> 
 apk add virtualbox-guest-additions virtualbox-guest-modules-hardened 
 </pre> 

 * Load the kernel modules: 
 <pre> 
 modprobe -a vboxsf 
 </pre> 

 * Make a mount point and mount the shared virtualbox folder: 
 <pre> 
 mkdir -p /media/shared 
 mount -t vboxsf Shared /media/shared 
 </pre> 

 h2. Resources 

 * https://wiki.alpinelinux.org/wiki/Installation#Installation_Handbook 
 * https://wiki.alpinelinux.org/wiki/Install_Alpine_on_VirtualBox 
 * https://alpinelinux.org/downloads/ 
 * https://wiki.alpinelinux.org/wiki/Enable_Community_Repository 
 * https://wiki.alpinelinux.org/wiki/VirtualBox_shared_folders

Back