16
submitted 1 month ago* (last edited 1 month ago) by cygnus@lemmy.ca to c/linux@lemmy.world

Sorry if this kind of question isn't allowed here, but I'm at my wit's end. VB randomly started launching on startup about 2 weeks ago (on EndeavourOS) and I can't figure out why. There's no shortcut in ~/config/autostart, it isn't in the KDE startup apps list, and I can't find anything virtualbox-related with systemctl either. There's also no setting in the VB app itself. WTF?

top 16 comments
sorted by: hot top controversial new old
[-] pelya@lemmy.world 6 points 1 month ago

Your viruses installed themselves a Windows virtual machine to run properly?

[-] spankmonkey@lemmy.world 5 points 1 month ago

https://www.baeldung.com/linux/virtualbox-vm-start-on-boot

To successfully automate a VirtualBox VM to start at boot time, we must ensure we’re running VirtualBox version 5 and above.

By default, after installing VirtualBox, the vboxautostart-service unit file should exist in the /etc/systemd/system/ directory.

Alternatively, for systems missing the vboxautostart service, we can create a custom systemd unit file that will contain our configurations to run VirtualBox on boot. systemd is a system and service manager for most Linux-based OSes.

Didn't see you mention the autostart-service, and the article is recent enough that maybe it was added as part of an update?

[-] cygnus@lemmy.ca 4 points 1 month ago

vboxautostart.service does not exist

[-] BCsven@lemmy.ca 4 points 1 month ago

Anything in /etc/systemd/system as vboxautostart?

Anything in /etc/default/ virtualbox file?

[-] cygnus@lemmy.ca 5 points 1 month ago

No to both!

[-] mvirts@lemmy.world 3 points 1 month ago

Looks like you need to change the session restore settings in KDE. It's the virtual box GUI that starts up?

https://docs.kde.org/stable5/en/plasma-desktop/kcontrol/kcmsmserver/index.html

[-] JTskulk@lemmy.world 3 points 1 month ago

Try to exclude it from being restored on KDE startup. There could be something running in the background that keeps getting saved and restored. Go to System Settings, System, Desktop Session, put virtualbox in the ignored applications list. You can also just choose "Start with an empty session" and then relog to see if that stops it from coming back, then you'll know if this is causing your problem or not. Good luck!

[-] cygnus@lemmy.ca 3 points 1 month ago

I was feeling good about this one, but that didn't work either.

[-] JTskulk@lemmy.world 1 points 1 month ago

Bummer! What's its parent process? Maybe that will hint at something.

[-] cygnus@lemmy.ca 1 points 1 month ago

I'm not sure what you mean by this, sorry! My Linux expertise is limited once I get below surface level.

[-] JTskulk@lemmy.world 2 points 1 month ago

Well hey, welcome to the Linux club :)

Unlike Windows, in Linux every process has a parent except for PID (Process ID) 1, which is the init system. You can run a command like ps auxf and you'll get a tree of all your processes and you can hopefully see what spawned VirtualBox.

[-] Tiempo@lemmy.dbzer0.com 3 points 1 month ago

It's not a VB problem. I have the same issue with other programs too in Endeveaour OS. It appears that when you turn off the machine sometime a program get "stuck" and will keep auto starting itself without reason. The first time it happened to me it went away after an update, but now I'm having Firefox and Strawberry starting themselves just because they feel it.

My hypothesis is that if you shutdown the machine without closing a program it gets stuck. How to get rid of it? I still have no idea

[-] cygnus@lemmy.ca 2 points 1 month ago

Interesting... Do you also use KDE?

[-] ale@mastodon.manalejandro.com -1 points 1 month ago
[-] cygnus@lemmy.ca 2 points 1 month ago

No hablo espanol, but this seems to be telling me how to install virt-manager, which is not what I'm tying to do.

this post was submitted on 11 Sep 2024
16 points (83.3% liked)

Linux

8057 readers
60 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS