试图在我的 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
关于第一个错误,尝试在 /etc/xen 中查找名为“vm01”的文件并将其删除,同时尝试运行“virsh”,然后运行“list --all”以查找“违规域”。您可以使用“取消定义”来删除它。
至于第二个问题,你确定网络上有DHCP服务器吗?您确定您已将您的域连接到公共网桥 (xenbr0) 吗?您可以使用 virt-install 的“-b BRIDGE”开关来确保您拥有。
如果您没有 DHCP 服务器,您可以通过将以下内容添加到 virt-install 来传递安装程序静态 IP 配置:
嘿,我在同一条船上。
目前,能够启动域它下载的东西,并且由于即使路径正确也无法访问 stage2.img 文件而无法进入安装的 stage2。欢迎使用 CentOS
|
| /5/os/x86_64/images/stage2.img。|
| |
| +----+ |
| | 好的 | |
| +----+ |
| |
| |
+------------------------------------------------+
系统能够下载这些东西,安装就在那里停止。我检查了网址,似乎没有问题。
问候拉詹