From 1044497c5f2c52daa5920cc565244e52726af68f Mon Sep 17 00:00:00 2001 From: Sonny Date: Mon, 10 Jul 2017 07:15:27 +0200 Subject: [PATCH] Fix path issue --- scripts/qemu/debian-test | 12 ------------ scripts/qemu/kde-neon | 13 +++++++++++++ scripts/qemu/kubuntu-1704 | 1 + scripts/qemu/qemu-helper | 10 +++++----- scripts/qemu/ubuntu-desktop | 3 ++- scripts/qemu/ubuntu-server | 1 + scripts/qemu/windows10 | 1 + 7 files changed, 23 insertions(+), 18 deletions(-) delete mode 100755 scripts/qemu/debian-test create mode 100755 scripts/qemu/kde-neon diff --git a/scripts/qemu/debian-test b/scripts/qemu/debian-test deleted file mode 100755 index 09e2d75..0000000 --- a/scripts/qemu/debian-test +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -qemu-system-x86_64 -enable-kvm --daemonize \ - -cpu host \ - -smp 4 \ - -drive format=raw,file=/media/platvoeten/VM/debian-test.img,if=virtio \ - -m 4G \ - -name debian \ - -vga qxl \ - -spice port=5911,disable-ticketing \ - -device virtio-serial \ - -chardev spicevmc,id=vdagent,name=vdagent \ - -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 diff --git a/scripts/qemu/kde-neon b/scripts/qemu/kde-neon new file mode 100755 index 0000000..6c12aaa --- /dev/null +++ b/scripts/qemu/kde-neon @@ -0,0 +1,13 @@ +#!/bin/bash +qemu-system-x86_64 -enable-kvm --daemonize \ + -cpu host \ + -smp 4 \ + -drive format=raw,file=/media/platvoeten/VM/kde-neon.img,if=virtio \ + -boot d -cdrom /media/platvoeten/Downloads/neon-useredition-20170706-1018-amd64.iso \ + -m 4G \ + -name neon \ + -vga qxl \ + -spice port=5930,disable-ticketing \ + -device virtio-serial \ + -chardev spicevmc,id=vdagent,name=vdagent \ + -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 diff --git a/scripts/qemu/kubuntu-1704 b/scripts/qemu/kubuntu-1704 index 365d3d9..c8ccbdc 100755 --- a/scripts/qemu/kubuntu-1704 +++ b/scripts/qemu/kubuntu-1704 @@ -1,6 +1,7 @@ #!/bin/bash qemu-system-x86_64 -enable-kvm --daemonize \ -cpu host \ + -smp 4 \ -drive format=raw,file="/media/platvoeten/VM/ubuntu-1704.img",if=virtio \ -m 4G \ -name "kubuntu-1704" \ diff --git a/scripts/qemu/qemu-helper b/scripts/qemu/qemu-helper index ebb4c74..4457e86 100755 --- a/scripts/qemu/qemu-helper +++ b/scripts/qemu/qemu-helper @@ -46,7 +46,9 @@ create_script() { '\t -device virtio-serial \' '\n' \ '\t -chardev spicevmc,id=vdagent,name=vdagent \' '\n' \ '\t -device virtserialport,chardev=vdagent,name=com.redhat.spice.0' \ - | sed 's/^ *//g' > $FILE + > $HOME/.bin/qemu/$FILE + # Remove leading whitespace + sed -i 's/^ *//g' $HOME/.bin/qemu/$FILE elif [ "$ANSWER" == "n" ] ;then echo -e '#!/bin/bash \n' \ 'qemu-system-x86_64 -enable-kvm --daemonize \' '\n' \ @@ -60,11 +62,9 @@ create_script() { '\t -device virtio-serial \' '\n' \ '\t -chardev spicevmc,id=vdagent,name=vdagent \' '\n' \ '\t -device virtserialport,chardev=vdagent,name=com.redhat.spice.0' \ - | sed 's/^ *//g' > $FILE + > $HOME/.bin/qemu/$FILE + sed -i 's/^ *//g' $HOME/.bin/qemu/$FILE fi - - # Remove trailing whitespace - sed -i 's/\s*$//g' $FILE } # Remove GUI options for headless VM diff --git a/scripts/qemu/ubuntu-desktop b/scripts/qemu/ubuntu-desktop index f8d782c..41e3393 100755 --- a/scripts/qemu/ubuntu-desktop +++ b/scripts/qemu/ubuntu-desktop @@ -1,6 +1,7 @@ #!/bin/bash qemu-system-x86_64 -enable-kvm --daemonize \ -cpu host \ + -smp 4 \ -drive format=raw,file="/media/platvoeten/VM/ubuntu/ubuntu-desktop.img",if=virtio \ -name "ubuntu-desktop" \ -vga qxl \ @@ -9,4 +10,4 @@ qemu-system-x86_64 -enable-kvm --daemonize \ -spice port="5929",disable-ticketing \ -device virtio-serial \ -chardev spicevmc,id=vdagent,name=vdagent \ - -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 + -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 diff --git a/scripts/qemu/ubuntu-server b/scripts/qemu/ubuntu-server index 9b31d59..3988aa6 100755 --- a/scripts/qemu/ubuntu-server +++ b/scripts/qemu/ubuntu-server @@ -1,6 +1,7 @@ #!/bin/bash qemu-system-x86_64 -enable-kvm --daemonize \ -cpu host \ + -smp 4 \ -drive format=raw,file="/media/platvoeten/VM/ubuntu/ubuntu-server.img",if=virtio \ -netdev user,id=vmnic,hostfwd=tcp::5555-:22,hostfwd=tcp::5556-:8000,hostname=ubuntu-server -device virtio-net,netdev=vmnic \ -m 1G \ diff --git a/scripts/qemu/windows10 b/scripts/qemu/windows10 index dcd1cac..bae50fd 100755 --- a/scripts/qemu/windows10 +++ b/scripts/qemu/windows10 @@ -2,6 +2,7 @@ ## Windows 10 Virtio VM qemu-system-x86_64 -enable-kvm \ -cpu host \ + -smp 4 \ -drive file=/media/platvoeten/Downloads/virtio-win-0.1.126.iso,index=3,media=cdrom \ -cdrom /dev/cdrom \ -drive format=raw,file=/media/platvoeten/VM/windows10.img,if=virtio \