Hi All: I am running SXCE b101, and used the following command to create a linux domU successfully: virt-install -n lss-kickstart1 --ram=2048 --vcpus=2 \ --os-type=linux --os-variant=rhel5 --bridge=nge1 \ --file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/root \ --file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/swap \ --file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/nfs \ --accelerate --paravirt --nographics \ --location=http://135.1.29.1/nfs/scientific/52/x86_64/ \ --extra-args="ks=http://135.1.29.1/nfs/xen_guest_sl52_x86_64_ks/kickstart/ks.cfg.1 ip=135.1.29.25 netmask=255.255.255.0 dns=135.1.1.111 gateway=135.1.29.254 noipv6" -d Now that everything is up and running, I would like to change the IP address of this domU to 135.1.29.1. I have no problem changing the files in domU, but it looks like XEN keeps using the old address. What (and/or how) do I change Xen to recognize the new address. (Note, I have no problem performing the changes while domU is down). thanks in advance, Paul -- This message posted from opensolaris.org
On Wed, Nov 05, 2008 at 08:36:06AM -0800, Paul Jochum wrote:> I am running SXCE b101, and used the following command to create a linux domU successfully: > > virt-install -n lss-kickstart1 --ram=2048 --vcpus=2 \ > --os-type=linux --os-variant=rhel5 --bridge=nge1 \ > --file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/root \ > --file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/swap \ > --file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/nfs \ > --accelerate --paravirt --nographics \ > --location=http://135.1.29.1/nfs/scientific/52/x86_64/ \ > --extra-args="ks=http://135.1.29.1/nfs/xen_guest_sl52_x86_64_ks/kickstart/ks.cfg.1 ip=135.1.29.25 netmask=255.255.255.0 dns=135.1.1.111 gateway=135.1.29.254 noipv6" -d > > Now that everything is up and running, I would like to change the IP > address of this domU to 135.1.29.1. I have no problem changing the > files in domU, but it looks like XEN keeps using the old address. > What (and/or how) do I change Xen to recognize the new address. > (Note, I have no problem performing the changes while domU is down).Can you dump the XML configuration for the domain? If it includes any IP configuration details (which is rare), they would need to be updated.
Hi David: Using the virsh xmldump command, I don''t see any IP address info: $ virsh dumpxml lss-kickstart1 <domain type=''xen'' id=''-1''> <name>lss-kickstart1</name> <uuid>ba68509f-ffd6-a8d2-9476-2c0702c7d611</uuid> <bootloader>/usr/lib/xen/bin/pygrub</bootloader> <os> <type>linux</type> </os> <memory>2097152</memory> <vcpu>2</vcpu> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <interface type=''bridge''> <source bridge=''nge1''/> <target dev=''vif-1.0''/> <mac address=''00:16:3e:20:ca:28''/> </interface> <disk type=''block'' device=''disk''> <driver name=''phy''/> <source dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/root''/> <target dev=''xvda''/> </disk> <disk type=''block'' device=''disk''> <driver name=''phy''/> <source dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/swap''/> <target dev=''xvdb''/> </disk> <disk type=''block'' device=''disk''> <driver name=''phy''/> <source dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/nfs''/> <target dev=''xvdc''/> </disk> </devices> </domain> -- This message posted from opensolaris.org
Ok, let''s try that again (hopefully showing the xml dump this time): $ virsh dumpxml lss-kickstart1 [domain type=''xen'' id=''-1''] [name]lss-kickstart1[/name] [uuid]ba68509f-ffd6-a8d2-9476-2c0702c7d611[/uuid] [bootloader]/usr/lib/xen/bin/pygrub[/bootloader] [os] [type]linux[/type] [/os] [memory]2097152[/memory] [vcpu]2[/vcpu] [on_poweroff]destroy[/on_poweroff] [on_reboot]restart[/on_reboot] [on_crash]restart[/on_crash] [devices] [interface type=''bridge''] [source bridge=''nge1''/] [target dev=''vif-1.0''/] [mac address=''00:16:3e:20:ca:28''/] [/interface] [disk type=''block'' device=''disk''] [driver name=''phy''/] [source dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/root''/] [target dev=''xvda''/] [/disk] [disk type=''block'' device=''disk''] [driver name=''phy''/] [source dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/swap''/] [target dev=''xvdb''/] [/disk] [disk type=''block'' device=''disk''] [driver name=''phy''/] [source dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/nfs''/] [target dev=''xvdc''/] [/disk] [/devices] [/domain] -- This message posted from opensolaris.org
OK, I found it. Sorry, my mistake. Although I thought I changed the IP address in the virtual machine (and then rechecked it again), I still missed it. Not enough sleep I guess. Paul -- This message posted from opensolaris.org