Cockpit-machines: KVM inside cockpit

Testing something fun currently, manage KVM machine inside cockpit, it looks nice, a lot of settings are exposed, if not you can edit with virsh binary

I think we could obsolete phpvirtualbox :stuck_out_tongue:


5 Likes
5 Likes

Wow, this Is a Great module.
How i can test It?

A bit too soon, maybe this week, I am now doing still some tests and guesses

In fact I am playing with a version really nice from centos8 stream :), much up to date than the centos8 version, obviously I do not speak of the centos7 version that is completely obsolete.

So frankly I am tested it fully because I do not like the idea to release something broken. For now what I do is working.

This weekend I would like to test the networking, at the end of the installation the default bridge NAT is working, you can create others if needed.

good new delegation is possible by dropping a file : https://libvirt.org/dbus.html#usage

you have to add your user in the libvirt group

usermod -a -G libvirt stephane@domain.org

1 Like

And we have a documentation : https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_virtualization/

1 Like
1 Like

Hi @stephdl looked at this in the quest to build a hypervisor on arm. Abandoned it because my specific needs.

I am familiar with it and like to help with testing; Before doing this: does it work in a VM?

all my tests are done in KVM VM :wink:

for now @mark_nl I use the centos8 STREAM rpm, it works well, I looked to build it myself but we have some dependencies not at the good version.

 Error: No Package found for gnutls-devel >= 3.4.3
Error: No Package found for libssh-devel >= 0.8.5
Error: No Package found for systemd-devel >= 235

I believe that gnutls-devel could be a pest for requirement

Saying that I know that you love spec file, if you are curious for something, I decided first to see if I can do something with it before to build it for el7

You are mistaken :grinning:
I do not love them, it is a necessity on centos-arm :upside_down_face:

Did my tests/quest on el8 back than…which rpm is the problem?

1 Like

cockpit-machines

1 Like

will investigate (not tonight) and report back to you
kudos for your work!

1 Like

thank for your support, this kind of encouragement is the fuel of efforts

1 Like

It seems to be part of the general cockpit package on centos8-stream:

Will have a look at the el7 package and see if it can be build including cockpit-machines…and figure out why it is not included…

there is now Suggests that is not undesrtood by the el7 mock configuration IIRC

I needed to remove them

1 Like

Additional cockpit-plugins live in the centos-7 Extras repository.
EDIT:
It is disabled on nethserver-7:

 yum --enablerepo=extras install cockpit-machines
#  yum install cockpit-machines
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
 * ce-base: mirror.as29550.net
 * ce-extras: mirror.as29550.net
 * ce-sclo-rh: mirror.as29550.net
 * ce-sclo-sclo: mirror.as29550.net
 * ce-updates: mirror.as29550.net
 * epel: ftp.nluug.nl
 * nethforge: nethserver.interlin.nl
 * nethserver-base: nethserver.interlin.nl
 * nethserver-updates: nethserver.interlin.nl
Resolving Dependencies

< OUTPUT TRUNCATED>

--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
 Package                                              Arch                  Version                               Repository                 Size
==================================================================================================================================================
Installing:
 cockpit-machines                                     x86_64                195.12-1.el7.centos                   ce-extras                 477 k
