Cannot Install Guest Additions For VirtualBox 4.1.2? Having d3d9.dll Error? What’s The Deal With Virtualizing Windows 7 Inside VirtualBox On Linux?

English: Original source file of the “About Vi...

Image via Wikipedia

Some of us love to virtualize Windows 7 inside a host, because we think we need the host to be as secure as it could be and the virtualization would be a sort of sandbox to add one extra layer of security for the virtual machine.  Of course, the security of the sandbox would give a false sense of security for whoever runs it if he or she isn’t keen on securing the virtual machine also.  Some hackers could be so smart and create a hack which allows him or her to leap from the virtual environment into the host environment.  Plus, what the use for a virtual machine if it isn’t secure enough to be used, right?  I think you get the gist.

Anyhow, the idea for those who want to virtualize Windows 7 inside VirtualBox 4.1.2 could hit a snag if they also want to run Guest Additions for Windows 7 virtual machine.  How do I know this?  I tried to install Guest Additions the normal way by clicking on Device > Install Guest Additions, but this method failed me as it could not find Guest Additions anywhere.  I guess for an unknown reason, VirtualBox 4.1.2 failed to include Guest Additions somehow.  Of course, this might not happen to everyone, but it might be just me.  Nonetheless, if you are one of those people who experiences this exact situation, don’t sweat.  Just go to, and then you need to download VBoxGuestAdditions_4.1.2.iso.  Get back to VirtualBox window, click on the Windows 7 virtual machine, click on Settings > Storage, and make sure you add VBoxGuestAdditions_4.1.2.iso as virtual CD/DVD disk file.  It helps if you remember where you had saved your VBoxGuestAdditions_4.1.2.iso on the host machine.

During the installation of your Guest Additions for Windows 7 virtual machine inside VirtualBox on a host machine, you might hit another snag where an error would complain that it could not find or open d3d9.dll file.  It might be the permission for d3d9.dll file is too strict.  You need to allow write permission for d3d9.dll file before Guest Additions could finish the installation.  So, when you see d3d9.dll error, don’t exit the Guest Additions installer, but make sure you are inside your Windows 7 virtual machine, go to Windows\System32\ and search for d3d9.dll file, right click on it and choose Properties, click on Security tab, and then from here you need to allow write permission for all users.  Get back to Guest Additions installer and try to finish installing the Guest Additions.  When done installing Guest Additions, don’t forget to remove write permission for d3d9.dll file for all users so this file can once again be secure as before.

In conclusion, Windows 7 virtual machine inside VirtualBox on a Linux host is ideal for security.  Nonetheless, if he or she forgets to secure Windows 7 virtual machine, he or she is not that secure in term of allowing Windows 7 virtual machine to be hacked easily.  If he or she is lazy, it’s best to use NAT network, but it’s always better to use Bridge network as it’s much more flexible.  NAT network hides the virtual machine inside a host’s network (i.e., not using the router’s DHCP or manual IPs), therefore one could say as long the host has a strong firewall, the virtual machine too could be protected by the same firewall.  Without the installation of Guest Additions, he or she could not open Windows 7 virtual machine in fullscreen mode, and so don’t forget to do this.

2 responses

  1. Pingback: VirtualBox’s Seamless Mode Saves Users From Switching In And Out Between The Virtual And The Real Machine Computing Environments | EssayBoard

  2. Pingback: Watching Netflix On Linux? | EssayBoard

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 1,469 other followers

%d bloggers like this: