forked from ahurac/dotfiles
qemu : script Linux
This commit is contained in:
parent
fd6c5b5261
commit
360a75b594
1 changed files with 7 additions and 8 deletions
|
@ -1,11 +1,10 @@
|
|||
#!/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" \
|
||||
"$@"
|
||||
|
||||
-monitor stdio -enable-kvm \
|
||||
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||
-m 8G \
|
||||
-hda "images/${name}.qcow2" \
|
||||
-net nic \
|
||||
-name "$name" \
|
||||
"$@"
|
||||
|
|
Loading…
Reference in a new issue