Trying to install Xen on my 64bit O/S (Centos 5).
Using this guideline: 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
I created a new one called vm02
But I'm stuck at the configure tcp/ip screen. The "sending request for IP..." disappears and shows the default configure tcp/ip screen again.
[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
Regarding the first error, try looking in /etc/xen for a file called 'vm01' and deleting it, also, try running 'virsh' and then 'list --all' to find the "offending domain". You can the use "undefine " to remove it.
As for the second problem, are you sure you have a DHCP server on the network? Are you sure you've connected your domain to a public bridge (xenbr0)? You can use the "-b BRIDGE" switch of virt-install to make sure you have.
If you do not have a DHCP server, you can pass the installer static IP configuration by adding the following to virt-install:
Hey, I am in the same boat.
Currently, able to start the domain it downloads the stuff and fails to go to the stage2 of installations due to inability to access the stage2.img file even when the path is right.Welcome to CentOS
|
| /5/os/x86_64/images/stage2.img. |
| |
| +----+ |
| | OK | |
| +----+ |
| |
| |
+-----------------------------------+
System is able to download the stuff and the installation stops right there. I checked the URL and there seems to be no problem.
Regards Rajan