27 lines
615 B
Markdown
27 lines
615 B
Markdown
# ft_chatons
|
|
|
|
## System
|
|
|
|
- Debian Stable (13)
|
|
- VM with 4GO RAM
|
|
- qemu, img qcow2
|
|
- only one partition for the system = 20GO max (except /boot)
|
|
- root password disable (only sudo use)
|
|
- no graphics
|
|
- ssh server (root ssh disable and not port 22)
|
|
- swap file at the root (2GO)
|
|
- htop and docker installed
|
|
|
|
```bash
|
|
## Create a VM
|
|
qemu-img create -f qcow2 ft_chatons.qcow2 20G
|
|
|
|
## To launch the VM
|
|
qemu-system-x86_64 \
|
|
-nographic -serial mon:stdio \
|
|
-enable-kvm -cpu host -smp 4 -m 4G \
|
|
-device e1000,netdev=net0 \
|
|
-drive if=pflash,format=raw,readonly=on,file=/CHEMIN_VERS_LE_FICHIER_OVMF \
|
|
-hda ft_chatons.qcow2
|
|
```
|