[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] About MAC address


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Stephen Liu <satimis@xxxxxxxxx>
  • Date: Fri, 19 Sep 2008 13:34:42 +0800 (CST)
  • Delivery-date: Thu, 18 Sep 2008 22:35:24 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=CT1hODE1mBlyJXekEtTGkO9irq2fp7a2/9c5K2eO2fTFaibI0HSeRraIvg0UcnXVeBS5gEw604z/06XXjb0qnQsiqLSioqUkfOOZu5Ps5MSzfqDJrvsu1n5oi2nCwq5etX2UNv4jBsl0Hq4W/Yct154JpcJoy21uj0Kd6J0Lrqc=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi folks,


Debian Etch
Xen


On cloning disk.img I suppose it also copies the MAC address of the
original image to the new image resulting in "ping hostname" unable to
find the new hostname.


Following is my test;

# dd if=/vserver/domains/xen5.satimis.com/disk.img
of=/vserver/domains/xen6.satimis.com/disk.img bs=4k

# dd if=/vserver/domains/xen5.satimis.com/swap.img
of=/vserver/domains/xen6.satimis.com/swap.img bs=4k


# xm list --long xen5.satimis.com
(domain
    (domid 3)
    (on_crash restart)
    (uuid e1074e82-9bbc-8fcd-2e74-e6ab66a3017d)
    (bootloader_args )
    (vcpus 1)
    (name xen5.satimis.com)
    (on_poweroff destroy)
    (on_reboot restart)
    (bootloader )
    (maxmem 32)
    (memory 32)
    (shadow_memory 0)
    (cpu_weight 256)
    (cpu_cap 0)
    (features )
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (start_time 1221791564.86)
    (cpu_time 3.132796221)
    (online_vcpus 1)
    (image
        (linux
            (kernel /boot/vmlinuz-2.6.18-xen)
            (args 'root=/dev/hda1 ro ')
            (rtc_timeoffset 0)
            (notes
                (HV_START_LOW 4227858432)
                (FEATURES
                   
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
                )
                (VIRT_BASE 3221225472)
                (GUEST_VERSION 2.6)
                (PADDR_OFFSET 3221225472)
                (GUEST_OS linux)
                (HYPERCALL_PAGE 3222278144)
                (LOADER generic)
                (SUSPEND_CANCEL 1)
                (PAE_MODE no)
                (ENTRY 3222274048)
                (XEN_VERSION xen-3.0)
            )
        )
    )
    (status 2)
    (state -b----)
    (store_mfn 899538)
    (console_mfn 899537)
    (device
        (vif
            (uuid 18904eab-6d22-da74-79f0-c86198a01e4a)
            (script vif-bridge)
            (ip 192.168.0.115)
            (mac 00:16:3e:32:ab:e7)
            (type netfront)
            (backend 0)
        )
    )
    (device
        (vbd
            (uname file:/vserver/domains/xen5.satimis.com/disk.img)
            (uuid 505962e1-ddc4-7987-e731-eeda038c8ba1)
            (mode w)
            (dev hda1:disk)
            (backend 0)
            (bootable 1)
        )
    )
    (device
        (vbd
            (uname file:/vserver/domains/xen5.satimis.com/swap.img)
            (uuid c7e5ed00-fa70-3683-d66f-fba6feff5a69)
            (mode w)
            (dev hda2:disk)
            (backend 0)
            (bootable 0)
        )
    )
    (device
        (console
            (protocol vt100)
            (location 2)
            (uuid ca9ca5fb-9cee-6571-d064-83e2d8ddd894)
        )
    )
)
* end *



# xm list --long xen6.satimis.com
(domain
    (domid 2)
    (on_crash restart)
    (uuid 07a8b42b-acfd-ec79-ce19-83f843564db1)
    (bootloader_args )
    (vcpus 1)
    (name xen6.satimis.com)
    (on_poweroff destroy)
    (on_reboot restart)
    (bootloader )
    (maxmem 32)
    (memory 32)
    (shadow_memory 0)
    (cpu_weight 256)
    (cpu_cap 0)
    (features )
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (start_time 1221791309.54)
    (cpu_time 3.313863599)
    (online_vcpus 1)
    (image
        (linux
            (kernel /boot/vmlinuz-2.6.18-xen)
            (args 'root=/dev/hda1 ro ')
            (rtc_timeoffset 0)
            (notes
                (HV_START_LOW 4227858432)
                (FEATURES
                   
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
                )
                (VIRT_BASE 3221225472)
                (GUEST_VERSION 2.6)
                (PADDR_OFFSET 3221225472)
                (GUEST_OS linux)
                (HYPERCALL_PAGE 3222278144)
                (LOADER generic)
                (SUSPEND_CANCEL 1)
                (PAE_MODE no)
                (ENTRY 3222274048)
                (XEN_VERSION xen-3.0)
            )
        )
    )
    (status 2)
    (state -b----)
    (store_mfn 888274)
    (console_mfn 888273)
    (device
        (vif
            (uuid bbc3e77d-e001-90f2-73f6-1d2a042c6e2b)
            (script vif-bridge)
            (ip 192.168.0.116)
            (mac 00:16:3e:0a:c0:fb)
            (type netfront)
            (backend 0)
        )
    )
    (device
        (vbd
            (uname file:/vserver/domains/xen6.satimis.com/disk.img)
            (uuid 8ea4ccb1-212e-8fea-0b17-dc056ae7f75d)
            (mode w)
            (dev hda1:disk)
            (backend 0)
            (bootable 1)
        )
    )
    (device
        (vbd
            (uname file:/vserver/domains/xen6.satimis.com/swap.img)
            (uuid 182adee0-bc90-69f2-a7e5-19fc3656e1ac)
            (mode w)
            (dev hda2:disk)
            (backend 0)
            (bootable 0)
        )
    )
    (device
        (console
            (protocol vt100)
            (location 2)
            (uuid dca93d80-8087-ed35-587d-dded9e45684f)
        )
    )
)
* end *


MAC Address

xen5.satimis.com :-
(mac 00:16:3e:32:ab:e7)


xen6.satimis.com
(mac 00:16:3e:0a:c0:fb)


# nano /etc/network/interfaces
making following change

iface eth0 inet static
 address 192.168.0.116 = mac 00:16:3e:0a:c0:fb
 gateway 192.168.0.1
 netmask 255.255.255.0


Remark:-

Also tried;
 address 192.168.0.116 = MAC of mac 00:16:3e:0a:c0:fb
 address 192.168.0.116 = 00:16:3e:0a:c0:fb
 address 192.168.0.116 = MAC of 00:16:3e:0a:c0:fb


None of them worked.


# /etc/init.d/networking restart
Reconfiguring network interfaces...=: Host name lookup failure
ifconfig: `--help' gives usage information.
Failed to bring up eth0.
done.


# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3E:0A:C0:FB
          inet addr:192.168.0.116  Bcast:192.168.0.255 
Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe0a:c0fb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3154 (3.0 KiB)  TX bytes:3138 (3.0 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Please advise how to fix the problem.  TIA


B.R.
Stephen Liu

Send instant messages to your online friends http://uk.messenger.yahoo.com 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.