Installing for dependencies:
 augeas-libs                                          x86_64                1.4.0-10.el7                          ce-base                   357 k
 autogen-libopts                                      x86_64                5.18-5.el7                            ce-base                    66 k
 boost-iostreams                                      x86_64                1.53.0-28.el7                         ce-base                    61 k
 boost-random                                         x86_64                1.53.0-28.el7                         ce-base                    39 k
 boost-system                                         x86_64                1.53.0-28.el7                         ce-base                    40 k
 boost-thread                                         x86_64                1.53.0-28.el7                         ce-base                    58 k
 bzip2                                                x86_64                1.0.6-13.el7                          ce-base                    52 k
 fuse-libs                                            x86_64                2.9.2-11.el7                          ce-base                    93 k
 glusterfs                                            x86_64                6.0-37.el7                            ce-base                   619 k
 glusterfs-api                                        x86_64                6.0-37.el7                            ce-base                    86 k
 glusterfs-cli                                        x86_64                6.0-37.el7                            ce-base                   175 k
 glusterfs-client-xlators                             x86_64                6.0-37.el7                            ce-base                   836 k
 glusterfs-libs                                       x86_64                6.0-37.el7                            ce-base                   395 k
 gnutls-dane                                          x86_64                3.3.29-9.el7_6                        ce-base                    36 k
 gnutls-utils                                         x86_64                3.3.29-9.el7_6                        ce-base                   238 k
 gperftools-libs                                      x86_64                2.6.1-1.el7                           ce-base                   272 k
 libiscsi                                             x86_64                1.9.0-7.el7                           ce-base                    60 k
 librados2                                            x86_64                1:10.2.5-4.el7                        ce-base                   1.8 M
 librbd1                                              x86_64                1:10.2.5-4.el7                        ce-base                   2.4 M
 libvirt                                              x86_64                4.5.0-36.el7_9.3                      ce-updates                203 k
 libvirt-bash-completion                              x86_64                4.5.0-36.el7_9.3                      ce-updates                203 k
 libvirt-client                                       x86_64                4.5.0-36.el7_9.3                      ce-updates                500 k
 libvirt-daemon                                       x86_64                4.5.0-36.el7_9.3                      ce-updates                844 k
 libvirt-daemon-config-network                        x86_64                4.5.0-36.el7_9.3                      ce-updates                204 k
 libvirt-daemon-config-nwfilter                       x86_64                4.5.0-36.el7_9.3                      ce-updates                210 k
 libvirt-daemon-driver-interface                      x86_64                4.5.0-36.el7_9.3                      ce-updates                242 k
 libvirt-daemon-driver-lxc                            x86_64                4.5.0-36.el7_9.3                      ce-updates                335 k
 libvirt-daemon-driver-network                        x86_64                4.5.0-36.el7_9.3                      ce-updates                416 k
 libvirt-daemon-driver-nodedev                        x86_64                4.5.0-36.el7_9.3                      ce-updates                241 k
 libvirt-daemon-driver-nwfilter                       x86_64                4.5.0-36.el7_9.3                      ce-updates                265 k
 libvirt-daemon-driver-qemu                           x86_64                4.5.0-36.el7_9.3                      ce-updates                751 k
 libvirt-daemon-driver-secret                         x86_64                4.5.0-36.el7_9.3                      ce-updates                232 k
 libvirt-daemon-driver-storage                        x86_64                4.5.0-36.el7_9.3                      ce-updates                202 k
 libvirt-daemon-driver-storage-core                   x86_64                4.5.0-36.el7_9.3                      ce-updates                442 k
 libvirt-daemon-driver-storage-disk                   x86_64                4.5.0-36.el7_9.3                      ce-updates                233 k
 libvirt-daemon-driver-storage-gluster                x86_64                4.5.0-36.el7_9.3                      ce-updates                241 k
 libvirt-daemon-driver-storage-iscsi                  x86_64                4.5.0-36.el7_9.3                      ce-updates                231 k
 libvirt-daemon-driver-storage-logical                x86_64                4.5.0-36.el7_9.3                      ce-updates                234 k
 libvirt-daemon-driver-storage-mpath                  x86_64                4.5.0-36.el7_9.3                      ce-updates                229 k
 libvirt-daemon-driver-storage-rbd                    x86_64                4.5.0-36.el7_9.3                      ce-updates                236 k
 libvirt-daemon-driver-storage-scsi                   x86_64                4.5.0-36.el7_9.3                      ce-updates                231 k
 libvirt-libs                                         x86_64                4.5.0-36.el7_9.3                      ce-updates                4.2 M
 lzop                                                 x86_64                1.03-10.el7                           ce-base                    54 k
 netcf-libs                                           x86_64                0.2.8-4.el7                           ce-base                    70 k
 numad                                                x86_64                0.5-18.20150602git.el7                ce-base                    35 k
 qemu-img                                             x86_64                10:1.5.3-175.el7_9.1                  ce-updates                703 k
 radvd                                                x86_64                2.17-3.el7                            ce-base                    94 k

Transaction Summary
==================================================================================================================================================
Install  1 Package (+47 Dependent packages)

Total download size: 20 M
Installed size: 58 M
Is this ok [y/d/N]:

This version (cockpit-machines 195.12-1.el7.centos) does not work?

Old version, I suppose we could work with it but we miss some interesting feature like the bridge to lan in the UI

Are you sure it’s a valid path forward to “mix” two versions of cockpit, sounds scary to me…

If it is just the bridge to lan you can also take the position is not missing but a feature…
Make the bridge with e-smith just to be sure it does not interferes with NS-networking :thinking:

Yeah this is my one million kisses question I would like to solve

My ultimate hope is that it is one rpm without dependencies of other cockpit rpm even a specific version of kvm, so in short a bundle of javascript files and bash script. It should work however I have no clues about what is broken yet, my tests did verify it works

Need to think on it