Step-By-Step Guide to Install Alpine Linux in Hyper-V (Part 2) (Refreshed May 2026)

A step-by-step guide to install Alpine Linux in Hyper-V

Prepare ISO

  1. Download Alpine Linux ISO.
  2. Choose the Virtual version.
  3. I used this version for this blog.
  4. Attach the ISO to the DVD Drive.
  5. Start the Virtual Machine.

Initial Boot

  1. Login as root.
localhost login: root
  1. Start setup-alpine.
localhost:~# setup-alpine
  1. us is usually a good choice.
Select keyboard layout: [none]: us
  1. us is usually a good choice.
Select variant []: us
  1. I named my system myalpine.
Enter system hostname (fully qualified form, e.g. 'foo.example.org') [localhost]: myalpine
  1. Accept the default eth0.
Which one do you want to initiatize? (or '?' or 'done') [eht0]
  1. Accept the default dhcp. Or enter an IP address (and subnet mask) if you want.
IP address for eth0? (or 'dhcp', 'none', '?') [dhcp]
  1. This is usually used for entering IPv6 information. I don't need this. So I accept the default no.
Do you want to do any manual network configuration? (y/n) [n]
  1. Enter and re-enter your root password.
New password:
Retype password:
  1. I used Asia/Singapore. Choose whatever timezone you want.
Which timezone are you in? ('?' for list) [UTC] Asia/Singapore
  1. This should be none, unless you need to use a HTTP/FTP to access the Internet.
HTTP/FTP proxy URL? (e.g.'http://proxy:8080', or 'none') [none]
  1. I prefer chrony.
Which NTP client to run? ('busybox', 'openntpd', 'chrony', or 'none') [busybox] chrony
  1. I find 18 (mirror.xtom.com.hk) to be a good mirror at where I am.
Enter mirror number or URL [1] 18
  1. Set up a user.
Setup a user? (enter a lower-case loginname, or 'no') [no] myusername
Full name for user myusername [myusername] My Name
New password:
Retype password:
Enter ssh key or URL for myusername (or 'none') [none]
  1. Accept the default openssh.
Which ssh server? ('openssh', 'dropbear', or 'none') [openssh]
  1. Enter sda.
Which disk(s) would you like to use? (or '?' for help or 'none') [none] sda
  1. Enter lvm, then sys.
How would you like to use it? ('sys', 'data', 'crypt', 'lvm' or '?' for help) [?] lvm
How would you like to use it? ('sys', 'data' or '?' for help) [?] sys
  1. Enter y.
WARNING: Erase the above disk(s) and continue? [y/N] y
  1. After the disk has been formatted and set up, poweroff the Virtual Machine.
myalpine:~# poweroff