Stephen Liu
2008-Dec-03 13:45 UTC
Re: [Xen-users] Re: Problem on slow keystroke response - guest on Xen box
--- Javier Barroso <javibarroso@gmail.com> wrote:> On Wed, Dec 3, 2008 at 7:55 AM, Stephen Liu <satimis@yahoo.com> > wrote: > > > > > Hi Javier, > > > > > > Further to my late posting; > > > > > > After installing udev on next boot the guest was completely cut off > > from outside world. It can''t be ssh-connected remotely. After > > starting it with "xm console ....." it can''t ping the host, other > > guests and Internet. > > > > > > # /etc/init.d/networking restart > > Reconfiguring network interfaces...SIOCSIFADDR: No such device > > eth0: ERROR while getting interface flags: No such device > > SIOCSIFNETMASK: No such device > > eth0: ERROR while getting interface flags: No such device > > Failed to bring up eth0. > > > > > > # find /sys -iname *eth* > > /sys/class/net/eth5 > > /sys/devices/xen/vif-0/net:eth5 > > If you have in xen config > vif = [ ''mac=xx:xx:xx:xx:xx'' ] > > and in /etc/udev/rules.d/z25_persistent-net.rules > > SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="xx:xx:xx:xx:xx:xx", > NAME="eth0" > > Then your system have to reboot fine and get networking if eth0 is > configured on /etc/network/interfaces > > Regards > > > then > > > > I was compelled to remove udev. > > > > > > # apt-get remove udev > > # rm -rf /etc/udev > > # rm /etc/init.d/udev > > # reboot > > > > > > Then it returns normal. I think the guests must run dynamic MAC > > > > address. > > No, your guest should run with a static MAC ( I think is the prefer > method > and the uniq if you want to use dhcp)On guest reinstalled udev # apt-get install udev # cat /etc/udev/rules.d/z25_persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, probably run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single line. # MAC addresses must be written in lowercase. SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:3e:5b:c3:ad", NAME="eth0" * end * On host; # nano /etc/xen/xen1.satimis.com.cfg made change as follow; vif = [ ''mac=00:16:3e:5b:c3:ad'' ] # xm create /etc/xen/xen1.satimis.com.cfg Now it works. Thanks. "mac=" is need before the address B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users