Xen 64位安装

Xen 64位安装

尝试在我的 64 位操作系统(Centos 5)上安装 Xen。

使用本指南: http://www.howtoforge.org/paravirtualization-with-xen-on-centos-5.3-x86_64

[root@server ~]# virt-install
What is the name of your virtual machine? vm01
How much RAM should be allocated (in megabytes)? 256
What would you like to use as the disk (file path)? /vm/vm01.img
How large would you like the disk (/vm/vm01.img) to be (in gigabytes)? 4
Disk /vm/vm01.img is already in use by another guest!
Do you really want to use the disk (yes or no)? yes
Would you like to enable graphics support? (yes or no) no
What is the install location? http://wftp.tu-chemnitz.de/pub/linux.../5.3/os/x86_64


Starting install...
Retrieving file CentOS... | 1.5 MB 00:05
Retrieving file vmlinuz... | 1.9 MB 00:05
Retrieving file initrd.img... | 6.3 MB 00:07
ERROR: Domain named vm01 already exists!
[root@server ~]# rm -f /vm/vm01.img
[root@server ~]# xm destroy vm01
Error: Domain 'vm01' does not exist.
Usage: xm destroy <Domain>

Terminate a domain immediately.

[root@server ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 1744 2 r----- 29.5 

我创建了一个名为 vm02 的新

但我卡在了配置 tcp/ip 屏幕上。“发送 IP 请求...”消失了,并再次显示默认的配置 tcp/ip 屏幕。

[root@server ~]# /sbin/ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: peth0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 00:11:43:fd:97:9f brd ff:ff:ff:ff:ff:ff
4: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
5: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
6: vif0.0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
7: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/ether 00:11:43:fd:97:9e brd ff:ff:ff:ff:ff:ff
8: vif0.1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
9: veth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
10: vif0.2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
11: veth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
12: vif0.3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
13: veth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
14: vif0.4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
15: veth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
16: xenbr0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
18: vif2.0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 32
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff 

答案1

对于第一个错误,请尝试在 /etc/xen 中查找名为“vm01”的文件并将其删除,也可以尝试运行“virsh”,然后运行“list --all”以查找“有问题的域”。您可以使用“undefine”将其删除。

至于第二个问题,您确定网络上有 DHCP 服务器吗?您确定已将您的域连接到公共网桥 (xenbr0) 吗?您可以使用 virt-install 的“-b BRIDGE”开关来确保您已连接。

如果您没有 DHCP 服务器,您可以通过向 virt-install 添加以下内容来传递安装程序静态 IP 配置:

-x "ip=<ip address> gateway=<gateway> subnet=<subnet>"

答案2

嘿,我也是同样的情况。

目前,能够启动域,它会下载内容,但由于无法访问 stage2.img 文件,即使路径正确,也无法进入安装的第 2 阶段。欢迎使用 CentOS

          +-----------------+ HTTP Setup +------------------+              
          |                                                 |              
          | Please enter the following information:         |              
          |                                                 |              
          |     o the name or IP number of your Web server  |              
          |     o the directory on that server containing   |              
          |       CentOS for your architecture              |              
          |                                                 |              
          |   Web site name:    mirror.centos.org_______    |              
          |   CentOS directory: /centos/5/os/x86_64_____    |              
          |                                                 |              
          |         +----+                 +------+         |              
          |         | OK |                 | Back |         |              
          |         +----+                 +------+         |              
          |                                                 |              
          |                                                 |              
          +-------------------------------------------------+          

                 +-------------+ Error +-------------+                     
                 |                                   |                     
                 | Unable to retrieve                |                     
                 | http://mirror.centos.org//centos

|
| /5/os/x86_64/images/stage2.img。|
| |
| +----+ |
| | 确定 | |
| +----+ |
| |
| |
+-----------------------------------+

系统可以下载东西,但安装就此停止。我检查了 URL,似乎没有问题。

问候 Rajan

相关内容