Advertisement
szaszm01

win_qemu.sh

Apr 8th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. #!/bin/bash
  2. sudo qemu-system-i386 --enable-kvm -boot c -m 3G -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -drive file=/dev/sda,if=virtio,id=disk,format=raw -smp 2 -netdev tap,id=t0,ifname=vnet0,script=no,downscript=no -device virtio-net,netdev=t0 -cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time -usbdevice tablet -soundhw ac97 -balloon virtio -daemonize
  3. sudo ip link set vnet0 up
  4. sudo ip ad ad 192.168.3.1/24 dev vnet0
  5. remote-viewer spice://127.0.0.1:5900
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement