Install Alpine in Qemu

From Alpine Linux
Revision as of 21:38, 22 October 2018 by Shtdbg (talk | contribs) (Create the Virtual Machine: -localtime is deprecated)
Jump to: navigation, search

Before You Start

Create the Virtual Machine

Create a disk image if you want to install Alpine Linux.

qemu-img create alpine.qcow 8G

The following command starts qemu with the alpine iso image as cdrom and boot device, the default network configuration, 256 MB memory, and the disk image that was created in the previous step.


Tip: Add option --enable-kvm if your hardware support this.

Log in as root (no password) and run:


At the question on how to use the disk select sys.

Booting the Virtual Machine

After the installation qemu can be started from disk image (-boot c) without cdrom.

qemu alpine.qcow -boot c -net nic -net user -m 256 -localtime