I tried a lot guides but nothing didn't really help/ worked (for) me. What I would like to do is to host a server in my local network with a static IP. I have a Linux Mint VM inside Virtualbox which is configurated with a specific IP (192.168.0.30), but I don't get the specific IP (because at the moment I get a dynamic IP). How can I edit this? Tried Host-only-Adapter etc but it didnt't worked at all. I also would like to have internet access with the server. So the server hosts but can also browse the internet.
Hope somebody can help me ;)
Greets
EDIT (to clearify):
I have Virtualbox on my Windows 8.1 PC.
A Linux VM (Linux Mint) is running in Virtualbox.
Right now the VM network is configured as "bridged".
Works fines, I can ping the VM and I can ping my host from my VM. (Full connection between both).
What I want to change now:
The VM gets sometimes another IP. I configurated the VM with 192.168.0.30 but now the router gave me 192.168.0.20 which causes problems, because my owncloud (runs on apache) is configurated with the 192.168.0.30 adress.
I would like to give the VM a static IP adress (192.168.0.30), so that every time I start the VM the VM always gets the IP adress 192.168.0.30.
How can I do that?
What do I have to change?
EDIT 29.11.15
Here the interfaces file:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.30
netmask 255.255.255.0
gateway 192.168.0.1
VM has Internet connection (e.g. via Iceweasel) but ifconfig still tells me another IP adress (e.g. right now I got the 192.168.0.20).
Must I change some settings inside Virtualbox? VM is right now running with bridged.