How to boot a VM with a certain IP and Mac?
Hi,
I have doanload the centos.5-3.x86-64.20090606.img.tar.bz2 file and use it to boot a VM,and it works fine.The image is configed to use dhcp ,But I want to boot a VM with certain IP and Mac,so I have to change the image(centos.5.3-x86-64.img),but I don't know how to modify it,Is there anyone knows how to do that?
Thanks.
Best wishes.
For the mac address, you can set it in the xen config file that you use to launch the image. Please see this page:
http://wiki.xensource.com/xenwiki/XenNetworking
The ip address can be assigned in:
/etc/sysconfig/network-scripts/ifcfg-eth0
inside the image. You should also modify /etc/hosts. There is good documentation for these files or use the official frontend: redhat-config-network