[libvirt-users] ceph rbd pool and libvirt manageability (virt-install)
Jelle de Jong
jelledejong at powercraft.nl
Mon Aug 6 19:19:59 UTC 2018
Hello everybody,
virt-install --version
1.4.0
How do I create a ceph network disk with virt-install without having to
edit it?
<disk type='network' device='disk'>
<driver name='qemu' type='raw'/>
<auth username='libvirt'>
<secret type='ceph' uuid='ec9be0c4-a60f-490e-af83-f0f27aaf48c9'/>
</auth>
<source protocol='rbd' name='libvirt-pool/zimbra-dev-disk'>
<host name='ceph01.powercraft.nl' port='6789'/>
<host name='ceph02.powercraft.nl' port='6789'/>
<host name='ceph03.powercraft.nl' port='6789'/>
</source>
<target dev='vda' bus='virtio'/>
</disk>
How do I create an new vm with the -location and -x (kickstarter) but
without booting it, because I need to edit the xml first before the
first boot.
Kind regards and best wishes,
Jelle de Jong
On 08/06/15 18:44, Jelle de Jong wrote:
> Hello everybody,
>
> I created a rbd pool and activated it, but I can't seem to create
> volumes in it with virsh or virt-install?
>
> # virsh pool-dumpxml myrbdpool
> <pool type='rbd'>
> <name>myrbdpool</name>
> <uuid>2d786f7a-2df3-4d79-ae60-1535bcf1c6b5</uuid>
> <capacity unit='bytes'>6997998301184</capacity>
> <allocation unit='bytes'>10309227031</allocation>
> <available unit='bytes'>6977204658176</available>
> <source>
> <host name='ceph01.powercraft.nl' port='6789'/>
> <host name='ceph02.powercraft.nl' port='6789'/>
> <host name='ceph03.powercraft.nl' port='6789'/>
> <name>libvirt-pool</name>
> <auth type='ceph' username='libvirt'>
> <secret uuid='029a334e-ed57-4293-bb99-ffafa8867122'/>
> </auth>
> </source>
> </pool>
>
> # virt-install --version
> 1.0.1
>
> # virsh --version
> 1.2.9
>
> I ended using virsh edit ceph-test.powercraft.nl and making creating
> the disk manually.
>
> <disk type='network' device='disk'>
> <auth username='libvirt'>
> <secret type='ceph' uuid='029a334e-ed57-4293-bb99-ffafa8867122'/>
> </auth>
> <source protocol='rbd' name='libvirt-pool/kvm01-storage'>
> <host name='ceph01.powercraft.nl' port='6789'/>
> <host name='ceph02.powercraft.nl' port='6789'/>
> <host name='ceph03.powercraft.nl' port='6789'/>
> </source>
> <target dev='vdc' bus='virtio'/>
> </disk>
>
> I use virt-install a lot to define, import and undefine domains, how
> can I use virt-install to manage my rdb disks?
>
> Kind regards,
>
> Jelle de Jong
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
More information about the libvirt-users
mailing list