December 2018
Beginner
826 pages
22h 54m
English
To begin, let's use the Alpine ISO we downloaded previously to spin up and install a virtual machine.
If you haven't got the ISO from the previous section, here's the command to download it again:
$ wget http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/x86_64/alpine-virt-3.8.1-x86_64.iso
Let's use fallocate this time to create a block device:
$ fallocate -l 2G ex-alpine-2-disk
Now, let's use a single line to provision our domain (domain being the collective term used here for the machine and other bits):
$ sudo virt-install --name ex-alpine-2 --memory 512 --disk ex-alpine-2-disk --cdrom alpine-virt-3.8.1-x86_64.iso --graphics none --os-variant virtio26
Read now
Unlock full access