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
- Download Alpine Linux ISO.
- Choose the Virtual version.
- I used this version for this blog.
- Attach the ISO to the DVD Drive.
- Start the Virtual Machine.
Initial Boot
- Login as root.
localhost login: root
- Start setup-alpine.
localhost:~# setup-alpine
- us is usually a good choice.
Select keyboard layout: [none]: us
- us is usually a good choice.
Select variant []: us
- I named my system myalpine.
Enter system hostname (fully qualified form, e.g. 'foo.example.org') [localhost]: myalpine
- Accept the default eth0.
Which one do you want to initiatize? (or '?' or 'done') [eht0]
- Accept the default dhcp. Or enter an IP address (and subnet mask) if you want.
IP address for eth0? (or 'dhcp', 'none', '?') [dhcp]
- 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]
- Enter and re-enter your root password.
New password:
Retype password:
- I used Asia/Singapore. Choose whatever timezone you want.
Which timezone are you in? ('?' for list) [UTC] Asia/Singapore
- 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]
- I prefer chrony.
Which NTP client to run? ('busybox', 'openntpd', 'chrony', or 'none') [busybox] chrony
- I find 18 (mirror.xtom.com.hk) to be a good mirror at where I am.
Enter mirror number or URL [1] 18
- 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]- Accept the default openssh.
Which ssh server? ('openssh', 'dropbear', or 'none') [openssh]
- Enter sda.
Which disk(s) would you like to use? (or '?' for help or 'none') [none] sda- 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- Enter y.
WARNING: Erase the above disk(s) and continue? [y/N] y
- After the disk has been formatted and set up, poweroff the Virtual Machine.
myalpine:~# poweroff