我从 Hetzner 租了一台服务器。我在 Dom 0 - Centos 6.5 上安装了 Xen。我无法创建 Dom1 Centos 6.5 VM。
我看到的错误是“尝试安装 Dom1 Centos 6.5 VM 时无法检索‘centos 映像的链接’”。
在 Dom 0 上:
界面xenbr0
[root@static network-scripts]# cat ifcfg-xenbr0
DEVICE=xenbr0
TYPE=Bridge
ONBOOT=yes
DELAY=0
STP=off
PIFDEV=eth0
BOOTPROTO=none
IPADDR=5.9.*.*
GATEWAY=5.9.*.*
NETMASK=255.255.255.*
DNS1=<removed>
DNS2=<removed>
DNS3=<removed>
NM_CONTROLLED=no
#DEFROUTE=yes
#IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System xenbr0"
界面eth0
[root@static network-scripts]# cat ifcfg-eth0
DEVICE="eth0"
HWADDR="<removed>"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
UUID="<removed>"
#DEFROUTE=yes
#IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
BRIDGE=xenbr0
IPTables 配置
[root@static etc]# cat /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i xenbr0 -o xenbr0 -j ACCEPT <<<<<<<<<<<<<<<<<<Added this line>>>>>
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Sysctl 配置
[root@static network-scripts]# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 1 <<<<<<<<<<<<<<<<Changed this line>>>>
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536
# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
在 Dom 1 上安装 Centos 6.5:
I selected Manual IPV4 :
IP ADDR : 5.9.*.*
Subnet : *
Name server : Same as DNS1 in Dom0.
Gateway : I used IP of host to be the gateway for Dom 1 (I followed [this tutorial][1])
有人能帮我在这台机器上安装 Dom1 吗?谢谢!