Looks like <shareable/> within <disk> has no effect.  I ran virsh
dumpxml, inserted the <shareable/>, redefined the domain, and ran
virsh dumpxml again.  No shareable.  I even ran virsh undefine and
virsh define again, same thing.

XML and output of xm list --long for this guest attached.

<domain type='xen'>
  <name>rhel5pv</name>
  <uuid>49a0c6ffc066539264983632d093c2e7</uuid>
  <bootloader>/usr/bin/pygrub</bootloader>
  <os>
    <type>linux</type>
    <kernel>/var/lib/xen/boot_kernel.BCkYBN</kernel>
    <initrd>/var/lib/xen/boot_ramdisk.sjOK9_</initrd>
    <cmdline>ro root=/dev/VolGroup00/LogVol00</cmdline>
  </os>
  <currentMemory>393216</currentMemory>
  <memory>524288</memory>
  <vcpu>1</vcpu>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <disk type='file' device='disk'>
      <driver name='tap' type='aio'/>
      <source file='/var/lib/xen/images/rhel5pv.img'/>
      <target dev='xvda'/>
<shareable/>
    </disk>
    <interface type='bridge'>
      <mac address='00:16:3e:23:9e:eb'/>
      <source bridge='xenbr0'/>
      <script path='vif-bridge'/>
    </interface>
    <interface type='bridge'>
      <mac address='00:16:3e:23:9e:eb'/>
      <source bridge='xenbr0'/>
      <script path='vif-bridge'/>
    </interface>
    <graphics type='vnc' port='-1' keymap='en-us'/>
    <console/>
  </devices>
</domain>

(domain
    (domid 1)
    (uuid 49a0c6ff-c066-5392-6498-3632d093c2e7)
    (vcpus 1)
    (cpu_weight 1.0)
    (memory 384)
    (shadow_memory 0)
    (maxmem 512)
    (bootloader /usr/bin/pygrub)
    (features )
    (name rhel5pv)
    (on_poweroff destroy)
    (on_reboot restart)
    (on_crash restart)
    (image
        (linux
            (kernel /var/lib/xen/boot_kernel.c9hdO-)
            (ramdisk /var/lib/xen/boot_ramdisk.biuRMa)
            (args 'ro root=/dev/VolGroup00/LogVol00')
        )
    )
    (device
        (vif
            (backend 0)
            (script vif-bridge)
            (bridge xenbr0)
            (mac 00:16:3e:23:9e:eb)
        )
    )
    (device
        (vif
            (backend 0)
            (script vif-bridge)
            (bridge xenbr0)
            (mac 00:16:3e:23:9e:eb)
        )
    )
    (device (vkbd (backend 0)))
    (device (vfb (backend 0) (type vnc) (vncunused 1) (keymap en-us)))
    (device
        (tap
            (backend 0)
            (dev xvda:disk)
            (uname tap:aio:/var/lib/xen/images/rhel5pv.img)
            (mode w)
        )
    )
    (state -b----)
    (shutdown_reason poweroff)
    (cpu_time 16.260877279)
    (online_vcpus 1)
    (up_time 418.871421099)
    (start_time 1195062949.41)
    (store_mfn 1329201)
    (console_mfn 1329200)
)
--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to