-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvm-xml.txt
More file actions
96 lines (87 loc) · 2.68 KB
/
vm-xml.txt
File metadata and controls
96 lines (87 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<domain xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' type="kvm">
<qemu:commandline>
<qemu:arg value='-device'/>
<qemu:arg value='{"driver":"ivshmem-plain","id":"shmem0","memdev":"looking-glass"}'/>
<qemu:arg value='-object'/>
<qemu:arg value='{"qom-type":"memory-backend-file","id":"looking-glass","mem-path":"/dev/kvmfr0","size":134217728,"share":true}'/>
</qemu:commandline>
<iothreads>1</iothreads>
<cputune>
<vcpupin vcpu='0' cpuset='2'/>
<vcpupin vcpu='1' cpuset='10'/>
<vcpupin vcpu='2' cpuset='3'/>
<vcpupin vcpu='3' cpuset='11'/>
<vcpupin vcpu='4' cpuset='4'/>
<vcpupin vcpu='5' cpuset='12'/>
<vcpupin vcpu='6' cpuset='5'/>
<vcpupin vcpu='7' cpuset='13'/>
<vcpupin vcpu='8' cpuset='6'/>
<vcpupin vcpu='9' cpuset='14'/>
<vcpupin vcpu='10' cpuset='7'/>
<vcpupin vcpu='11' cpuset='15'/>
</cputune>
<features>
<acpi/>
<apic/>
<pae/>
<hyperv mode='custom'>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='8191'/>
<vpindex state='on'/>
<synic state='on'/>
<stimer state='on'/>
<reset state='on'/>
</hyperv>
<kvm>
<hidden state='on'/>
</kvm>
<vmport state='off'/>
<ioapic driver='kvm'/>
</features>
<cpu mode="host-passthrough">
<topology sockets="1" cores="6" threads="2"/>
</cpu>
<clock offset='localtime'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
<timer name='hypervclock' present='yes'/>
<timer name='tsc' present='yes' mode='native'/>
</clock>
<device>
<input type='mouse' bus='virtio'/>
<input type='keyboard' bus='virtio'/>
<sound model='ich9'>
<audio id='1'/>
</sound>
<audio id='1' type='spice'/>
<memballoon model="none"/>
#Add this under boot drive
<driver iothread="1"/>
<device/>
#After Vm Setup
<qemu:commandline>
<qemu:arg value='-device'/>
<qemu:arg value='{"driver":"ivshmem-plain","id":"shmem0","memdev":"looking-glass"}'/>
<qemu:arg value='-object'/>
<qemu:arg value='{"qom-type":"memory-backend-file","id":"looking-glass","mem-path":"/dev/kvmfr0","size":33554432,"share":true}'/>
</qemu:commandline>
sudoedit /etc/modprobe.d/kvmfr.conf
#change size to 32
#change ip base(192.168.1.) according to your network & wlp46s0 with your wifi adapter
virsh net-edit default
<network>
<name>default</name>
<uuid>f1bf2945-2047-47ae-9291-b2fa159abd9e</uuid>
<forward dev='wlp46s0' mode='route'>
<interface dev='wlp46s0'/>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:c9:08:c0'/>
<ip address='192.168.1.129' netmask='255.255.255.240'>
<dhcp>
<range start='192.168.1.136' end='192.168.1.136'/>
</dhcp>
</ip>
</network>