b4921b8686
les machines virtuelles
11 lines
270 B
Bash
Executable file
11 lines
270 B
Bash
Executable file
#!/bin/sh -ex
|
|
name="$(basename "$0")"
|
|
qemu-system-x86_64 \
|
|
-monitor stdio -enable-kvm \
|
|
-cpu host -smp "$(nproc)" \
|
|
-m 4G \
|
|
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
|
-net nic -net "user,hostname=${name}" \
|
|
-name "$name" \
|
|
"$@"
|
|
|