You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Felipe Polanco <fe...@gmail.com> on 2022/05/04 15:20:13 UTC

Using public cloud images as templates

Hello,

Is it possible to use cloud images from popular Linux OS like Ubuntu or
Centos?

I have added them as templates but none of the boot on a new instance, the
bootloader is stuck at "Booting from hard disk..."

URL:
https://cloud-images.ubuntu.com/focal/current/
Using the amd64-disk-kvm.img as qcow2 template.

Thanks,

Re: Using public cloud images as templates

Posted by Suresh Anaparti <Su...@shapeblue.com>.
Hi Felipe,

Thanks for sharing the libvirt / qemu versions. May be, some compatibility issue with these versions. You can try with other cloud images there.

 
Regards,
Suresh

On 05/05/22, 4:45 PM, "Felipe Polanco" <fe...@gmail.com> wrote:

    Hi,

    # virsh version
    Compiled against library: libvirt 6.0.0
    Using library: libvirt 6.0.0
    Using API: QEMU 6.0.0
    Running hypervisor: QEMU 4.2.1

    On Thu, May 5, 2022 at 6:00 AM Suresh Anaparti <
    Suresh.Anaparti@shapeblue.com> wrote:

    > Hi Felipe,
    >
    > I've tried with cloudimg-amd64.img (as raw template) in hypervisor with
    > libvirt 4.5.0 / qemu 1.5.3, on cloudstack 4.16.1, and it is booting fine.
    >
    > Got the same issue with images cloudimg-amd64-disk-kvm.img,
    > cloudimg-ppc64el.img (as raw templates) in hypervisor with libvirt 4.5.0 /
    > qemu v1.5.3 and v2.12.0. Not sure of the issue yet, with these images.
    >
    > What is your the libvirt / qemu versions in hypervisor (check with 'virsh
    > version' cmd)
    >
    >
    > Regards,
    > Suresh
    >
    > On 04/05/22, 8:50 PM, "Felipe Polanco" <fe...@gmail.com> wrote:
    >
    >     Hello,
    >
    >     Is it possible to use cloud images from popular Linux OS like Ubuntu or
    >     Centos?
    >
    >     I have added them as templates but none of the boot on a new instance,
    > the
    >     bootloader is stuck at "Booting from hard disk..."
    >
    >     URL:
    >     https://cloud-images.ubuntu.com/focal/current/
    >     Using the amd64-disk-kvm.img as qcow2 template.
    >
    >     Thanks,
    >
    >
    >
    >
    >


 


Re: Using public cloud images as templates

Posted by Felipe Polanco <fe...@gmail.com>.
Hi,

# virsh version
Compiled against library: libvirt 6.0.0
Using library: libvirt 6.0.0
Using API: QEMU 6.0.0
Running hypervisor: QEMU 4.2.1

On Thu, May 5, 2022 at 6:00 AM Suresh Anaparti <
Suresh.Anaparti@shapeblue.com> wrote:

> Hi Felipe,
>
> I've tried with cloudimg-amd64.img (as raw template) in hypervisor with
> libvirt 4.5.0 / qemu 1.5.3, on cloudstack 4.16.1, and it is booting fine.
>
> Got the same issue with images cloudimg-amd64-disk-kvm.img,
> cloudimg-ppc64el.img (as raw templates) in hypervisor with libvirt 4.5.0 /
> qemu v1.5.3 and v2.12.0. Not sure of the issue yet, with these images.
>
> What is your the libvirt / qemu versions in hypervisor (check with 'virsh
> version' cmd)
>
>
> Regards,
> Suresh
>
> On 04/05/22, 8:50 PM, "Felipe Polanco" <fe...@gmail.com> wrote:
>
>     Hello,
>
>     Is it possible to use cloud images from popular Linux OS like Ubuntu or
>     Centos?
>
>     I have added them as templates but none of the boot on a new instance,
> the
>     bootloader is stuck at "Booting from hard disk..."
>
>     URL:
>     https://cloud-images.ubuntu.com/focal/current/
>     Using the amd64-disk-kvm.img as qcow2 template.
>
>     Thanks,
>
>
>
>
>

Re: Using public cloud images as templates

Posted by Suresh Anaparti <Su...@shapeblue.com>.
Hi Felipe,

I've tried with cloudimg-amd64.img (as raw template) in hypervisor with libvirt 4.5.0 / qemu 1.5.3, on cloudstack 4.16.1, and it is booting fine.

Got the same issue with images cloudimg-amd64-disk-kvm.img, cloudimg-ppc64el.img (as raw templates) in hypervisor with libvirt 4.5.0 / qemu v1.5.3 and v2.12.0. Not sure of the issue yet, with these images.

What is your the libvirt / qemu versions in hypervisor (check with 'virsh version' cmd)

 
Regards,
Suresh

On 04/05/22, 8:50 PM, "Felipe Polanco" <fe...@gmail.com> wrote:

    Hello,

    Is it possible to use cloud images from popular Linux OS like Ubuntu or
    Centos?

    I have added them as templates but none of the boot on a new instance, the
    bootloader is stuck at "Booting from hard disk..."

    URL:
    https://cloud-images.ubuntu.com/focal/current/
    Using the amd64-disk-kvm.img as qcow2 template.

    Thanks,


 


Re: Using public cloud images as templates

Posted by Rafael del Valle <rv...@privaz.io.INVALID>.
Actually, I also managed to add a Public Image form Ubuntu:
https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img

I found a blog post on how to use ubuntu cloud images with KVM and turns out that .img files are qcow2

I can also confirm that cloud init works, and I see virtio_blk and virtio_net kernel modules loaded.

I also tried hot-resizing the data disk on this VM, and worked just fine. It all seems good to me.

But Again, I am not sure whether additional customizations are required or not.

If all these official images are in a good state for ACS to consume, perhaps we should list the sources and importing procedure in ACS documentation. 

R


On Mon, 2022-05-16 09:21 AM, Rafael del Valle <rv...@privaz.io.INVALID> wrote:
> Hi Felipe,
> 
> I was wondering exactly the same thing. Now most Linux distributions publish cloud images, including a "generic" version targeting KVM for example, most with cloud-init and virtio drivers already there.
> 
> Is it possible that they are already optimized for ACS?
> 
> I just tested adding Debian 10 generic from here:
> https://cloud.debian.org/images/cloud/buster/latest/debian-10-generic-amd64.qcow2
> 
> It booted just find, and cloud init worked, lsmod is showing virtio drivers in use too.
> 
> Are other customizations still required?
> 
> Are there other Linux distributions that publish compatible cloud images?
> 
> 
> 
> 
> On Wed, 2022-05-04 05:20 PM, Felipe Polanco " target="_blank"><fe...@gmail.com> wrote:
> > Hello,
> > 
> > Is it possible to use cloud images from popular Linux OS like Ubuntu or
> > Centos?
> > 
> > I have added them as templates but none of the boot on a new instance, the
> > bootloader is stuck at "Booting from hard disk..."
> > 
> > URL:
> > https://cloud-images.ubuntu.com/focal/current/
> > Using the amd64-disk-kvm.img as qcow2 template.
> > 
> > Thanks,
> > 

Re: Using public cloud images as templates

Posted by Rafael del Valle <rv...@privaz.io.INVALID>.
Hi Felipe,

I was wondering exactly the same thing. Now most Linux distributions publish cloud images, including a "generic" version targeting KVM for example, most with cloud-init and virtio drivers already there.

Is it possible that they are already optimized for ACS?

I just tested adding Debian 10 generic from here:
https://cloud.debian.org/images/cloud/buster/latest/debian-10-generic-amd64.qcow2

It booted just find, and cloud init worked, lsmod is showing virtio drivers in use too.

Are other customizations still required?

Are there other Linux distributions that publish compatible cloud images?




On Wed, 2022-05-04 05:20 PM, Felipe Polanco <fe...@gmail.com> wrote:
> Hello,
> 
> Is it possible to use cloud images from popular Linux OS like Ubuntu or
> Centos?
> 
> I have added them as templates but none of the boot on a new instance, the
> bootloader is stuck at "Booting from hard disk..."
> 
> URL:
> https://cloud-images.ubuntu.com/focal/current/
> Using the amd64-disk-kvm.img as qcow2 template.
> 
> Thanks,
>