test-fullvirt-serial-tcp.xml 2.1 KB
Newer Older
1 2 3
<domain type='xen'>
  <name>XenGuest2</name>
  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
E
Eric Blake 已提交
4 5
  <memory unit='KiB'>592896</memory>
  <currentMemory unit='KiB'>403456</currentMemory>
6
  <vcpu placement='static'>1</vcpu>
7
  <os>
8
    <type arch='x86_64' machine='xenfv'>hvm</type>
9
    <loader type='rom'>/usr/lib/xen/boot/hvmloader</loader>
10 11 12 13 14
    <boot dev='cdrom'/>
  </os>
  <features>
    <acpi/>
    <apic/>
15
    <pae/>
16
  </features>
17
  <clock offset='variable' adjustment='0' basis='utc'/>
18 19 20
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
21
  <devices>
22
    <emulator>/usr/lib/xen/bin/qemu-system-i386</emulator>
23
    <disk type='block' device='disk'>
24
      <driver name='phy' type='raw'/>
25
      <source dev='/dev/HostVG/XenGuest2'/>
26
      <target dev='hda' bus='ide'/>
27
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
28 29
    </disk>
    <disk type='file' device='cdrom'>
30
      <driver name='file' type='raw'/>
31
      <source file='/root/boot.iso'/>
32
      <target dev='hdc' bus='ide'/>
33
      <readonly/>
34
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
35
    </disk>
36
    <controller type='xenbus' index='0'/>
37
    <controller type='ide' index='0'/>
38
    <interface type='bridge'>
39
      <mac address='00:16:3e:66:92:9c'/>
40
      <source bridge='xenbr1'/>
41
      <script path='vif-bridge'/>
42
      <model type='e1000'/>
43 44 45 46 47 48 49 50 51
    </interface>
    <serial type='tcp'>
      <source mode='connect' host='127.0.0.1' service='7777'/>
      <protocol type='raw'/>
      <target port='0'/>
    </serial>
    <console type='tcp'>
      <source mode='connect' host='127.0.0.1' service='7777'/>
      <protocol type='raw'/>
52
      <target type='serial' port='0'/>
53
    </console>
54
    <input type='mouse' bus='ps2'/>
L
Li Zhang 已提交
55
    <input type='keyboard' bus='ps2'/>
56 57 58
    <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'>
      <listen type='address' address='127.0.0.1'/>
    </graphics>
J
Ján Tomko 已提交
59
    <video>
60
      <model type='cirrus' vram='8192' heads='1' primary='yes'/>
J
Ján Tomko 已提交
61
    </video>
62
    <memballoon model='xen'/>
63 64
  </devices>
</domain>