Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Below is to run windows 10 VM without cdrom

Code Block
languagebash
titlewin.sh
#!/bin/bash
qemu-system-x86_64 \
	-m 4G \
	-vga virtio \
	-display default,show-cursor=on \
	-usb \
	-device usb-tablet \
	-machine type=q35,accel=hvf \
	-smp 2 \
	-hda ~/Documents/windows10.qcow2

...

To run windows in the background without displaying anything on the terminal:

Code Block
languagebash
titlewin.sh
#!/bin/bash
pkill qemu
qemu-system-x86_64 \
        -m 8G \
        -vga virtio \
        -usb \
        -device usb-tablet \
        -machine type=q35,accel=hvf \
        -smp 4 \
        -hda ~/Documents/windows10.qcow2 \
        -device e1000,netdev=user.0  \
        -netdev user,id=user.0,hostfwd=tcp::3389-:3389 \
        -display none &

...