xend in init.d
I have some problems with xen.
I have put xend startup script in /etc/init.d, and when the machine
goes up, the xend start.
Then i manually startup a new virtual machine with "xm create vmid=1",
the problem is, this machine after bootup can't reach the gateway.
Then i make a restart of xend and the "virtual machine" gets the
network problems resolved.
The problem with this method, is that after restart xend, i can't
connect to the "virtual machine" with "xm console xpto", but the virtual machine is listed in "xm list".
Can someone point me what i'm doing wrong ?
Thank's.
ND
Signature · 10 lines
Nuno Dias <[email protected]> LIP ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 4 lines · On Mon, 11 Oct 2004 15:59:31 +0100 Nuno Dias <[email protected]> wrote:
I have some problems with xen.
I have put xend startup script in
/etc/init.d, and when the machine
goes up, the xend start.
Does it run this before the networking script? If so, it makes sense that guest domains wouldn't be able to reach the gateway, xend runs the network script listed in /etc/xen/xend-config.sxp which assumes the host's networking is already up.
Quoted 2 lines
Then i manually startup a new virtual machine with "xm create vmid=1",
the problem is, this machine after bootup can't reach the gateway.
What does ifconfig say here?
Quoted 2 lines
Then i make a restart of xend and the "virtual machine" gets the
network problems resolved.
What does ifconfig say now?
Quoted 6 lines
The problem with this method, is that after restart xend, i can't
connect to the "virtual machine" with "xm console xpto", but the virtual machine is listed in "xm list".
Can someone point me what i'm doing wrong ?
Thank's.
Quoted 17 lines
ND
Signature · 14 lines
Nuno Dias <[email protected]> LIP ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Xen-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 7 lines · Tim Freeman
Quoted 2 lines
I have put xend startup script in
/etc/init.d, and when the machine
goes up, the xend start.Does it run this before the networking script? If so, it makes sense that guest domains wouldn't be able to reach the gateway, xend runs the network script listed in
/etc/xen/xend-config.sxpwhich assumes the host's networking is already up.
No, i run xend after network ...
# cd /etc/rc3.d
# ls -la S10network S99xend lrwxr-xr-x 1 root root 17 Sep 14 16:38 S10network -> ../init.d/network lrwxr-xr-x 1 root root 14 Sep 20 15:23 S99xend -> ../init.d/xend
Quoted 4 lines
Quoted 2 lines
Then i manually startup a new virtual machine with "xm create vmid=1",
the problem is, this machine after bootup can't reach the gateway.What does ifconfig say here?
In the host machine in ifconfig command i have eth0, lo and vif1.0
In the "virtual machine" i have eth0 and lo
Quoted 4 lines
Quoted 2 lines
Then i make a restart of xend and the "virtual machine" gets the
network problems resolved.What does ifconfig say now?
In the host machine in ifconfig command i have eth0, lo, vif1.0 and one new interface xen-br0
In the "virtual machine" i have eth0 and lo
Quoted 3 lines
Quoted 3 lines
The problem with this method, is that after restart xend, i can't
connect to the "virtual machine" with "xm console xpto", but the virtual machine is listed in "xm list".
Thank's for the assistance.
ND
Signature · 10 lines
Nuno Dias <[email protected]> LIP ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
Depending on how your distribution works, maybe brctl is not on the path
yet? Did you install brctl to an odd location? In the/etc/xen/scripts/network script you can replace brctl with the full path if that is the problem.
To get more information, you can add '-x' after the first line in /etc/xen/scripts/network to enable bash tracing (goes to /var/log/xend.log) and see what it does at boot.
Also, you may want to check what 'brctl show' says right after boot just in case there is something even more strange going on..
Hope that helps somehow,
Tim
Quoted 39 lines · On Tue, 12 Oct 2004 10:32:40 +0100 Nuno Dias <[email protected]> wrote:
Quoted 7 lines · Tim Freeman
Quoted 2 lines
I have put xend startup script in
/etc/init.d, and when the machine
goes up, the xend start.Does it run this before the networking script? If so, it makes sense that guest domains wouldn't be able to reach the gateway, xend runs the network script listed in
/etc/xen/xend-config.sxpwhich assumes the host's networking is already up.No, i run xend after network ...
# cd /etc/rc3.d# ls -la S10network S99xend lrwxr-xr-x 1 root root 17 Sep 14 16:38 S10network -> ../init.d/network lrwxr-xr-x 1 root root 14 Sep 20 15:23 S99xend -> ../init.d/xendQuoted 4 lines
Quoted 2 lines
Then i manually startup a new virtual machine with "xm create vmid=1",
the problem is, this machine after bootup can't reach the gateway.What does ifconfig say here?
In the host machine in ifconfig command i have eth0, lo and vif1.0
In the "virtual machine" i have eth0 and lo
Quoted 4 lines
Quoted 2 lines
Then i make a restart of xend and the "virtual machine" gets the
network problems resolved.What does ifconfig say now?
In the host machine in ifconfig command i have eth0, lo, vif1.0 and one new interface xen-br0
In the "virtual machine" i have eth0 and lo
Quoted 11 lines
Quoted 3 lines
Quoted 3 lines
The problem with this method, is that after restart xend, i can't
connect to the "virtual machine" with "xm console xpto", but the virtual machine is listed in "xm list".Thank's for the assistance.
ND
Signature · 2 lines
Nuno Dias <[email protected]> LIP
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
xend startup problem
Hi,
I have this strange problem.
I have put xend in startup scripts for start in run level 3, and something do not work very well.
The problem is, when i start a virtual machine, this machine can't reach the gateway.
After the boot of host machine, ifconfig give me 3 interfaces (eth0, lo, xen-br0)
xend are running
# ps auxwww|grep xend root 1773 0.0 5.3 9300 6764 ? S 15:40 0:00 python /usr/sbin/xend start
# brctl show bridge name bridge id STP enabled interfaces xen-br0 8000.00e07dfc4ff4 no eth0
After i start the virtual machine, ifconfig give me 4 interfaces (eth0, lo, xen-br0, vif1.0)
But if i start xend manually after the startup of the host machine, and then start the virtual machine i can reach the gateway and everything work very well.
Can someone point me some "debug" that can i do to see where is the problem ?
I'm using Scientific Linux CERN release 3.0.2 (SL) (Is based on Redhat Enterprise) and xen-2.0
Thank's.
ND
Signature · 10 lines
Nuno Dias <[email protected]> LIP ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Re: xend startup problem
Quoted 5 lines
Hi,
I have this strange problem.
I have put xend in startup scripts for start in run level 3, and something do not work very well.
Are you trying to configure xend too early in runlevel 3, e.g. before networking is properly up?
Ian
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Re: xend startup problem
No, the xend is the last service to start in run level 3.
ND
Quoted 21 lines · Ian Pratt
Quoted 5 lines
Hi,
I have this strange problem.
I have put xend in startup scripts for start in run level 3, and something do not work very well.Are you trying to configure xend too early in runlevel 3, e.g. before networking is properly up?
Ian
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
Signature · 10 lines
Nuno Dias <[email protected]> LIP ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click