cockpit-project / cockpit-machines

Cockpit UI for virtual machines
GNU Lesser General Public License v2.1
289 stars 74 forks source link

cockpit-machines installed but not showing on dashboard #1654

Closed imthenachoman closed 4 months ago

imthenachoman commented 4 months ago

I am on KUbuntu 24.04. I followed the instructions as outlined at https://github.com/cockpit-project/cockpit-machines?tab=readme-ov-file#getting-and-building-the-source. I didn't get any errors.

I rebooted and still don't see Virtual Machines on the dashboad/UI.

myusername@myhostname:~/Downloads$ git clone https://github.com/cockpit-project/cockpit-machines
Cloning into 'cockpit-machines'...
remote: Enumerating objects: 12123, done.
remote: Counting objects: 100% (2586/2586), done.
remote: Compressing objects: 100% (495/495), done.
remote: Total 12123 (delta 2327), reused 2107 (delta 2091), pack-reused 9537
Receiving objects: 100% (12123/12123), 11.27 MiB | 18.98 MiB/s, done.
Resolving deltas: 100% (9438/9438), done.

myusername@myhostname:~/Downloads$ cd cockpit-machines/

myusername@myhostname:~/Downloads/cockpit-machines$ make
remote: Enumerating objects: 1536, done.
remote: Counting objects: 100% (1536/1536), done.
remote: Compressing objects: 100% (1375/1375), done.
remote: Total 1536 (delta 252), reused 579 (delta 73), pack-reused 0
Receiving objects: 100% (1536/1536), 7.49 MiB | 14.00 MiB/s, done.
Resolving deltas: 100% (252/252), done.
git archive '6bf8d112f5fe7cae9614cb5a1c586e33b27fe4d2^{tree}' -- pkg/lib test/common test/static-code tools/node-modules  | tar x
make package-lock.json && NODE_ENV= ./build.js
make[1]: Entering directory '/home/myusername/Downloads/cockpit-machines'
tools/node-modules make_package_lock_json
  REMOVE   node_modules
  CLONE    node_modules  [ref: af64380e5c5ee33df6457ce73882262ce9fe68b5]
  COPY     package-lock.json
make[1]: Leaving directory '/home/myusername/Downloads/cockpit-machines'
21:20:32: Build finished in 2003 ms

myusername@myhostname:~/Downloads/cockpit-machines$ sudo make install
echo cs de es fi fr he it ja ka ko nl pl ru sv tr uk zh_CN | tr ' ' '\n' > po/LINGUAS
mkdir -p /usr/local/share/cockpit/machines
cp -r dist/* /usr/local/share/cockpit/machines
mkdir -p /usr/local/share/metainfo/
msgfmt --xml -d po \
        --template org.cockpit-project.machines.metainfo.xml \
        -o /usr/local/share/metainfo/org.cockpit-project.machines.metainfo.xml

Am I missing something?

martinpitt commented 4 months ago

If you install from upstream, you also need to make sure that all the package dependencies are installed, in particular libvirt-dbus. Easiest is probably to run sudo apt install -t noble-backports cockpit-machines (see https://cockpit-project.org/running.html#ubuntu) -- either actually install it, or at least check which dependencies it would install, and then install these manually.

imthenachoman commented 4 months ago

Ah. Got it. Thank you!