forked from cyproterone/virt-installs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwin2019.sh
More file actions
21 lines (20 loc) · 719 Bytes
/
win2019.sh
File metadata and controls
21 lines (20 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
virt-install \
--virt-type kvm \
--name=win2019 \
--os-variant=win10 \
--vcpus 2 \
--cpu host-passthrough \
--memory 4096 \
--disk path=~/win2019.qcow2,size=50,format=qcow2,sparse=true,bus=scsi,cache=writethrough,discard=unmap,io=threads \
--controller type=scsi,model=virtio-scsi \
--graphics spice \
--channel spicevmc,target_type=virtio,name=com.redhat.spice.0 \
--channel unix,target_type=virtio,name=org.qemu.guest_agent.0 \
--video qxl \
--network bridge=br0,model=virtio \
--input type=tablet,bus=virtio \
--metadata title='Windows 2019 Server' \
--disk ~/virtio-win-0.1.172.iso,device=cdrom \
--cdrom ~/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso \
--boot menu=on