9 lines
412 B
Bash
Executable file
9 lines
412 B
Bash
Executable file
#!/bin/bash
|
|
qemu-system-x86_64 -enable-kvm \
|
|
-cpu host \
|
|
-drive format=raw,file="/media/platvoeten/VM/ubuntu/ubuntu-server.img",if=virtio \
|
|
-drive format=raw,file="/media/platvoeten/VM/test-hdd.img",if=virtio \
|
|
-netdev user,id=vmnic,smb=/home/platvoeten,hostfwd=tcp::5555-:22,hostfwd=tcp::5556-:8000,hostname=ubuntu-server -device virtio-net,netdev=vmnic \
|
|
-display none \
|
|
-m 1G \
|
|
-name "ubuntu-server" \
|