News for hackers. Stuff that matters.
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by guerby on Friday September 04, 2020 @03:27AM (#24372596)
We're currently migrating from VMware to libvirt, we discovered the cockpit project and cockpit-machines to manage VMs:

https://cockpit-project.org/

cockpit-machines is available in a recent version in debian backports, installing it is trivial, no configuration, https://hostname:9090/ and just works.

RedHat announced that cockpit will be the long term successor of virt-manager:

https://www.redhat.com/en/blog/managing-virtual-machines-rhe...

https://blog.wikichoon.com/2020/06/virt-manager-deprecated-i...

cockpit has frequent releases, latest:

https://cockpit-project.org/blog/cockpit-227.html

It hasn't all the features of virt-manager, far from it, but looks promising.

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by cpsaltis on Friday September 04, 2020 @10:20AM (#24375130)
The main issue with virt-manager is that it's a desktop application and you can't really collaborate with others when managing infrastructure.

Cockpit solves this issue. The feature set in slightly different but mainly it is limited as to what you can manage.

When running different types of infrastructure at the same time, e.g. KVM + AWS + Azure + ... it won't help much. In such cases it would make sense to check out Mist (https://github.com/mistio/mist-ce), which does something similar to Cockpit but for ~20 infra techs.

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by wazoox on Friday September 04, 2020 @10:36AM (#24375265)
Virt-manager can connect simultaneously from many different terminals to many different libvirt servers. What do you mean by "you can't collaborate with others"?
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by cpsaltis on Friday September 04, 2020 @11:28AM (#24375784)
I mean that you can't really have multiple people, from multiple teams, accessing the same infra with different types of rights and with centrally managed authentication/authorization/logging.
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by simcop2387 on Friday September 04, 2020 @01:12PM (#24376822)
That's exactly what libvirt lets you do. It uses policykit to handle the authorization, cockpit doesn't change that and still requires you to use policykit to control who has access to what.

https://libvirt.org/aclpolkit.html

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by indolering on Friday September 04, 2020 @07:33PM (#24379989)
: /
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by snicker7 on Friday September 04, 2020 @10:14AM (#24375089)
One thing to note is that Cockpit is very tied to systemd. Doesn't work with alt inits.
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by ghostpepper on Friday September 04, 2020 @12:07PM (#24376210)
Can you elaborate on this? Does cockpit include a handful of services/sockets that must be activated in sequence? Or does it rely on other parts of the systemd constellation
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by heroprotagonist on Saturday September 05, 2020 @02:36PM (#24385813)
If you like this, you should really check out oVirt. It's the open upstream of RHV. It should look very familiar to you.

Red Hat obscure it a bit, presumably because there's very little difference from RHV (and might detract from sales), so the website is not so shiny. But play with it.

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by lunchables on Friday September 04, 2020 @09:35AM (#24374781)
Red Hat really has gone all in on cockpit as well. It is very polished and pretty full featured, and continues to improve. Also very easy to setup on RHEL installations. When you login the MOTD actually has instructions on how to enable cockpit, that's how hard they're pushing it.
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by sgt on Friday September 04, 2020 @09:05AM (#24374543)
I gave it a shot, and it was able to see my running libvirt VM's although it could not create one due to an obscure error of not supporting the "custom" CPU type. The running VM's are running in full virtualization so it is probably just a minor bug in Cockpit, seeing that it is after all just a libvirtd frontend in this regard. Aside from that, Cockpit looks fairly stable and it has potential, but keep in mind it is very simple.
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by servilio on Friday September 04, 2020 @11:42AM (#24375952)
> RedHat announced that cockpit will be the long term successor of virt-manager

For RHEL, virt-manager will still be developed independently.

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by indolering on Friday September 04, 2020 @07:31PM (#24379977)
> For RHEL, virt-manager will still be developed independently.

By whom? The vast majority of contributions are paid for by Red Hat [0].

[0]: https://github.com/virt-manager/virt-manager/graphs/contribu...

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by yrro on Friday September 04, 2020 @11:46AM (#24375992)
Phew!
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by thejosh on Friday September 04, 2020 @08:00AM (#24374148)
That's awesome, thanks for the share.

For my homelab I use proxmox on a couple of machines and it works great for managing containers (in terms of LXC containers that would be more of a traditional VM) and it works great. Most people/companies don't need the complexities that come with Kubernetes or other tools like that.

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by guerby on Friday September 04, 2020 @09:04AM (#24374540)
cockpit has many "applications" including cockpit-podman to manage containers :

https://github.com/cockpit-project/cockpit-podman

This is the Cockpit user interface for podman containers.

It is being actively developed and has not yet reached feature parity with cockpit-docker. For now you can do basic image and container tasks for both system and user containers.

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by indolering on Friday September 04, 2020 @07:36PM (#24380022)
> RedHat announced that cockpit will be the long term successor of virt-manager:

Sweet, now security bugs in the same-origin-policy can root my virtual machine!

I really wish RedHat would make a competitor to VirtualBox.

Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by spicyusername on Sunday September 06, 2020 @09:12AM (#24391077)
QEMU / KVM and either virt-manager or cockpit is that competitor.
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by RedShift1 on Friday September 04, 2020 @10:25AM (#24375175)
What software do you use to back up the virtual machines?
Re:Libvirt – The Unsung Hero of Cloud Computing (2013) by guerby on Friday September 04, 2020 @11:11AM (#24375629)
We're currently trying to replace our proprietary backup software by using libvirt snapshot-create-as/blockcommit and borgbackup on raw image.

  virsh snapshot-create-as ... --disk-only
  borg create .... vmimage.raw
  virsh blockcommit ... --active --pivot
borgbackup does compression and deduplication and has a simple command line and excellent documentation (and IRC channel :).

https://www.borgbackup.org/

guestfish/libguestfs is then used if you need specific files within an image instead of a complete restore.

https://libguestfs.org/guestfish.1.html

Example dump the name of all files on all filesystems:

   guestfish --ro -i -a vmimage.raw find /
Can be used to check integrity post backup too, and may be we'll add some file indexing tools.