Richard Ta-Min
2004-Jul-15 07:36 UTC
[Xen-devel] New to Xen. Eth0 not being detected and Domain0 starts up with some difficulty
Hello, I am new to XEN and I am trying to get it to work. I am running into quite a few problems. I have downloaded the xen 1.2 source code and I have compiled both xen and xenolinux 2.4.26. I have copied the images to my boot partition and I have added them to grub.conf. Here is how my grub.conf looks like: ==========================================================default=2 timeout=10 splashimage=(hd0,5)/grub/splash.xpm.gz title Xen / XenoLinux 2.4.26 kernel /xen.gz dom0_mem=100000 module /xenolinux.gz root=/dev/hda7 ro title Red Hat Linux (2.4.26UML_SKAS3) root (hd0,5) kernel /vmlinuz-2.4.26UML_SKAS3 ro root=/dev/hda7 initrd /initrd-2.4.26UML_SKAS3.img title Red Hat Linux (2.4.26) root (hd0,5) kernel /vmlinuz-2.4.26 ro root=/dev/hda7 initrd /initrd-2.4.26.img ========================================================= I am running into the following problems: 1.) When Xen starts up, it cannot detect my eth0. The following message is displayed during Xen start up and before xenolinux domain 0 gets started. =============================================== Could not find device eth0: using dummy device Device dummy opened and ready for use =============================================== I run RedHat 9 on my machine and I know that my ethernet driver is sk98lin.o which comes with kernel-2.4.26. How do I get Xen to load that module ? 2.) When Xen has finished loading, it tries to load xenolinux domain 0. I get the following message: =============================================== Dom0: Guest OS virtual load address is c0000000 =============================================== Afterwards, it seems that the system freezes. No more messages are displayed while Domain 0 loads up. After several minutes of what looks like a system freeze, I finally get the login prompt and I can login to domain0. I do not get this problem if I use the demo CD. When I boot using the demo CD, I can see domain 0 being brought up and all the services being started. Thanks Richard ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Ian Pratt
2004-Jul-15 08:21 UTC
Re: [Xen-devel] New to Xen. Eth0 not being detected and Domain0 starts up with some difficulty
> 1.) When Xen starts up, it cannot detect my eth0. > The following message is displayed during Xen start up and before > xenolinux domain 0 gets started. > > ===============================================> Could not find device eth0: using dummy device > Device dummy opened and ready for use > ===============================================> > I run RedHat 9 on my machine and I know that my ethernet driver is > sk98lin.o which comes with kernel-2.4.26. How do I get Xen to load > that module ?Richard, There''s no support for your ethernet card under 1.2. If you''re brave, upgrade to xeno-unstable.bk and the card should work, otherwise wait until the 2.0 release (a week or two).> 2.) When Xen has finished loading, it tries to load xenolinux domain 0. > I get the following message: > > ===============================================> Dom0: Guest OS virtual load address is c0000000 > ===============================================> > Afterwards, it seems that the system freezes. No more messages are > displayed while Domain 0 loads up. After several minutes of > what looks like a system freeze, I finally get the login prompt and > I can login to domain0. I do not get this problem if I use the demo > CD. When I boot using the demo CD, I can see domain 0 being brought > up and all the services being started.I suspect its just that you''re not getting console output, and the startup scripts are taking ages to execute because networking is down. Try adding ''console=tty0'' to the xenolinux line. Ian ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Keir Fraser
2004-Jul-15 09:13 UTC
Re: [Xen-devel] New to Xen. Eth0 not being detected and Domain0 starts up with some difficulty
> > 2.) When Xen has finished loading, it tries to load xenolinux domain 0. > > I get the following message: > > > > ===============================================> > Dom0: Guest OS virtual load address is c0000000 > > ===============================================> > > > Afterwards, it seems that the system freezes. No more messages are > > displayed while Domain 0 loads up. After several minutes of > > what looks like a system freeze, I finally get the login prompt and > > I can login to domain0. I do not get this problem if I use the demo > > CD. When I boot using the demo CD, I can see domain 0 being brought > > up and all the services being started. > > I suspect its just that you''re not getting console output, and > the startup scripts are taking ages to execute because networking > is down. Try adding ''console=tty0'' to the xenolinux line.On Xen 1.2 you need ''console=xencons0''. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Rune Johan Andresen
2004-Jul-15 10:35 UTC
Re: [Xen-devel] Create domain, partition question & errormsg
Hi, I have one partition, hda1 and one for swapping. I use the default xmdefaults config file (with edited link to the image). When I try xm create vmid=1 i get an error: Error creating domain: [Failure instance: Trackeback: xen.xend.XendError.vmError, vdb: Segment not foundXXXXXX: unname=phy:sda8 How can I edit to make Xen use the right partition, I am not sure how Xen really is setup to manage this(?) Rune ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Niraj Tolia
2004-Jul-15 11:03 UTC
Re: [Xen-devel] Create domain, partition question & errormsg
Rune, the default xmdefaults file has this disk = [ ''phy:sda%d,sda1,w'' % (7+vmid), ''phy:sda6,sda6,r'' ] Therefore when you pass vmid=1, it attempts to pass sda8 from dom0 into dom1 as sda1. However, it does not look like you have sdaXX. Therefore, just copy the defaults file and change the above line to disk= [ ''phy:hda1,sda1,w'', ''phy:hda2,sda2,w''] where I am assuming that hda2 is your swap partition. Make sure that your /etc/fstab file in your root partition for dom1 has the correct entries to load sda1 as / and sda2 as swap. You can then start a new domain by using xm create -f <new defaults file> vmid=1 Also, just make sure you are not sharing partitions between dom0 and dom1. Niraj On Thu, 15 Jul 2004 12:35:14 +0200, Rune Johan Andresen <runejoha@idi.ntnu.no> wrote:> Hi, I have one partition, hda1 and one for swapping. I use the default > xmdefaults config file (with edited link to the image). When I try > xm create vmid=1 i get an error: > > Error creating domain: [Failure instance: Trackeback: > xen.xend.XendError.vmError, vdb: Segment not foundXXXXXX: > unname=phy:sda8 > > How can I edit to make Xen use the right partition, I am not sure how > Xen really is setup to manage this(?) > > Rune > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel >------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Hi, so far so good. I can start a domain. When I try to connect to a domain "xm console <nr>" it boots, but it tries to send a DHCP request which times out. Sending DHCP requests ..... timed out! Can i turn this off? The network setup for domain0 works perfectly. do I need some additional applications etc.? Rune On Jul 15, 2004, at 1:03 PM, Niraj Tolia wrote:> Rune, > > the default xmdefaults file has this > > disk = [ ''phy:sda%d,sda1,w'' % (7+vmid), > ''phy:sda6,sda6,r'' ] > > Therefore when you pass vmid=1, it attempts to pass sda8 from dom0 > into dom1 as sda1. However, it does not look like you have sdaXX. > Therefore, just copy the defaults file and change the above line to > > disk= [ ''phy:hda1,sda1,w'', > ''phy:hda2,sda2,w''] > > where I am assuming that hda2 is your swap partition. Make sure that > your /etc/fstab file in your root partition for dom1 has the correct > entries to load sda1 as / and sda2 as swap. > > You can then start a new domain by using xm create -f <new defaults > file> vmid=1 > > Also, just make sure you are not sharing partitions between dom0 and > dom1. > > Niraj > > > On Thu, 15 Jul 2004 12:35:14 +0200, Rune Johan Andresen > <runejoha@idi.ntnu.no> wrote: >> Hi, I have one partition, hda1 and one for swapping. I use the >> default >> xmdefaults config file (with edited link to the image). When I try >> xm create vmid=1 i get an error: >> >> Error creating domain: [Failure instance: Trackeback: >> xen.xend.XendError.vmError, vdb: Segment not foundXXXXXX: >> unname=phy:sda8 >> >> How can I edit to make Xen use the right partition, I am not sure how >> Xen really is setup to manage this(?) >> >> Rune >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by BEA Weblogic Workshop >> FREE Java Enterprise J2EE developer tools! >> Get your free copy of BEA WebLogic Workshop 8.1 today. >> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/xen-devel >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > Hi, so far so good. I can start a domain. When I try to connect to a > domain "xm console <nr>" it boots, but it tries to send a DHCP request > which times out. > > Sending DHCP requests ..... timed out! > > Can i turn this off? The network setup for domain0 works perfectly. do > I need some additional applications etc.?Take a look at your /etc/xen/xmdefaults config file. You''re asking the domain to get its ip address using the in-kernel DHCP requester. Either configure your network''s DHCP server to respond to the new domain''s MAC address, or edit xmdefaults to configure an IP address, netmask and gateway manually. If you want it to take the config from whatever you have in dom0 and add 1 to the IP address, use the following: #dhcp="dhcp" ip = add_offset_to_ip(get_current_ipaddr(),vmid) netmask = get_current_ipmask() gateway = get_current_ipgw() #hostname= "myvm%d" % vmid If you want to use DHCP, either go with the generated MAC address, or set your own with: vif = [ ''mac=00:06:AA:F6:BB:B3'' ] dhcp="dhcp" Ian ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel