Skip to content

Commit

Permalink
clarify image creation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
idroz committed Jun 21, 2023
1 parent bda3b4c commit 67a4e77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions scripts/build_alpine_amd64_machine_image.sh
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
2 changes: 1 addition & 1 deletion scripts/enable_lxd.sh
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
Expand Down

0 comments on commit 67a4e77

Please sign in to comment.