InstallDcacheShadowPool VMXML

From T2B Wiki
Revision as of 12:28, 26 August 2015 by Maintenance script (talk | contribs) (Created page with " === XML for pool-shadow VM === *Main differences with dcache-pool: <pre> [root@dom04 ~]# diff /etc/libvirt/qemu/pool-shadow.xml /etc/libvirt/qemu/dcache-shadow.xml 2,3c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

XML for pool-shadow VM

  • Main differences with dcache-pool:
[root@dom04 ~]# diff /etc/libvirt/qemu/pool-shadow.xml /etc/libvirt/qemu/dcache-shadow.xml
2,3c2,3
<   <name>pool-shadow</name>
<   <uuid>8d575934-936b-ca58-fdc5-3e2084d6c5d0</uuid>
---
>   <name>dcache-shadow</name>
>   <uuid>318109df-ae24-fbaf-4728-3793689d22ec</uuid>
24c24
<     <disk type='file' device='disk'>
---
>     <disk type='block' device='disk'>
26c26
<       <source file='/var/lib/libvirt/images/pool-shadow.img'/>
---
>       <source dev='/dev/sdc1'/>
34c34
<       <mac address='54:52:00:00:00:13'/>
---
>       <mac address='54:52:00:00:00:03'/>
39c39
<       <mac address='54:52:00:00:00:14'/>
---
>       <mac address='54:52:00:00:00:04'/>

  • The xml:
<domain type='kvm'>
  <name>pool-shadow</name>
  <uuid>8d575934-936b-ca58-fdc5-3e2084d6c5d0</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>2</vcpu>
  <os>
    <type arch='x86_64' machine='rhel6.1.0'>hvm</type>
    <boot dev='network'/>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' io='native'/>
      <source file='/var/lib/libvirt/images/pool-shadow.img'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='54:52:00:00:00:13'/>
      <source bridge='br0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='54:52:00:00:00:14'/>
      <source bridge='br1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>


Template:TracNotice