-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvm_0.xml
53 lines (53 loc) · 1.52 KB
/
vm_0.xml
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
<domain type="kvm">
<name>ubuntu-vm-0</name>
<memory unit="KiB">2097152</memory>
<currentMemory unit="KiB">2097152</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch="x86_64" machine="pc">hvm</type>
<boot dev="hd" />
<boot dev="cdrom" />
</os>
<clock offset="utc" />
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk device="disk" type="file">
<driver name="qemu" type="qcow2" />
<source file="/gos_images/ubuntu_0.qcow2" />
<target bus="virtio" dev="vda" />
</disk>
<interface type="bridge">
<source bridge="virbr0" />
<model type="virtio" />
</interface>
<serial type="pty">
<target port="0" />
</serial>
<console type="pty">
<target port="0" type="serial" />
</console>
<hostdev managed="yes" mode="subsystem" type="pci">
<source>
<address bus="0x00" domain="0x0000" function="0x0" slot="0x02" />
</source>
</hostdev>
<hostdev mode="subsystem" type="usb">
<source>
<vendor id="0x14dd" />
<product id="0x1007" />
</source>
</hostdev>
<filesystem accessmode="squash" type="mount">
<driver type="path" />
<source dir="/home/wlc/libvirt" />
<target dir="mytag" />
</filesystem>
<channel type="unix">
<source mode="bind" path="/var/lib/libvirt/qemu/f16x86_64.agent" />
<target name="org.qemu.guest_agent.0" state="connected" type="virtio" />
</channel>
</devices>
</domain>