Fix path issue
This commit is contained in:
parent
00f4e5ca4e
commit
1044497c5f
7 changed files with 23 additions and 18 deletions
|
|
@ -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
|
||||
13
scripts/qemu/kde-neon
Executable file
13
scripts/qemu/kde-neon
Executable file
|
|
@ -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
|
||||
|
|
@ -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" \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue