Page 1 of 1

Need to disable network between host and virtual PC

Posted: 30. Apr 2011, 23:50
by Idle2P
Hi there,

I'm new at using Virtual Machines and Virtualbox. I need to know something.

Currently I'm running a Windows version operating system and under this system I want to create a Ubuntu guest via Virtualbox. But there is something I have to need to know:

1. As standarts or as default after installing Ubuntu virtual machine, Can two operating system (Windows host and Ubuntu guest) communicate with each other?

2. If it is defaulty communicate or creating a network how can I disable it?

What I want? I just want install a guest host as Ubuntu. And I don't want to create a network or communicate with other OS currently running on my PC. How can I do that?

If you say why I just say, If I confict or infect with some kind of worm or malware can spread via network in Ubuntu, I want it doesn't infect my currently host Windows system.

Sorry for the writing errors with my language. Thanks for your helps.

Re: Need to disable network between host and virtual PC

Posted: 30. Apr 2011, 23:54
by Sasquatch
1. With the standards, the VM will get a NIC attached to NAT. This allows the Guest to access the Host and it's network resources, but only in a one-way direction. Guest can access others, others can't access the Guest.

2. You can disable the NIC setting in the VM settings. It won't have any network connectivity, so no internet either. It's kinda essential for Linux to have internet as software is installed from it.

Don't worry about infecting Linux with a virus or malware. It's very, very rare thing to happen. You would get a virus on your Host from visiting a malicious website there a lot faster than that Linux infects your Host. Viruses written for Windows don't work on Linux and vice versa.

Re: Need to disable network between host and virtual PC

Posted: 1. May 2011, 00:01
by Idle2P
Thanks for your help. I know Windows viruses can't infect Linux systems but my problem doesn't that.

I create Virtual machine to testing some softwares, utilities ect. and also I want to prevent my Windows system from malwares.

How can I do this networking rule Ubuntu can't access to Windows and Windows can't access to Ubuntu? My shared folders, network find, file transfers and media synchronizing rules also disabled both home networks and public networks.

Is there any tutorial or topics?

Re: Need to disable network between host and virtual PC

Posted: 1. May 2011, 00:14
by Sasquatch
Did you read my reply? Disable the virtual NIC.

Re: Need to disable network between host and virtual PC

Posted: 1. May 2011, 01:08
by Idle2P
Sasquatch wrote:Did you read my reply? Disable the virtual NIC.
Yeah I read it, but if I do that I have no internet connection. Isn't there any other way?

Re: Need to disable network between host and virtual PC

Posted: 1. May 2011, 02:32
by BillG
There is not much point in asking questions if you do not take the trouble to study the replies. You are not going to get a reply saying "do this and this and everything is fine". Even if you did, I suspect you would ask "but will that really work"?

You have already been told that, using the default (NAT) setting, there is no communication between host and guest. You have also been told that, even if there was communication, it is most unlikely that a Windows machine would infect a Linux machine and vice versa.

If you don't accept that and want to keep host and guest completely separate, put two NICs in your physical machine. From the NIC properties in the host OS, set one NIC to handle only traffic for the host and the other to handle traffic only for the guest. You will find details on how to do that in this forum as it is often discussed.

Re: Need to disable network between host and virtual PC

Posted: 1. May 2011, 02:53
by Idle2P
BillG wrote:There is not much point in asking questions if you do not take the trouble to study the replies. You are not going to get a reply saying "do this and this and everything is fine". Even if you did, I suspect you would ask "but will that really work"?

You have already been told that, using the default (NAT) setting, there is no communication between host and guest. You have also been told that, even if there was communication, it is most unlikely that a Windows machine would infect a Linux machine and vice versa.

If you don't accept that and want to keep host and guest completely separate, put two NICs in your physical machine. From the NIC properties in the host OS, set one NIC to handle only traffic for the host and the other to handle traffic only for the guest. You will find details on how to do that in this forum as it is often discussed.
My questions are a rookie user questions. I know this, because this is first time I use a virtual pc and virtualbox. I check all shared object things and set rules for them. I have a router that using DHCP so it will auto attach a IP adress to Virtualbox's network and it is in the same subnet with my host OS. I don't told anything like "there is no communication between host and guest" it is my language's fault.

The main problem is: Could I ignore interaction between host and guest? I checked many and many topics. Someone told use NAT, someone told it is not a solution. Someone told use Virtualbox Host - Network Only, someone told it is not a solution. And now you are telling me use different rules for each network, but I told it before I don't know how to do that, because I'm rookie.

Re: Need to disable network between host and virtual PC

Posted: 1. May 2011, 14:12
by Sasquatch
You really are rookie indeed. If you want the Guest to have internet and you only have one internet connection, no matter what you do, the Host and Guest will be able to communicate with each other in one way or another. It's either one-way or two-way communication. There is no way around this. At least not for a rookie like yourself who apparently has very little understanding of networking.

So you either accept this, or don't give internet to the Guest at all.