david/myzsh
david
/
myzsh
Archived
1
0
Fork 0

pushzshconfig 10.06.2017 22:52

This commit is contained in:
david 2017-06-10 22:52:51 +02:00
parent 4ccd167645
commit 60dc21cc2c
1 changed files with 22 additions and 1 deletions

View File

@ -27,7 +27,7 @@ alias vn="vim ~/ownCloud/Notes/notes.md"
vm()
{
if [ -z $1 ]; then
echo -e "option[new|start]: \c"
echo -e "option[new|start|nofb]: \c"
read option
else
option=$1
@ -55,6 +55,27 @@ vm()
-m 4096 \
-drive file=$filename,if=virtio \
-net nic -net bridge,br=br0
elif [ $option = "net" ]; then
sudo qemu-system-x86_64 -vga virtio -display sdl,gl=on \
-cpu host -enable-kvm -machine type=pc,accel=kvm -smp 4 \
-m 4096 \
-drive file=$filename,if=virtio \
-net nic -net bridge,br=br0 \
-boot order=n
elif [ $option = "low" ]; then
sudo qemu-system-x86_64 -vga std \
-cpu host -enable-kvm -machine type=pc,accel=kvm -smp 4 \
-m 4096 \
-drive file=$filename,if=virtio \
-net nic -net bridge,br=br0 \
-boot order=n
elif [ $option = "nofb" ]; then
sudo qemu-system-x86_64 -nographic -curses \
-cpu host -enable-kvm -machine type=pc,accel=kvm -smp 4 \
-m 4096 \
-drive file=$filename,if=virtio \
-net nic -net bridge,br=br0
else
echo "option unknown"
fi