-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
qemu-img create -f qcow2 alpine_3.16.0_lxd-amd64.qcow2 32G | ||
qemu-img create -f qcow2 alpine_3.16.0_lxd-x86_64.qcow2 1G | ||
|
||
wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-standard-3.16.0-x86_64.iso | ||
|
||
qemu-system-x86_64 -cpu qemu64 -m 1G \ | ||
-hda alpine_3.16.0_lxd-amd64.qcow2 \ | ||
-hda alpine_3.16.0_lxd-x86_64.qcow2 \ | ||
-cdrom alpine-standard-3.16.0-x86_64.iso \ | ||
-boot d \ | ||
-smp 2 \ | ||
-nic user,hostfwd=tcp::4022-:22 | ||
-netdev user,id=net0,hostfwd=tcp::3024-:22 \ | ||
-device e1000,netdev=net0,mac=56:c9:81:7f:9c:0b | ||
|
||
# inside the vm run alpine-setup | ||
# Allow root ssh login: yes | ||
# Which disk you would like to use: sda | ||
# How would you like to use it: sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apk update | ||
apk add zfs zfs-lts | ||
apk add zfs | ||
reboot | ||
|
||
# ssh back into the vm | ||
|