Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging tools more easily available in compute pods and VMs #1307

Open
cloneable opened this issue Mar 6, 2025 · 3 comments
Open

Debugging tools more easily available in compute pods and VMs #1307

cloneable opened this issue Mar 6, 2025 · 3 comments
Labels
c/autoscaling/neonvm Component: autoscaling: NeonVM

Comments

@cloneable
Copy link

Problem description / Motivation

Debugging tools missing in compute VMs and not easily installable when VM is at memory limit. And because pod uses Alpine and the VM Debian we can't simply copy tools and libs from the pod into the VM.

Feature idea(s) / DoD

During INC-415 it would have helped a lot to have network debugging tools readily available in at least the pod and possibly in the VM.

Implementation ideas

I understand we don't want to have too many things exposed in the VM by default, so I would be good if one can easily install debug tooling ad-hoc. This could be a tarball in the pod that unpacked inside the VM when a script in the pod is run.

Ideally, we would have a pre-built image used with kubectl debug containing everything we need.

@cloneable cloneable added the c/autoscaling/neonvm Component: autoscaling: NeonVM label Mar 6, 2025
@sharnoff
Copy link
Member

From @kelvich: fixing #1304 might provide another route for this issue

@kelvich
Copy link
Contributor

kelvich commented Mar 10, 2025

that was helpful:

apt update
apt install -y tcpdump screen iproute2 dnsutils iputils-ping lsof strace

@cloneable
Copy link
Author

Right, I should have mentioned that sometimes it's not possible to install tools when VM is too loaded:

$ apt install iproute2 tcpdump
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  dbus libapparmor1 libatm1 libbpf0 libbsd0 libcap2 libcap2-bin libdbus-1-3 libmd0 libmnl0 libpam-cap libpcap0.8
  libxtables12
Suggested packages:
  default-dbus-session-bus | dbus-session-bus iproute2-doc apparmor
The following NEW packages will be installed:
  dbus iproute2 libapparmor1 libatm1 libbpf0 libbsd0 libcap2 libcap2-bin libdbus-1-3 libmd0 libmnl0 libpam-cap libpcap0.8
  libxtables12 tcpdump
0 upgraded, 15 newly installed, 0 to remove and 10 not upgraded.
Need to get 0 B/2556 kB of archives.
After this operation, 7033 kB of additional disk space will be used.
Do you want to continue? [Y/n]
FATAL -> Failed to fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/autoscaling/neonvm Component: autoscaling: NeonVM
Projects
None yet
Development

No branches or pull requests

3 participants