Re: How to block internet access for a VM guest? (but keep LAN to host)
If a virtual network is available, you can change how a Guest connects to any virtual network on the fly, no reboots or even service restarts should be needed in Guest or HostOS.
That is true of all virtualization technologies, ie Libvirt managed KVM/Xen/LXC, VMware, Virtualbox, etc. which all work similarly. I haven't tested on Docker which implements networking differently, but assume there is no special restarts or reboots are needed there, either.
So,
If virtualization was set up by installing through YaST, i assume that a Host-Only network has also been created, but even if no Host-only network exists, that's no big deal. You can easily create any virtual networks you may want, even for instance multiple NAT networks each configured differently (different address scopes, with or without DHCP, etc).
To view, and if you wish create new virtual networks of any type using virt-manager,
- Open virt-manager
- The first entry should be the local "server" managing guests on your machine, Rt-click on this entry and select "Details"
- Click on the Virtual Networks tab.
Any configured virtual networks should now be displayed.
If any are missing or you wish to create a new virtual network, click on the green "+" button at the bottom of the left-most pane, and follow instructions.
Once you have configured a virtual network in this section, it should immediately become available to any Guest thereafter.
Post again if you have any difficulties.
TSU
Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
Solved a problem recently? Create a wiki page for future personal reference!
Learn something new?
Attended a computing event?
Post and Share!
Bookmarks