OS cloud images, anyone?



  • I'm trying to move from classic ISO installation to the more devops-style cloud image + cloud init or virt-builder&co.

    Does anyone here have done the same transition? Any hints?

    It think regular setup with the console is cumbersome and it's the only thing that cannot be done with standard CLI with modern hypervisors, because it requires a GUI or web interface almost anytime…



  • I'm running openstack at home. So yes I'm running cloud. I still have a bare KVM server at home also and if I need to run a VM I use virt-builder, create the VM, and get the address with virsh. Then I just run Ansible against it.



  • @stacksofplates said in OS cloud images, anyone?:

    I'm running openstack at home. So yes I'm running cloud. I still have a bare KVM server at home also and if I need to run a VM I use virt-builder, create the VM, and get the address with virsh. Then I just run Ansible against it.

    Very nice! It looks like the setup I'm gonna build at my home… any further detail? Thanks for your interesting reply!



  • @francesco-provino said in OS cloud images, anyone?:

    @stacksofplates said in OS cloud images, anyone?:

    I'm running openstack at home. So yes I'm running cloud. I still have a bare KVM server at home also and if I need to run a VM I use virt-builder, create the VM, and get the address with virsh. Then I just run Ansible against it.

    Very nice! It looks like the setup I'm gonna build at my home… any further detail? Thanks for your interesting reply!

    It's just an OpenStack all in one on a DL380 G6. The KVM server is an R710. Updates are pushed out automatically with Ansible and Jenkins. Right now it's just a static Ansible inventory because I was having trouble getting useful information out of the OpenStack dynamic inventory. So right now it's all DHCP reservations. Likely once I get the script straightened out for the inventory, I won't need that any longer.



  • @stacksofplates said in OS cloud images, anyone?:

    @francesco-provino said in OS cloud images, anyone?:

    @stacksofplates said in OS cloud images, anyone?:

    I'm running openstack at home. So yes I'm running cloud. I still have a bare KVM server at home also and if I need to run a VM I use virt-builder, create the VM, and get the address with virsh. Then I just run Ansible against it.

    Very nice! It looks like the setup I'm gonna build at my home… any further detail? Thanks for your interesting reply!

    It's just an OpenStack all in one on a DL380 G6. The KVM server is an R710. Updates are pushed out automatically with Ansible and Jenkins. Right now it's just a static Ansible inventory because I was having trouble getting useful information out of the OpenStack dynamic inventory. So right now it's all DHCP reservations. Likely once I get the script straightened out for the inventory, I won't need that any longer.

    I've tried openstack also (in containers), but never found it too useful. At the moment, my goal is to build an environment that I can fully manage without relying on GUIs, so I can manage it with ssh on the iPad. It also seems to boost my needs to automate!



  • @francesco-provino said in OS cloud images, anyone?:

    @stacksofplates said in OS cloud images, anyone?:

    @francesco-provino said in OS cloud images, anyone?:

    @stacksofplates said in OS cloud images, anyone?:

    I'm running openstack at home. So yes I'm running cloud. I still have a bare KVM server at home also and if I need to run a VM I use virt-builder, create the VM, and get the address with virsh. Then I just run Ansible against it.

    Very nice! It looks like the setup I'm gonna build at my home… any further detail? Thanks for your interesting reply!

    It's just an OpenStack all in one on a DL380 G6. The KVM server is an R710. Updates are pushed out automatically with Ansible and Jenkins. Right now it's just a static Ansible inventory because I was having trouble getting useful information out of the OpenStack dynamic inventory. So right now it's all DHCP reservations. Likely once I get the script straightened out for the inventory, I won't need that any longer.

    I've tried openstack also (in containers), but never found it too useful. At the moment, my goal is to build an environment that I can fully manage without relying on GUIs, so I can manage it with ssh on the iPad. It also seems to boost my needs to automate!

    Ya I've got it running on bare metal. I've got 9 instances on it right now, but adding more. I usually spin them up with Terraform so it's pretty easy to automate.



  • I'm playing with lxd containers and ansible a lot currently. And that would perfectly fit your needs. Creating new container is as simple as running single terminal command:

    lxc launch images:centos/7/amd64 centos

    And you can easily automate and scale it with ansible, including initial config, extra packages installation, cron setup, updates, etc. And chances are someone has already written a role to do it, so you would only need to include the roles in your playbooks.


  • Service Provider

    I've been moving to containers more and more as well. But LXC, not Docker.



  • @scottalanmiller LXC is nice, but I've met a lot of limits in access devices or fs, and it's not usually trivial to overcome them. Examples? Just try to build ubiquiti UNMS in a LXD container.



  • LXD containers by default are unprivileged, some software might not play nice with it. Set the container as privileged and see it issues are gone. Apache is one example when I had to adjust the container.



  • @marcinozga said in OS cloud images, anyone?:

    LXD containers by default are unprivileged, some software might not play nice with it. Set the container as privileged and see it issues are gone. Apache is one example when I had to adjust the container.

    Already done, is not that easy. Also passing devices doesn't work.



  • I had a look at UNMS and the installer is just pulling Docker image. That's a lot of moving parts and getting Docker to run in LXD is a challenge already, just too many variables. There's a feature request to have standard .deb installer.



  • @marcinozga said in OS cloud images, anyone?:

    I had a look at UNMS and the installer is just pulling Docker image. That's a lot of moving parts and getting Docker to run in LXD is a challenge already, just too many variables. There's a feature request to have standard .deb installer.

    I thought @JaredBusch posted a guide to installing UNMS in a Debian 9.1 VM on the forums just the other day. . .

    Edit: Yeah he did, here is the guide.



  • @dustinb3403 said in OS cloud images, anyone?:

    @marcinozga said in OS cloud images, anyone?:

    I had a look at UNMS and the installer is just pulling Docker image. That's a lot of moving parts and getting Docker to run in LXD is a challenge already, just too many variables. There's a feature request to have standard .deb installer.

    I thought @JaredBusch posted a guide to installing UNMS in a Debian 9.1 VM on the forums just the other day. . .

    Edit: Yeah he did, here is the guide.

    Installing Docker in VM is quite different than installing it in LXD container. Think of it as installing Docker inside Docker.


Log in to reply
 

Looks like your connection to MangoLassi was lost, please wait while we try to reconnect.