We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

Issue with bridging for KVM virtualization


dimka
2014-10-12, 05:34 AM
Quote Originally Posted by sweharris
I've found those instructions work just fine for an installed OS instance... but how do you put them into a kickstart config file so an OS can installed from a remote repository?
I can put any of my extra IPs on my host server (the one that will host my KVMs). I can make a ifcfg-eth0:1 with the extra IP for the host server which is accessible but the problem comes when I want to create a new VM (KVM guest) with those IPs
I don't need to create a kickstart file since everything is taken care with the following command

virt-install -n ubuntu14 -r 4096 --vcpus=2 --os-type linux --network bridge=br0 --nographics --location='http://mirror.uoregon.edu/ubuntu/dists/trusty/main/installer-amd64/' --extra-args='console=tty0 console=ttyS0,115200n8 serial' --disk /home/kvms/images/ubuntu14.img,size=25 --hvm
This brings up the installation interface.

sweharris
2014-10-11, 08:51 AM
I've found those instructions work just fine for an installed OS instance... but how do you put them into a kickstart config file so an OS can installed from a remote repository?

Marc-Antoine @ OVH
2014-10-11, 08:13 AM
Hello,

Please follow the IP Bridge guide here : http://docs.ovh.ca/en/guides-network...-linux-clearos. The netmask in ifcfg-eth0 need to be 255.255.255.255 and there is other setting to be put in place, in this file and on /etc/sysconfig/network-scripts/route-eth0.

If it doesn't work, please send us a ticket with all the information, it is very difficult to work with masked IP address like AAA.BBB.CCC.XY. Support ticket can be send here: http://www.soyoustart.com/us/contact...r-services.xml.

Regards,
Marc-Antoine @ OVH

dimka
2014-10-08, 05:24 AM
We have purchased an E3-SAT-3 server and 8 extra IPV4 IPs. We have installed CentOS 6.5
We have configured our server to KVM virtualization.
Although I can successfully launch KVM guests with just the lo network interface non of the 8 extra IPs can be used.

I would like to show you what I configured on my server.
I modified /etc/sysconfig/network-scripts/ifcfg-eth0 as followed

DEVICE=eth0
ONBOOT=yes
TYPE="Ethernet"
NAME="System eth0"
BRIDGE=br0
I created /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE="br0"
TYPE="Bridge"
BOOTPROTO=static
NM_CONTROLLED="yes"
ONBOOT=yes
IPADDR="XXX.XX.69.21"
NETMASK="255.255.255.0"
GATEWAY="XXX.XX.69.254"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
DEFROUTE=yes
IPV6INIT="yes"
IPV6_AUTOCONF="no"
IPV6ADDR=ZZZZ:ZZZZ:60:1E15::/64
NAME="System br0"
USERCTL="no"
ARPCHECK="no"
On /etc/sysctl.conf I made sure that
net.ipv4.ip_forward = 1
I ve read the instructions send by email during the extra IPs purchase

Further to your request, we have just assigned a block of 8 IP
addresses that will be routed via XXX.XX.69.21:

XXX.XX.104.64/29

You can use the IP addresses of this block in 2 ways:
1 - Configuration within a dedicated server

In this case, all IPs of your block XXX.XX.104.64/29 are usable.

Please use of one of the following guides for the configuration:

- If used in virtual machines: http://docs.ovh.ca/en/guides-network-bridging.html.

- If used on the same interface network of your server: http://docs.ovh.ca/en/guides-network-ipaliasing.html.

In general, all IPs must have the following netmask:
255.255.255.255, and the gateway is composed of the main IP of the server ending in .254


2 - Configuration within a virtual rack (vRack) or on a Dedicated Cloud offer


If you use this block in a virtual rack or a Dedicated Cloud, the following addresses must be freed up:

Network IP : XXX.XX.104.64
IP for router n°1 : XXX.XX.104.68
IP for router n°1 : XXX.XX.104.69
Gateway IP : XXX.XX.104.70 (not usable)
Broadcast IP: : XXX.XX.104.71

Then use the sub-netmask 255.255.255.248.


For your information, your block has the following characteristics:

XXX.XX.104.64/29
Network IP :XXX.XX.104.64
Broadcast IP :XXX.XX.104.71
Gateway IP :XXX.XX.104.70
Netmask :255.255.255.248
I ve tried to install an ubuntu KVM guest with the following command
virt-install -n ubuntu14 -r 4096 --vcpus=2 --os-type linux --network bridge=br0 --nographics --location='http://mirror.uoregon.edu/ubuntu/dists/trusty/main/installer-amd64/' --extra-args='console=tty0 console=ttyS0,115200n8 serial' --disk /home/kvms/images/ubuntu14.img,size=25 --hvm
If I try to use XXX.XX.104.65 as the IP of the KVM guest Netmask 255.255.255.255 and gateway as XXX.XX.69.254 when configuring KVM Guest
┌────────────────────┤ [!] Configure the network ├─────────────────────┐
│ │
│ Unreachable gateway │
│ The gateway address you entered is unreachable. │
│ │
│ You may have made an error entering your IP address, netmask and/or │
│ gateway. │
│ │

│ │
└───────────────────────────────────────────────── ─────────────────────┘
If I try to use XXX.XX.104.65 as the IP of the KVM guest Netmask 255.255.255.248 and gateway as XXX.XX.104.70 when configuring KVM Guest's network I still can not have an eth0.

I was able to load ubuntu KVM guest from another dedicated server(different hosting company) which I copied over the soyoustart server but when I try to configure its network as proposed here http://docs.ovh.ca/en/guides-network...chbang-steamos network is failing.

Can you help me with that? Is this an issue of the bridging configuration of main host/server?