37 lines
896 B
Markdown
37 lines
896 B
Markdown
# Archinstall
|
|
|
|
The goal of archinstall is to easily and reproducibly create a minimal arch install.
|
|
|
|
Ansible is then used to do the heavy lifting.
|
|
|
|
The `./patch-disk-config.sh` scripts goal is to help with disk setup. More information inside the script.
|
|
|
|
## VM <-> Host file transfer (QEMU user networking)
|
|
|
|
With QEMU user-mode networking (`10.0.2.0/24`), the host cannot initiate connections to the VM. File transfer therefore works by having the **receiver listen** and the **sender connect** using `nc`.
|
|
|
|
`10.0.2.2` is the host address from inside the VM.
|
|
|
|
### VM -> Host (send from VM, receive on host)
|
|
|
|
Host (receive):
|
|
```sh
|
|
nc -l 8001 > archinstall.json
|
|
```
|
|
VM (send):
|
|
```sh
|
|
nc 10.0.2.2 8001 < /root/archinstall.json
|
|
```
|
|
|
|
### Host -> VM (send from host, receive on VM)
|
|
|
|
Host (send):
|
|
```sh
|
|
nc -l 8002 < archinstall.json
|
|
```
|
|
VM (receive):
|
|
```sh
|
|
nc 10.0.2.2 8002 > /root/archinstall.json
|
|
```
|
|
|