0

I have installed Ubuntu 16.04.3 on my dedicated server and I have an additional IP on my host server.

I want to create KVM on my host server and assign my additional IP to it so that it can be accessed with that IP and setup dns-server, etc.

How can I assign my additional IP as an static IP in my KVM?

What should I write in main server's /etc/network/interfaces and KVM's /etc/network/interfaces?

I looked the other questions but this one for example even turns my main server down Bridge interfaces and KVM

Amin Vakil
  • 11
  • 5
  • Does [this](https://askubuntu.com/questions/638162/kvm-network-bridge-to-assign-static-ip/638269#638269) answer help you? – Doug Smythies Aug 20 '17 at 21:18
  • @DougSmythies I've tried that but when I wrote them in my interfaces my server doesn't even boot – Amin Vakil Aug 20 '17 at 21:25
  • @DougSmythies I don't know if it doesn't boot or not but I can't connect via ssh to my server – Amin Vakil Aug 20 '17 at 21:29
  • I do not know what is wrong. The answer I pointed to was tested. Could you edit your question and add the contents of your main server's and quest VM's `/etc/network/interfaces` files. – Doug Smythies Aug 20 '17 at 21:32
  • @DougSmythies It worked. I rebooted my server from my robot completely and I configured as the answer said. – Amin Vakil Aug 20 '17 at 21:36

1 Answers1

0

https://askubuntu.com/a/638269/498411 - This helped!

I read that before asking this question but the problem was that I didn't completely reboot my server to setup my new interfaces.

Now it works!

Amin Vakil
  • 11
  • 5