[libvirt] Storage LVM volume mounted with filesystem

Ricardo Tiago rtiago at gmail.com
Tue Sep 2 15:45:58 UTC 2008


Hi,

I'm quite new to libvirt, and i have a question regarding the storage
capabilities in libvirt. I have reading the documentation but i
couldn't figure it out if its possible to specify in the LVM volume
xml description that i want the new volume to be mounted with a
filesystem.

I'm using libvirt-0.4.4

My current volume xml is:
<volume type="fs">
<name>sl5-root</name>
<allocation>0</allocation>
<capacity>5000000000</capacity>
<target>
  <path>/tmp/sl5</path>
  <permissions>
    <owner>0744</owner>
    <group>0744</group>
    <mode>0744</mode>
    <label>virt_image_t</label>
  </permissions>
</target>
</volume>

/tmp/sl5 is a ext3 filesystem that i would like to see mounted in the
newly create lvm volume.

My pool xml:
<pool type="logical">
<name>vg1</name>
<target>
  <path>/dev/vg1</path>
</target>
</pool>

Thanks
Ricardo




More information about the libvir-list mailing list