[libvirt-users] Confused setting up a "Virtual Server Hosting" config

Paul O'Rorke
Wed, 23 Oct 2019 04:43:50 -0000

Hi list,

Can anyone advise me on the correct/best set up for Virtual Server Hosting?

I have a guest in my server room wish to migrate to dedicated server I
rented in an offsite in a data centre.  I rented a box with one NIC and
one public IP.  I installed KVM on it and a guest. (both Ubuntu 18.04
LTS server edition).  I am struggling to get the networking right.

Essentially I want the "Virtual Server Hosting" config mentioned here:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html-single/virtualization_administration_guide/index#sub-sect-routed-mode
<https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html-single/virtualization_administration_guide/index#sect-attch-nic-physdev>

I have not had any luck setting that up.  It is listed in the "Routed"
section but the graphic says the virtual switch should be in bridged mode.

I also tried using macvtap, and since I have only one guest was
expecting to be able to just use the host IP but it looks like the data
centre have restricted packets to the MAC address of the host NIC.  When
set up I can ping the public IP (it is both eh host and the guest?) but
not their gateway.  Should a macvtap not be presenting the MAC address
of the host NIC to the router and thus allowing packets from the guest?

I clearly have a lack of understanding of how this is working and how it
is meant to work.  When I tried the same thing on mt hardware/network I
can create myltiple guests that all use the macvtap interface and I have
no problems getting connectivity to the outside world.

Before I approach the data centre about this I want to be sure I
understand what I am doing.   I ultimately want to host a mail server
and several different web servers as guests all behind this one host.  I
would alias their public IPs to the host NIC and use IPtables to route
traffic based on destination IP.

Does that make sense? Can anyone suggest the right way to achieve this?

Please and thanks.

*Paul O'Rorke*
*Tracker Software Products (Canada) Limited *
www.tracker-software.com <http://www.tracker-software.com/>
Tel: +1 (250) 324 1621
Fax: +1 (250) 324 1623

<http://www.tracker-software.com/>

Support:
http://www.tracker-software.com/support
Download latest Releases
http://www.tracker-software.com/downloads/


--------------65291CF0C3B4F66AA350A7A0
Content-Type: text/html; charset="windows-1252"
Content-Transfer-Encoding: 8bit



    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">


Hi list,
Can anyone advise me on the correct/best set up for Virtual
Server Hosting?
I have a guest in my server room wish to migrate to dedicated
      server I rented in an offsite in a data centre.  I rented a box
      with one NIC and one public IP.  I installed KVM on it and a
      guest. (both Ubuntu 18.04 LTS server edition).  I am struggling to
get the networking right.
Essentially I want the "Virtual Server Hosting" config
mentioned
here:
      <a moz-do-not-send="true"
href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html-single/virtualization_administration_guide/index#sect-attch-nic-physdev">https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html-single/virtualization_administration_guide/index#sub-sect-routed-mode
I have not had any luck setting that up. It is listed in the
      "Routed" section but the graphic says the virtual switch should
be
in bridged mode.

I also tried using macvtap, and since I have only one guest was
      expecting to be able to just use the host IP but it looks like the
      data centre have restricted packets to the MAC address of the host
      NIC.  When set up I can ping the public IP (it is both eh host and
      the guest?) but not their gateway.  Should a macvtap not be
      presenting the MAC address of the host NIC to the router and thus
allowing packets from the guest?
I clearly have a lack of understanding of how this is working and
      how it is meant to work.  When I tried the same thing on mt
      hardware/network I can create myltiple guests that all use the
      macvtap interface and I have no problems getting connectivity to
the outside world.
Before I approach the data centre about this I want to be sure I
      understand what I am doing.   I ultimately want to host a mail
      server and several different web servers as guests all behind this
      one host.  I would alias their public IPs to the host NIC and use
IPtables to route traffic based on destination IP.

Does that make sense? Can anyone suggest the right way to achieve
this?

Please and thanks.


Paul O'Rorke
Tracker Software Products (Canada) Limited
        <a
href="http://www.tracker-software.com/">www.tracker-software.com
Tel: +1 (250) 324 1621
Fax: +1 (250) 324 1623

<img
src="https://www.tracker-software.com/fckfiles/image/images/resellers/logo/TrackerSofwareProducts_Logo_330x100.png"
            name="image.png" width="198"
height="60" border="0"
align="bottom">

Support:
        <a
href="http://www.tracker-software.com/support">http://www.tracker-software.com/support

Download latest Releases
        <a
href="http://www.tracker-software.com/downloads/">http://www.tracker-software.com/downloads/




--------------65291CF0C3B4F66AA350A7A0--