Xen гипервизор имеет 2 режима настройки сети, как я видел в Virtual Manager. 1 NAT 2 Маршрутизирован. Оба запрашивают IP-подсеть. Однако я хочу настроить сеть, где я мог бы назначить любой IP-адрес вместо назначения DHCP Xen.Xen настроить адаптер только для хоста
Я использую виртуальную коробку oracle. Существует опция использования адаптера Host-only. Я хочу использовать Xen таким образом.
Другими словами, я хочу поделиться физический сетевой интерфейс для гостевой машины (VM)
Я использую Xen гипервизора 3.x на CentOS 6.2 x86_64
я сделал следующее, чтобы решить вопрос этот работал на меня.
Disabling Xen's network scripts
If using Xen it is recommended to disable its network munging by editing /etc/xen/xend-config.sxp and changing the line
(network-script network-bridge)
To be
(network-script /bin/true)
Disabling NetworkManager
As of the time of writing (Fedora 12), NetworkManager still does not support bridging, so it is necessary to use "classic" network initscripts for the bridge, and to explicitly mark them as independent from NetworkManager (the "NM_CONTROLLED=no" lines in the scripts below).
If desired, you can also completely disable the NetworkManager:
# chkconfig NetworkManager off
# chkconfig network on
# service NetworkManager stop
# service network start
Creating network initscripts
In the /etc/sysconfig/network-scripts directory it is neccessary to create 2 config files. The first (ifcfg-eth0) defines your physical network interface, and says that it will be part of a bridge:
# cat > ifcfg-eth0 <<EOF
DEVICE=eth0
HWADDR=00:16:76:D6:C9:45
ONBOOT=yes
BRIDGE=br0
NM_CONTROLLED=no
EOF
Obviously change the HWADDR to match your actual NIC's address. You may also wish to configure the device's MTU here using e.g. MTU=9000.
The second config file (ifcfg-br0) defines the bridge device:
# cat > ifcfg-br0 <<EOF
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no
EOF
WARNING: The line TYPE=Bridge is case-sensitive - it must have uppercase 'B' and lower case 'ridge'
After changing this restart networking (or simply reboot)
# service network restart
вы используете XenServer Citrix»? – Robbietjuh