extending cloud Images in oVirt

I have a question indirectly releted to Ovirt. I need to move one old setup into VM running in oVirt cluster. The VM was based on on Debian 8.9, so I took a Debian cloude image from https://cdimage.debian.org/cdimage/openstack/8.9.8-20171105/ uploaded it into my cluster and attached it to VM. All looks good but ... the disk shows only 2G and indeed ned more disk space. I tried to edit and add more space - and it didnt work. Any ideas how to extend those cloud images? Regards, Artem

On 23 November 2017 at 20:41, Artem Tambovskiy <artem.tambovskiy@gmail.com> wrote:
I have a question indirectly releted to Ovirt. I need to move one old setup into VM running in oVirt cluster. The VM was based on on Debian 8.9, so I took a Debian cloude image from https://cdimage.debian.org/cdimage/openstack/8.9.8-20171105/ uploaded it into my cluster and attached it to VM. All looks good but ... the disk shows only 2G and indeed ned more disk space. I tried to edit and add more space - and it didnt work.
Any ideas how to extend those cloud images?
While you can resize the underlying disk, but extending the root filesystem can be a bit tricky (It can be done locally with virt-resize, but AFAIK oVirt does not provide a UI or an API to run it after the image had been uploaded). We typically just add an extra disk and mount it where we need extra space. -- Barak Korren RHV DevOps team , RHCE, RHCi Red Hat EMEA redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted

On Thu, Nov 23, 2017 at 7:41 PM, Artem Tambovskiy < artem.tambovskiy@gmail.com> wrote:
I have a question indirectly releted to Ovirt. I need to move one old setup into VM running in oVirt cluster. The VM was based on on Debian 8.9, so I took a Debian cloude image from https://cdimage.debian. org/cdimage/openstack/8.9.8-20171105/ uploaded it into my cluster and attached it to VM. All looks good but ... the disk shows only 2G and indeed ned more disk space. I tried to edit and add more space - and it didnt work.
Any ideas how to extend those cloud images?
The proper solution is cloud-initramfs-growroot: it will expand on boot the latest disk partition consuming all the all space that follows it. https://packages.debian.org/jessie/cloud-initramfs-growroot
Regards, Artem
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (3)
-
Artem Tambovskiy
-
Barak Korren
-
Simone Tiraboschi