Skip to content

Commit bff715d

Browse files
svartkanindgirtler
andauthored
Add instructions for booting Arch ISO in a VM (#4041)
* Add instructions to boot ISO in VM * Update --------- Co-authored-by: Daniel Girtler <dgirtler@atlassian.com>
1 parent 051352e commit bff715d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,34 @@ This will create a *20 GB* `testimage.img` and create a loop device which we can
174174
There's also a [Building and Testing](https://github.com/archlinux/archinstall/wiki/Building-and-Testing) guide.<br>
175175
It will go through everything from packaging, building and running *(with qemu)* the installer against a dev branch.
176176

177+
## Boot an Arch ISO image in a VM
178+
179+
You may want to boot an ISO image in a VM to test `archinstall` in there.
180+
181+
* Download the latest [Arch ISO](https://archlinux.org/download/)
182+
* Use the the below command to boot the ISO in a VM
183+
184+
```
185+
qemu-system-x86_64 -enable-kvm \
186+
-machine q35,accel=kvm -device intel-iommu \
187+
-cpu host -m 4096 -boot order=d \
188+
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd \
189+
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd \
190+
-drive file=./archlinux-2025.12.01-x86_64.iso,format=raw
191+
```
192+
193+
HINT: For espeakup support
194+
```
195+
qemu-system-x86_64 -enable-kvm \
196+
-machine q35,accel=kvm -device intel-iommu \
197+
-cpu host -m 4096 -boot order=d \
198+
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd \
199+
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd \
200+
-drive file=./archlinux-2025.12.01-x86_64.iso,format=raw \
201+
-device intel-hda -device hda-duplex,audiodev=snd0 \
202+
-audiodev pa,id=snd0,server=/run/user/1000/pulse/native
203+
```
204+
177205

178206
# FAQ
179207

0 commit comments

Comments
 (0)