All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
VM's on SoYouStart Dedicated
I have a dedicated server from SoYouStart/OVH and ordered some additional IP's with it that I would like to use with virtual machines. I am trying to assign the additional IP's the the virtual machines I am creating. The host machine is running Ubuntu 18.04 and I installed KVM/Qemu. I created a Ubuntu 18.04 virtual machine as a test and am trying to assign one of the additional IP's to it.
I have read the guides here and here. I have searched google and read through many forum posts, guides, blogs, etc. I can't find a working configuration.
The main IP of the server is 192.99.100.xx, which makes the default gateway 192.99.100.254. The block of IP's I got are 54.39.238.xx/28. I have set up a virtual MAC for the IP I am using which is 02:00:00:79:7f:12. I know where to put the MAC address assuming the rest of the configuration works.
The hosts 01-netcfg.yaml looks like this. The guides never say so but I'm assuming I need to set up a bridge. The host loses connectivity with this config though.
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
dhcp6: no
bridges:
br0:
interfaces: [eno1]
dhcp4: no
addresses: [192.99.100.xx/24]
gateway4: 192.99.100.254
nameservers:
addresses: [8.8.8.8,8.8.4.4]
The virtual machine's 01-netcfg.yaml is set up as follows like the guide suggests.
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
dhcp6: no
addresses: [54.39.238.xx/32]
gateway4: 192.99.100.254
nameservers:
addresses: [8.8.8.8,8.8.4.4]
routes:
- to: 192.99.100.254/32
via: 0.0.0.0
scope: link
I have the exact same setup with another provider on a dedicated server that is working but it is my understanding that OVH does things differently and there is some extra configuration needed. I am using just a fresh install of Ubuntu 18.04 and installed KVM/qemu, virt-install, etc. created the VM with virt-install. I would prefer to not use Promox, VMware, or any of the likes. It's just a personal server for projects that I'm trying to split into a few VM's. Any help would be greatly appreciated. Thank you.
Comments
You need to create a KVM Bridge and modify your network interface to make the bridge permanent.
Just use the Proxmox template that SoYouStart does provide.
@HostBastic As shown in the first codeblock I have created a bridge, however, the host loses connectivity.
@Neoon I don't really need a web panel.
@Legendlink I'd try to define the interface in the bridge block differently and also go with a hostroute setup for the bridge as well, subnet /32 and route to/via, like described on the ovh page you referred to...
the host should obviously not loose connection or at least be able to build a connection after reboot.
I am not good with netplan yet but suggest this for host:
once you have the host up and running with the bridge instead of eno1, adjust your guest accordingly, be aware that in your guest config you mixed to and via in the route: part... obviously to should be the destination aka public internet and via the gateway ;-)
@Falzo I played with a couple settings with that config you wrote. Trying to ping out is the same story. "Network is unreachable" or "Destination host unreachable."
Just don't forget to do full reboot after every network related config changes
You may want a routed network setup instead.
AFAIK Bridged won't work.
bridged definitely works, you need a virtual mac, but he mentioned that he got that already. there is something off with the initial setup in netplan as the node should not lose connection regardless of the setup for guests - maybe change back to ifupdown...
just checked one of my older SYS dedis running proxmox. the /etc/network/interfaces looks like this:
so nothing fancy in there, not even pointopoint...
@Legendlink you do have bridge-utils installed, right?
Your config seems correct....
In which datacenter is your server located? There is 1 datacenter @OVH that requires another default gateway. Don't ask me why but this was actually a problem for us in the past.
I was doing a full reboot between changes, yes. I have almost the exact same config running on a Dacentec dedicated, just with their IP's and without the routes.
@jordynegen11 I'm in BHS3
@Falzo Yep, installed.
then I have to admit I am sadly out of ideas...
Does OVH even support Routed setups?
Just wondering if subnets are also supported in bridged mode - I thought usually subnets need to be routed via the main IP of the server but I'm not sure.
Have you enable Ipv4 forward?
@akhfa enabled/disabled didn't make a difference.
So it is possible @Falzo is correct in that I should use ifupdown. I didn't bother replacing netplan with ifupdown on Ubuntu 18.04 but I did install Debian 9 and the bridge works fine. Curious as to why it doesn't work on Ubuntu with netplan...