-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathwin10.sh
More file actions
22 lines (21 loc) · 714 Bytes
/
win10.sh
File metadata and controls
22 lines (21 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
virt-install \
--virt-type kvm \
--name=windows10 \
--os-variant=win10 \
--vcpus 2 \
--cpu host-passthrough \
--memory 4096 \
--features kvm_hidden=on \
--disk path=~/win10.img,size=50,format=raw,sparse=true,bus=scsi,discard=unmap,io=threads \
--controller type=scsi,model=virtio-scsi \
--graphics spice \
--video model=qxl,vgamem=32768,ram=131072,vram=131072,heads=1 \
--channel spicevmc,target_type=virtio,name=com.redhat.spice.0 \
--channel unix,target_type=virtio,name=org.qemu.guest_agent.0 \
--network bridge=br0,model=virtio \
--input type=tablet,bus=virtio \
--metadata title='Windows 10' \
--disk ~/virtio-win-0.1.173.iso,device=cdrom \
--cdrom ~/Win10_1909_English_x64.iso \
--boot menu=on