windows10 : légère réécriture
This commit is contained in:
parent
195a76cc4a
commit
75bb9b68f7
1 changed files with 7 additions and 6 deletions
|
@ -1,15 +1,16 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Store VM name in environment variable
|
||||
export QEMUSH_NAME
|
||||
export QEMUSH_RAM=4G
|
||||
export QEMUSH_BASE=kvm
|
||||
[ -z "$QEMUSH_NAME" ] && QEMUSH_NAME=$(basename "$0")
|
||||
export QEMUSH_BASE=virtiofs,kvm
|
||||
[ -z "$QEMUSH_NAME" ] && {
|
||||
export QEMUSH_NAME
|
||||
QEMUSH_NAME=$(basename "$0")
|
||||
}
|
||||
|
||||
# Launch the virtual machine
|
||||
exec spice \
|
||||
-drive file="$(pathof disk)",if=virtio \
|
||||
-net user,hostname="${QEMUSH_NAME}" \
|
||||
-net nic -net user,hostname="${QEMUSH_NAME}" \
|
||||
-usbdevice tablet \
|
||||
-name "$QEMUSH_NAME" \
|
||||
-device intel-hda -device hda-duplex,audiodev=snd0 \
|
||||
"$@"
|
||||
|
|
Loading…
Reference in a new issue