You are not logged in.

#1 2017-09-05 10:28:41

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Best way to stop VirtualBox temporary?

I run VirtualBox guests but sometimes I need to run the Android Emulator and I can not run this while VirtualBox is running. So I was  wondering what is the best way to stop VirtualBox and then start it again afterwards?


Regards,

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#2 2017-09-05 10:35:39

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: Best way to stop VirtualBox temporary?

You can pause VirtualBox machines.

Then again, if you are running many machines simultaneously, it may become a little cumbersome to do so manually on the GUI, so the VBoxManage commands may be useful for scripting, e.g.:

VBoxManage controlvm "my_vm" pause
# run Android Emulator
VBoxManage controlvm "my_vm" resume

pkgshackscfgblag

Offline

#3 2017-09-05 10:37:06

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Best way to stop VirtualBox temporary?

Thx, but I wasn't thinking about the guests.. I need to unload all the VirtualBox modules and stop the "service".


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#4 2017-09-05 10:51:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: Best way to stop VirtualBox temporary?

Then do that.

systemctl stop <vboxservice(s)>
rmmod <vbox modules>
# run android emulator
modbprobe <vbox modules>
systemctl start <vboxservice(s)>

What's the question here, it sounds like you know exactly what you need to do.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2017-09-05 10:54:56

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Best way to stop VirtualBox temporary?

How about just unloading the modules...

modprobe -r vboxdrv vboxnetadp vboxnetflt vboxpci
# run Android Emulator
modprobe vboxdrv vboxnetadp vboxnetflt vboxpci

Which service are you talking about?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2017-09-05 11:00:54

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Best way to stop VirtualBox temporary?

Trilby wrote:

Then do that.

systemctl stop <vboxservice(s)>
rmmod <vbox modules>
# run android emulator
modbprobe <vbox modules>
systemctl start <vboxservice(s)>

What's the question here, it sounds like you know exactly what you need to do.

Guess when you put it like that, it was a stupid question.. I wasn't sure which service needed to be stopped but now that I think about it, only the modules needs to be unloaded I think...


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#7 2017-09-05 11:01:51

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Best way to stop VirtualBox temporary?

slithery wrote:

How about just unloading the modules...

modprobe -r vboxdrv vboxnetadp vboxnetflt vboxpci
# run Android Emulator
modprobe vboxdrv vboxnetadp vboxnetflt vboxpci

Which service are you talking about?

Not sure, I thought maybe there was a service too (but could not find it) but I guess only the modules needs to be unloaded... Thx.. smile


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#8 2017-09-05 11:04:49

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Best way to stop VirtualBox temporary?

slithery@red:~/$ pacman -Ql virtualbox | grep service
virtualbox /usr/lib/systemd/system/vboxweb.service

VirtualBox only ships with a service file for the web interface. If you haven't enabled this then there aren't any VirtualBox services running.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-09-05 11:05:31

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Best way to stop VirtualBox temporary?

Yes, that was the only service file I found.. smile


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

Board footer

Powered by FluxBB