Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am new to ubuntu and after some month and a half running it side by side with Windows 7 I decided that it would be my main system, and so I just formatted the machine and installed it as the only OS. However, I still need to run some stuff that don't have options for ubuntu, just like netflix or to manage my Windows Phone system.

As a solution, I am thinking about running Windows XP on a VM, I just installed VirtualBox, but after some searching I saw that the best perfomance would be obtained if I install the Guest Additions. I don't intend to share folders, although I am concerned if installing guest additions would somehow expose my Linux system to Windows viruses. And I will probably use the network through windows xp vm either, but I won't surf on the web, I'll only eventually use netflix.

Well, the question literally is, as said on the title, is windows xp running on a virtual box with guest additions harmful for ubuntu? Does it may lead to viruses issues?

share|improve this question
1  
Windows virus is like fish and Ubuntu is like a tree. You can put a fish on a tree but then fish can't do much. –  user68186 Jan 9 at 20:15

5 Answers 5

As much as I would love to say that a virtualized sandboxed Windows does no harm to you I can't.

A virtual Windows behaves exactly like a Windows on bare metal, i.e. it is no less vulnerable to malware.

Whenever your run an unprotected copy of Windows it may quickly get infected by a virus coming from a file, a mail, a website, or an infected storage device. One of the main function all malware have is to replicate. Exactly this will happen on your virtual machine too.

The virus will not be able to infect your Ubuntu host, but it may

  • sit in files you had accessed from a compromised Windows (you will want to access files outside the VM sooner or later).
  • be able to spread from your infected virtual OS to your network, or to the world wide web.
  • in case you let your virtual OS access data files stored on the host machine, it may even be able to spy on you.
  • rare viruses may infect your router no less from a virtual machine. Just open a browser there to access your router's administration page from a VM if you are skeptical.

So in summary an infected virtual Windows will not be able to infect your Ubuntu installation, but it will still be a risk to you or to others. It is therefore strongly recommended to protect a virtual Windows with appropriate anti-virus software before you give it access to your network, or the internet.

share|improve this answer

Both systems are separated. If Windows XP gets infected, it won't affect the normal functionality of Ubuntu. Virtual machines are sandboxed environments to run others OS's. There isn't any issues with Ubuntu if your Windows system gets infected.

This means that Linux will not protect Windows and whatever happens with Windows will not affect the normal functionality of Ubuntu.

share|improve this answer
    
Strictly speaking, there actually are viruses which targets virtual machines. –  Hibou57 Jan 9 at 21:43

Windows viruses are not compatible with Linux, imagine your virtual machine to be a sandbox. Trust me, you wont have any problem with viruses on your Linux, although you can always install an antivirus on Windows! I promise you will never get a virus from your virtual machine although you don´t install it.

PS: I recommend: Malwarebytes and AVG (install both).

share|improve this answer
    
You really can promise? That's a bit adventurous… Nobody can promise anything about security, and even less without being directly implicated in the case. –  Hibou57 Jan 9 at 21:47

I don't think it will lead to any harm. As far as I remember, the only way for someone to mess with your Ubuntu machine if you installed Wine application in it, and of course you didn't configure your UFW (firewall). A successful attack from Windows users will be as follows ;
* You installed wine application in ubuntu
* you forget to configure UFW (the firewall)
* you unintentionally clicked on a malware link from your win xp virtual box
* you opened ports and didn't secure them
. In your case, you are going to install WINDOWS XP in Virtual box, and VBox will create a disk image which will be impossible for users to get outside the disk image and mess with your Ubuntu, however, if you have wine in your ubuntu, and wrongly clicked a malware link from your Win XP virtual box, that will lead the attacker to your ubuntu and execute commands and harm your computer.
source : check ubuntu security

Regards.

share|improve this answer

You can run Windows inside Virtualbox and not worry about viruses, UNLESS you do shared folders. It would be possible for a Windows virus to drop executable Windows code in those shared folders, which could be run in WINE and, yes, screw up some things. That's as far as I can think it through.

Netflix in Virtualbox will probably perform quite terribly. The graphics, in particular, will probably suck. I've had a lot of success with this:

http://www.howtogeek.com/130372/how-to-watch-netflix-on-ubuntu-with-the-netflix-desktop-app/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.