Yes, I also tested with centos it has the same problem, it turns out that the two interfaces is a problem with
my configuration file, I have changed that from:
vif = [ 'mac=00:16:3e:31:48:5f', 'bridge=eth1' ]
To:
vif = [ 'mac=00:16:3e:31:48:5f, bridge=eth0' ]
and now it only show one interface in guest domain.
By copying the kernel and image file from Ubuntu to the dom0 and use them to create a new guest domain got this message:
# xm create xm03dlzhang
Using config file "./xm03dlzhang".
Error: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images').
Any idea?
Thanks,
Donglai
Looks to me like this configuration file is trying to boot a Fedora Xen
DomU kernel on an Ubuntu image? If so that would explain why you are
having to copy over the kernel module files.
I would suggest that you either copy the Ubuntu DomU kernel (and
possibly the initrd) to the Dom0 file system somewhere and specify that
in the kernel= line, or specifiy a
bootloader="/usr/bin/pygrub"
line instead of the kernel= line so that Ubuntu Xen DomU kernel is
loaded from the guest file system. The later is the better option in my
opinion.
It is odd that the DomU is showing 2 interfaces when only one is
defined, but lets make sure that the correct kernel/modules are loaded
first.
Regards
Mike