How to make guest unaware of battery power source?

This is for discussing general topics about how to use VirtualBox.
Post Reply
eyeofhell
Posts: 14
Joined: 10. Feb 2009, 10:24

How to make guest unaware of battery power source?

Post by eyeofhell »

Hello.

I have OSX as host and Windows 7 as guest. Windows 7 guest is aware if host is on battery power source. This is not good since some applications and actions in Windows 7 can't start on battery power source. Is it a way to make guest unaware of power source so it think that it is always on AC power?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to make guest unaware of battery power source?

Post by mpack »

Off-topic question about a Windows guest, and possibly wrong website too.
eyeofhell
Posts: 14
Joined: 10. Feb 2009, 10:24

Re: How to make guest unaware of battery power source?

Post by eyeofhell »

Any guest. Ubuntu guest is also perfectly aware about battery :(.
What do you mean by "wrong site"? This is a community forum after all, a good place to search for hints and insights :).
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to make guest unaware of battery power source?

Post by mpack »

I mean that good answers to your question will likely only be valid for a particular guest OS, hence off topic in this forum: which is for supporting the VBox GUI application itself, not the guests that you choose to run on it, or the hosts that they may rely on.

Also, your question skirts dangerously close to one that Microsoft might be expected to answer: in fact your problem is not that the guest detects the battery, your problem is that the guest OS takes inappropriate (for you) action because of it. That would make your question really a support question for the developers of the OS in question, not a VBox issue.
eyeofhell
Posts: 14
Joined: 10. Feb 2009, 10:24

Re: How to make guest unaware of battery power source?

Post by eyeofhell »

If guest detects a battery than VirtualBox informs guest about battery. Guest is running in virtual environment and can't access real hardware other than cpu / memory. So if VirtualBox informs guest about battery - it is a Virtualox feature. What i'm asking about - how to disable this feature :). I don't need a virtual battery on guests. Really. They must be AC connected O_O.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to make guest unaware of battery power source?

Post by Perryg »

You might be able to turn this off using VBoxManage but more than likely you will loose functionality of other features/resources. Why not take care of this on the guests end? Exactly what program/s are you trying to use that will not work?
eyeofhell
Posts: 14
Joined: 10. Feb 2009, 10:24

Re: How to make guest unaware of battery power source?

Post by eyeofhell »

Windows 7 update, for example. It requires AC power source and it's an operating system feature. Even if i have my 10h macbook 100% charged i can't initial update since Windows 7 will complains about "not on AC power". And i need to debug this @$!#$ update :(.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to make guest unaware of battery power source?

Post by Perryg »

You can submit an issue to bugtracker . Explain completely and don't forget to attach the guests log file.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to make guest unaware of battery power source?

Post by Sasquatch »

Make a snapshot of the VM so you can return to a working situation in case it breaks. Then using the VBoxManage command to turn off ACPI. That is what shows the battery in the VM. Keep in mind that things can very likely blow up the moment you disable it, Windows it not so forgiving when you change things after it's installed.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
chrisstankevitz
Posts: 5
Joined: 31. Oct 2008, 22:31

Re: How to make guest unaware of battery power source?

Post by chrisstankevitz »

How can I simulate AC power remove and restored (aka switch to battery power then back to AC power) using virtualbox? Any guest. Sort of like I can use virtualbox to simulate the insertion and removal of a CD. Any guest.

Thank you,

Chris
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to make guest unaware of battery power source?

Post by Sasquatch »

chrisstankevitz wrote:How can I simulate AC power remove and restored (aka switch to battery power then back to AC power) using virtualbox? Any guest. Sort of like I can use virtualbox to simulate the insertion and removal of a CD. Any guest.

Thank you,

Chris
You can't without doing that physically.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mladoux
Posts: 2
Joined: 7. Sep 2013, 00:06

Re: How to make guest unaware of battery power source?

Post by mladoux »

I had the same issue. I just disabled the device in the device manager, and it stopped prompting me. Do not disable ACPI for the guest, or else some versions of windows will fail to boot.
Post Reply