hi folks
I installed dual system (win 7 and ubuntu 10.10) on my machine each on different partition, however I would like my ubuntu can be ran in virtual box when I already logged into win 7, I meant, i want ubuntu can be booted either *natively* or *guestly*, so I created vmdk that points to rawdisk and it works great for me,
but after installed virtual box addtions, I cannot booting ubuntu *natively* , while logging it shows a message "Guest PCI device not found".
so is it possibly to disable vboxadd while booting natively? should i modify the grub.cfg? or maybe loads the vbox additions service manually? any point will be appreicated.
disable vbox additions *temporarily* while booting
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: disable vbox additions *temporarily* while booting
You can see if there is an init script or something and remove that from the start-up. This can be done with 'update-rc.d -f <init name> remove' as root. Then create your own script that checks for the environment it runs on and call the init script you disabled if it matches, passing the start, stop and reload parameters to the init script as if it was called normally.
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.
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.
-
waltj
- Posts: 1
- Joined: 9. Feb 2011, 20:34
- Primary OS: MS Windows 7
- VBox Version: OSE Debian
- Guest OSses: Ubuntu 10.10
Re: disable vbox additions *temporarily* while booting
I'm try to do the exact same thing. I have a bootable linux (Ubuntu) partition and would like to use the guest additions while accessing this partition through VirtualBox in Windows 7. However, once the guest additions are installed the Ubuntu partition will not boot properly outside of VirtualBox (standalone). I can manually install and uninstall the guest additions based on whether I'm using VirtualBox or not. But I'd rather to detect whether booting in VirtualBox and then enable the guest addtions if so. I don't know how to do this. Can anyone help with this?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: disable vbox additions *temporarily* while booting
Like I said above, write an init script that checks if it runs in a VM or not. There are plenty of bash and shell script examples that let you check for certain values to exist and execute things when you get a match. For example, check what video card you have through lspci.
Code: Select all
if [ lspci | grep VGA | grep nVidia ] ; then
echo "this is a direct boot, because I found an nVidia video card"
else
echo "this is probably the VM, couldn't detect an nVidia video card"
fiRead 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.
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.