|
|
Line 1: |
Line 1: |
| '''Overall description:''' Installing Alpine from an official disc image to a VirtualBox machine.
| | {{Delete}} |
| | |
| This document guides you through installing Alpine on a VirtualBox VM - this is ideal if you only want to try out Alpine. For other ways to install (including dual-boot) see [[Alpine_newbie_install_manual#Ways_to_install_Alpine_into_machines_or_virtuals|Alpine_newbie_install_manual]].
| |
| | |
| == Terminology ==
| |
| | |
| * '''Host machine''': the machine you're running VirtualBox on. It will "host" the target virtual machine.
| |
| * '''Guest machine''': your target machine where Alpine will be installed, executed by the VirtualBox software on the host machine.
| |
| * '''Reserved RAM''': the amount of host machine RAM that will be needed for exclusive use by the guest machine. The host machine cannot use this RAM while the guest machine is running.
| |
| * '''Virtual disc''': the emulated storage medium attached to the guest machine. Usually it is a file (or several files) which VirtualBox presents as a disk to the guest OS (Alpine).
| |
| | |
| == Requirements ==
| |
| | |
| On the host machine:
| |
| | |
| * Qemu or VirtualBox using package manager! Do not promote Oracle's policy of overversiones without security patches
| |
| * At least 1GB of RAM, 2GB or more if you don't want lockups while running something in addition to the virtual machine software
| |
| * The <code>curl</code> or <code>wget</code> programs to download the image to boot in the virtual software
| |
| | |
| On the guest machine:
| |
| | |
| * Minimum 512Mb RAM, but 1Gb or more is recommended if you're going to use a graphical interface. That obviouly must be in sync with the host machine.
| |
| | |
| == Preparing the medium to install ==
| |
| | |
| Download the source medium to install and put into your home; there's more hardware medium sources to download, like the '''[https://en.wikipedia.org/wiki/Linux_on_z_Systems s390x]''' and '''[https://en.wikipedia.org/wiki/Ppc64 ppc64le]''', but because VirtualBox handles only '''x86''' and '''x64'''
| |
| hardware, we will list those here
| |
| | |
| The name of the source medium to install will be in the following format: '''<code><nowiki>http://dl-cdn.alpinelinux.org/alpine/v</nowiki><VERSION>/releases/<ARCH>/alpine-standard-<VERSION>.0-<ARCH>.iso</code>''' where <code>ARCH</code> and <code>VERSION</code> can be one of the following, for VirtualBox virtual machines:
| |
| | |
| * <code><ARCH></code> can be
| |
| ** '''x86''': The well known i386 to i686. (32-bit machines)
| |
| ** '''x86_64''': The popular AMD64 compatible 64-bit x86 based machines.
| |
| * <code><VERSION></code> can be
| |
| ** '''latest-stable''' as the name says, the latest, stable version
| |
| ** '''3.10''' UEFI support began with this version
| |
| ** '''3.8''' recommended for machines manufactured between 2012 and 2016
| |
| ** '''3.6''' recommended for older machines
| |
| | |
| Typically, the version most commonly used in a virtual box is the x86. The hardware is cheaper and operation does not consume a lot of memory.
| |
| The iso download URL format is:
| |
| | |
| * For '''"x86" <code><ARCH></code>''' and '''"3.10" <code><VERSION></code>''' will be:
| |
| <code><nowiki>http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86/alpine-standard-3.10.0-x86.iso</nowiki></code>
| |
| | |
| '''Graphical download''': Just point the web browser to that URL and the download will start. A file with '''.iso''' extension type, with a name like <code>"alpine-standard-3.10.0-x86.iso"</code> (if i386/686); will be downloaded into the directory specified in your browser configuration.
| |
| | |
| '''Command line method''': just open a terminal and execute: <code>wget -c -t8 --no-check-certificate <nowiki>http://dl-cdn.alpinelinux.org/alpine/v</nowiki><VERSION>/releases/<ARCH>/alpine-standard-<VERSION>.0-<ARCH>.iso</code>, for example:
| |
| | |
| * For '''"x86" <code><ARCH></code>''' and '''"3.10" <code><VERSION></code>''' the command will be:
| |
| <code>wget -c -t8 --no-check-certificate <nowiki>http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86/alpine-standard-3.10.0-x86.iso</nowiki></code>
| |
| | |
| You must be mindful of the directory you run the command from, as that is where the file will be saved.
| |
| | |
| == Preparing the virtual machine to install ==
| |
| | |
| Start the VirtualBox software program.
| |
| | |
| # In the main window '''create a new virtual machine''' by '''clicking the blue spark New button'''. That will open a new window with the following questions:
| |
| ## It will ask for a '''name for the virtual like "alpine-desktop-try1"'''.
| |
| ## The Type of the '''Operating system choose "linux"'''.
| |
| ## The version '''choose "other linux"'''. It must match the chosen <code><ARCH></code> (e.g. x86).
| |
| ## Click the "Next" button to continue creating the virtual machine.
| |
| # When selecting the amount of RAM for the virtual machine, choose a minimum of '''512MB''' then click the "Next" button.
| |
| # A new window with a '''Hard disk assistant will open'''.
| |
| ## First choose '''"Create a virtual hard disk now"''' then click the "Create" button.
| |
| ## Next choose the option for '''hard disk type: VDI''' and push "Next" button.
| |
| ## Choose '''dynamically allocated''' then click the "Next" button.
| |
| ## The next window will offer the '''size of virtual disk. 4GB''', however, you may choose a different amount of storage space.
| |
| ## After clicking on "Create" the virtual machine will be ready to use.
| |
| # Now the main window shows you the "alpine-desktop-try1" virtual machine, select it.
| |
| ## Click on the yellow "Configuration" button. Go to the storage menu and pull it down.
| |
| ## Select the disc drive icon for CD/DVD ROM and click on the CD/DVD drive icon at the right.
| |
| ## A Mini menu will open. Select an external file event the host CD/DVD drive.
| |
| ## A file open dialog will open. Search for the downloaded Alpine iso and select it.
| |
| ## Once you choose the iso file to boot, click the "Ok" button to finish creating the virtual machine.
| |
| # Click the green "Start" arrow to start the virtual machine and boot the iso.
| |
| | |
| [[File:Alpine Install from a disc to a virtualbox machine single only-01-0.png|center|Alpine configuration commonly used of a virtual machine on virtual box virtual machine]]
| |
| | |
| == Booting the Alpine ISO disc ==
| |
| | |
| When the machine starts, you must be sure to choose the Optical drive (commonly named CD/DVD ROM drive), so the disc/iso will boot. After a while, a command line shell will show you:
| |
| | |
| {{Tip|If your system are not configure to boot from a CD/DVD drive, you must configure the BIOS. Ask to your vendor or technical support. Hitting the F12 key will enable you to choose the virtual machine's boot medium}} | |
| | |
| [[File:Installation-alpine-alpine-setup-2-boot.png|350px|thumb|right|Installation : setup-alpine : booting process until login prompt]]
| |
| | |
| {{:Installation_pages_setup-alpine_script_normal}}
| |
| {{:Installation_pages_setup-disk_script_alpine_main_single}}
| |
| | |
| == Finishing the installation ==
| |
| | |
| After setup ends, a "reboot" will be offered. Type "reboot" and press enter and your newly installed virtual machine will be booted. Don't forget to remove the boot medium.
| |
| | |
| [[File:Installation-alpine-alpine-setup-9-setup-disk-3-7end.png]]
| |
| | |
| '''You cannot see a graphical window system? No problem.''' With Alpine, GUIs are made the right way. So '''if you need a desktop, you can install a desktop''' follow this link: [[Alpine newbie apk packages]] or go directly to [[Alpine newbie desktops]]
| |
| | |
| For other ways to install, see the [[Alpine_newbie_install_manual#Ways_to_install_Alpine_into_machines_or_virtuals|Alpine_newbie_install_manual]]
| |
| | |
| = Documents series =
| |
| | |
| {| class="wikitable"
| |
| |-
| |
| ! Previous required !! What's next to read
| |
| |-
| |
| | [[Alpine newbie install manual]] || [[Alpine newbie apk packages]]
| |
| |}
| |
| | |
| = See Also =
| |
| | |
| # [[Newbie_Alpine_Ecosystem]]
| |
| # [[Alpine newbie apk packages]]
| |
| # [[Alpine newbie desktops]]
| |
| # [[Alpine newbie developer]]
| |
| # [[Alpine newbie lammers]]
| |
| | |
| [[Category:Newbie]]
| |
| [[Category:Installation]]
| |