Need to disable network between host and virtual PC

This is for discussing general topics about how to use VirtualBox.
Post Reply
Idle2P
Posts: 4
Joined: 30. Apr 2011, 23:42
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Ubuntu

Need to disable network between host and virtual PC

Post 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.
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: Need to disable network between host and virtual PC

Post 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.
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.
Idle2P
Posts: 4
Joined: 30. Apr 2011, 23:42
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Need to disable network between host and virtual PC

Post 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?
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: Need to disable network between host and virtual PC

Post by Sasquatch »

Did you read my reply? Disable the virtual NIC.
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.
Idle2P
Posts: 4
Joined: 30. Apr 2011, 23:42
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Need to disable network between host and virtual PC

Post 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?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Need to disable network between host and virtual PC

Post 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.
Bill
Idle2P
Posts: 4
Joined: 30. Apr 2011, 23:42
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Need to disable network between host and virtual PC

Post 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.
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: Need to disable network between host and virtual PC

Post 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.
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.
Post Reply