Ubuntu :: Script To Check To See If Any VMs Are Running In VirtualBox?
Oct 27, 2010
I wrote up a script to check to see if any VMs are running in VirtualBox, and if there are, it would save the state they are in and then reboot or shutdown the host.Is there a way to make that script run outside of using an alias for "reboot" and "halt" when I run those two commands?Here's the script:
Code:
#!/bin/bash
if [[ -n $(VBoxManage -nologo list runningvms) ]]
I currently run VNC with Gnome to run VirtualBox for my VPS's, but the problem I'm facing is that occasionally, the VNC session will die.
Ubuntu - 11.04 Server Edition.
I mean, randomly just die and then through up an error (specially connection refused 10061). The problem caused by this is that after I reset the VNC session, VirtualBox will have stopped and in turn the VPS's.
Is there any way I could run VirtualBox without being dependent on VNC + Gnome? Or at least, beable to stop VNC is dying on me?
If you require any more information, just ask and I'll reply within 5 minutes.
Everything works fine; No problems running WinXP from an ISO, etc. I have several Windows only applications which I want to run on the WinXP VM. I cannot see the programs I have downloaded when using Explorer for Windows.Ordinarily, in a WinXP only system, I just find the program to be installed and double click on it to start the automatic installation routine.In this case, I cannot see any of the .exe files used for the install.I have placed those downloaded Windows application in the same directory on my Ubuntu Box as where VirtualBox, the Sun Guest Editions and the CD Image of the Garmin Trip and Map system.I installed the Garmin system directly from and ISO of the CD I made using Brasero. It works without a hitch.Should I take the Windows e.e programs and burn them to a CD and then transfer them as ISO tback to the VM drive?
Is there a way I can run my Windows Vista operating system that is already installed, on a virtual machine while on Ubuntu? I don't want to keep rebooting. The only reason I have my Vista partition is for Maplestory. ( A game that has gameguard which can't run under wine)
I have installed 'VirtualBox' on my lucid lynx and want to load the Microsoft XP OS. When I start the virtualization I get this message in the VirtualBox terminal---"Fatal: Could not read from the boot medium! System Halted."--- What could be the problem?
run a Hamachi client in a Windows virtualbox and be able to set it up (using network bridging, maybe?) like Hamachi was running in the host itself.
I'm most definitely not a networking expert, but I thought it would be worth a try to see if anyone had any ideas. Hamachi for linux is outdated and unstable.
Also, if this isn't possible and anyone has another cross-platform zero-config VPN solution as stable as Hamachi
I have WindowsXP installed under VirtualBox. Most of the time this works fine, but sometimes when I boot it up, it runs so incredibly slowly that it is unusable. My only solution to this has been to copy out the important data, restore the vdi file from backup and reboot. This usually solves the problem until next time. "top" shows that vbox is taking 35% of the memory (which is the amount I have allocated) and about 102% of my dual core's CPU. Everything else is running OK at the time.
I've been trying to get a converted virtual disk running in VirtualBox for the past several days. The VM begins to boot in a window but never gets past a black field. Until today the title bar would always change from "running" to "suspended" and just hang there. Now it just keeps saying "running" but never boots so I'm thinking the virtual disk may have become corrupted from repeated shutdowns without ever booting.
The User Manual at VirtualBox.org is of little help since it appears to assume you're using their packages. They also make references to utilities or scripts like "/etc/init.d/vboxdrv" that aren't even in the latest version so I think it hasn't been updated in a while.
There doesn't appear to be many hints in the Vbox.log either - couldn't find a way to get more verbose logging. Until now I'd get to this point and it wouldn't change until I shut it down:
I'm guessing the reason for the suspension was the message immediately above the notice. Now I just see the "unmapped device" message and the guest window says "running" indefinitely. I've attached copies of logs from a couple of sessions, one where it suspends itself (a vnc session) and another where it just stays running (a console session). Some googling suggested that the "unmapped device" message implies it can't find the boot drive or the boot sector on the virtual disk.
The host is normally accessed through a VNC session to a virtual console but VBox log messages indicate that it cannot determine the keyboard type when accessed this way so I now have to physically sit at the native console. If anyone knows of a way to overcome this limitation I'm all ears.
People don't usually respond to my threads so I'm basically talking to myself outloud here. I'll read it again later an maybe come up with something else to try. For now I'm going to remove all the VBox packages and re-install them, starting from scratch. If that doesn't get it working I'll delete the converted virtual disk and re-convert it from the original. If I still can't get VBox working after that I'll be forced to install VMware Server (resource hog). I'm getting desperate now...
[Background] Until a few weeks ago we were happily using qemu-kvm but encountered a bug when using the "-smb" argument after updating the host from Fedora 9 to 12. (re: F12: qemu-kvm with -smb hangs then dies) In an attempt to get our virtualized MS Windows Server 2003 back up and running I installed VirtualBox-OSE-3.0.10-1.fc12.x86_64 and friends over the Christmas break. I converted the qemu qcow2 image to raw then to vdi format using qemu-img and VBoxManage tools. There were no errors during the install of VirtualBox. In the beginning Bug Buddy notified of a crash whenever we started up VBox but after some digging and experimenting I believe the crashes were caused by running VBox in a VNC session instead of at the console. I haven't seen a crash when starting it in a native console session. Unfortunately, this means I can do very little remotely.
I am trying to install X on my Arch system, but as you know there is a problem with running X as a guest in Vb.
According to the Wiki, X will work on VB 3.2.9, but every time I try to follow the link the URL is not available. Does anybody know how to get this download?
According to the wiki, 3.2.10 will not work with X, but I am not certain if there is a problem with the version I am currently running (3.2.8).
I decided to take centos 5.5 for a testdrive. I download the live cd iso and attempted to boot the system via virtualbox on my mac os 10 system. I get the blue boot screen and choosing either the graphical boot or text boot gets me no where, the blue screen remains and nothing happens). Virtualbox is able to boot other linux systems fine so I am not sure if this is a centos issue or centos/virtualbox issue.
Essentially the title says it all. I have windows 7 installed and have no problems with virtual mode but how would I go about having the computer boot into ubuntu (KDE) then boot the virtual machine only to follow with seamless mode? I don't care if I can see the process work, by that I mean the booting of windows.
I tried adding myself to the group vboxusers but it did not help.
I then read that the reason that i don't have any sub capability when i'm running XP as guest OS using VirtualBox is that I have a open source version of the program.
So I uninstalled the one I got through software center and downloaded and installed one from VirtualBox website. It installs but does not tell me where to find it in the menu so I don't know how to launch the program. It also doesn't show up as an "installed software" when I search for it in software center.
I need to change the screen resolution, but there is no xorg.conf file.. Under system/preferences/screen resolution there is only 800x600 and 640x480 to choose from. I want at least 1024x780.
I recently installed debian testing, amd64, on my box and I am running the xfce desktop. When I login, I always get a bubble popup telling me that virtualbox is not running. Is it something I should be worried about? I use only Linux on my machine.
I'd like to know if there is a script that can check and see if an application has been closed (I don't know a great deal about bash programming).I'm running an organ programme with this script.
/usr/bin/jackd -r -t5000 -dalsa -dhw:0 -r44100 -p1024 -n2 -P & java -jar /home/user/jOrgan/jorgan.jar & jack-rack -s space space &
I need a script that is able to check if a service is running or not. It has to do it automatic since it is for restarting a GameServer.
I tried to make one myself, but since the .x86 file has the same name for every server, it is hard to know a way to check if the server is running with the right process.
Is there a way to make a script which is able to check if a service is running (service has same name, but using other ports)
How can I get access to my NTFS Partitions in VirtualBox running Windows XP Pro? I saw it somewhere once saying something about setting up shared files but it was confuseing and did not work.
I have triple monitors working on my 10.10 ubuntu system and they work for most things. Except k9copy and virtual box will cause x to restart. glxgears works fine.
xorg.conf Code: # nvidia-settings: X configuration file generated by nvidia-settings # nvidia-settings: version 260.19.06 (buildd@yellow) Mon Oct 4 15:59:51 UTC 2010
First I wanted to install the proprietary software Virtualbox-PURE cuz there is usb support, I need.
Added the Repository and installed it (virtualbox-4.0) and dkms. Here is my sources.list $ cat /etc/apt/sources.list # Debian Hauptrepos deb [URL] squeeze main contrib non-free
# Debian Update-Repos deb [URL] main contrib non-free .....
The result of all is: virtualbox is still not running. I use experimental branch flash is not working now. flashplugin was installed, I restarted my browsers, not working. I tested it with opera, chromium and iceweasel.
My questions are: How I ever can go back to stable? How can I make virtualbox run? How can I make flash run?
I'm using debian squeeze with gnome 2.30.5. When you need more infos or results of commands I give it to you. 2 days of work and nothing is running.
I cant get my linux server ( centos5 ) with virtualbox run 2 virtual machines in headless mode. Only one machine gets network connection. Can anyone tell me how to make 2 or more virtual machines work with 1 eth-port in headless mode using virtualbox ?
I am facing troubles installing XP on Virtualbox 3.1
I use a desktop ASUS, Dual Core, 3gig RAM, 500 Gig hard drive. I run Linux Mint 9.
On installing XP in Virtualbox I ran into trouble, I could not get my cursor captured into the XP install. Despite pressing right CTRL. The window would pop up with info on "capture" but the cursor would not move.
I tried again full screen. This seemed to lead to continual re-boots. Perhaps I should have let it re-boot itself, but kept pressing "enter" going round in circles.
Maybe I should get rid of the Virtualbox 3.1 and use 3.2, which I downloaded, but don't know how to replace the old. Also I gave it 13 gigs.
I need to run VirtualBox on my desktop to run a WinXP partition. I set it up and loaded it fine. Now, Windows slows down to an absolute crawl. It doesn't seem to be using a huge amount of memory in the Task Mangler.
The computer itself isn't being bogged down. I can tell that because I go back to the Linux side of things and it's running fine.
I'm left to question if my settings are correct. Can someone help me review things?
I'm using Ubuntu 7 on that machine. It's WinXP Pro that I'm loading on there.
I am running Windows XP in VirtualBox. I generally only use it for iTunes and some light browsing occassionally. Downloads only occur on iTunes, but it does have internet access. And my wife will still only use Windows, so if she uses this particular machine it is available to her, and she occassionally goes to facebook on this machine.
Should I install an anti-virus? Is it really necessary? I am pretty certain my Linux install would be unaffected even if a virus or other malware did occur in VirtualBox.
This is my humble tutorial on how to get VirtualBox properly up and running on Fedora 11 (including USB support). It's located on my web blog here: How To: Install VirtualBox on Fedora 11 [Tutorial]