Tvrtko A. Uršulin
2003-Nov-10 11:53 UTC
[Xen-devel] Problems with starting first virtual domain
Hello everybody, After installing an e100 NIC, my system now boots fine. However, I am unable to start the first virtual domain. Here comes the relevant output: /dev/hda6 is indeed a valid root filesystem, while /dev/hda5 is a swap partition. Both are dedicated for the new domain. linux:~ # xenctl script -f/etc/xen-domain0 Domain defaults: name XenoLinux size 65536 vifs 1 domainImage /boot/xenolinux.gz domainInitRD null rootDevice /dev/hda6 rootArgs rw usrDevice null NWIP 192.168.200.17+ NWGW 192.168.200.1 NWMask 255.255.255.0 MaxDomainNumber 10 NWNFSServer null NWNFSRoot null XIToolsDir /usr/local/bin/ args init=/linuxrc 4 DOMID=+ Domain created with arguments: /usr/local/bin/xi_create 65536 XenoLinux Domain built with arguments: /usr/local/bin/xi_build 9 /tmp/xen-image-63036.tmp 1 ip=192.168.200.26::192.168.200.1:255.255.255.0::eth0:off init=/linuxrc 4 DOMID=9 root=/dev/hda6 rw VIF 0 initialized with arguments: /usr/local/bin/xi_vifinit 9 0 192.168.200.26 Granted physical access to domain 9 warning: state file not found [/var/lib/xen/vdstate.xml] Partition /dev/hda6 (resolved to /dev/hda6) does not exist. linux:~ # xenctl domain list id: 0 (Domain-0) processor: 0 has cpu: true state: 0 running mcu advance: 10 total pages: 16384 id: 9 (XenoLinux) processor: 0 has cpu: false state: 8 suspended mcu advance: 10 total pages: 16384 linux:~ # cat /etc/xen-domain0 domain new physical grant -p/dev/hda6 physical grant -p/dev/hda5 domain start linux:~ # cat /etc/xenctl.xml <?xml version="1.0"?> <domctl_defaults> <domain_name>XenoLinux</domain_name> <domain_size_kb>65536</domain_size_kb> <domain_image>/boot/xenolinux.gz</domain_image> <domain_vifs>1</domain_vifs> <root_device>/dev/hda6</root_device> <root_args>rw</root_args> <args>init=/linuxrc 4 DOMID=+</args> <nw_ip>=+</nw_ip> <nw_gw>=</nw_gw> <nw_mask>=</nw_mask> <max_domain_number>10</max_domain_number> <xi_tools_dir>/usr/local/bin/</xi_tools_dir> </domctl_defaults> -- Croadria Internet usluge <http://www.croadria.com> - Web hosting (Linux & Windows), E-commerce Podrska: <http://podrska.croadria.com> Tel: 01/4657 818, 01/4655 601 Fax: 01/4657 819 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Ian Pratt
2003-Nov-10 21:48 UTC
Re: [Xen-devel] Problems with starting first virtual domain
> After installing an e100 NIC, my system now boots fine. However, I am unable > to start the first virtual domain. Here comes the relevant output: > > /dev/hda6 is indeed a valid root filesystem, while /dev/hda5 is a swap > partition. Both are dedicated for the new domain.> linux:~ # cat /etc/xenctl.xml > <?xml version="1.0"?> > <domctl_defaults> > <domain_name>XenoLinux</domain_name> > <domain_size_kb>65536</domain_size_kb> > <domain_image>/boot/xenolinux.gz</domain_image> > <domain_vifs>1</domain_vifs> > <root_device>/dev/hda6</root_device> > <root_args>rw</root_args>You probably want root_args set to "ro", otherwise fsck will complain.> <args>init=/linuxrc 4 DOMID=+</args>Assuming you''ve installed hda6 with a standard linux installation, you probably don''t want to explicit set the init program, or the run level e.g. <args>DOMID=+</args>> <nw_ip>=+</nw_ip>This will set the IP address to dom0''s IP address plus the current domainID. You might want to set this to a fixed value.> Domain created with arguments: > /usr/local/bin/xi_create 65536 XenoLinux > Domain built with arguments: > /usr/local/bin/xi_build 9 /tmp/xen-image-63036.tmp 1 > ip=192.168.200.26::192.168.200.1:255.255.255.0::eth0:off init=/linuxrc 4 > DOMID=9 root=/dev/hda6 rw > VIF 0 initialized with arguments: > /usr/local/bin/xi_vifinit 9 0 192.168.200.26 > Granted physical access to domain 9 > warning: state file not found [/var/lib/xen/vdstate.xml] > Partition /dev/hda6 (resolved to /dev/hda6) does not exist.I don''t like the look of this last line -- its definitely the primary cause of your problems. What version of Xen/Xenolinux are you using? What''s the contents of /proc/xeno/blkdev_info ? Best, Ian ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Tvrtko A. Uršulin
2003-Nov-11 11:04 UTC
Re: [Xen-devel] Problems with starting first virtual domain
On Tuesday 11 November 2003 11:33, Ian Pratt wrote:> > > > <nw_ip>=+</nw_ip> > > > This will set the IP address to dom0''s IP address plus the > > > current domainID. You might want to set this to a fixed value. > > That was my first choice, but this is the problem: > > I''m slightly confused: The xenctl file you list below doesn''t > have a ''+'' in nw_ip. > > One option is to explicitly set the IP address in the > /etc/xen-domainX scripts, using the "-4" option to "domain new" > > I haven''t tried this in a while, but it should work.Ok, the problem was <nw_ip>=192.168.200.18</nw_ip>, where it should be <nw_ip>192.168.200.18</nw_ip>.> Have you tried using "-phda6" as Bin suggests?Yes and the error is gone. However, new problems had arrised, output: linux:~ # xenctl script -f/etc/xen-domain1 Domain defaults: name XenoLinux size 65536 vifs 1 domainImage /boot/xenolinux.gz domainInitRD null rootDevice /dev/hda6 rootArgs rw usrDevice null NWIP 192.168.200.18 NWGW 192.168.200.1 NWMask 255.255.255.0 MaxDomainNumber 100 NWNFSServer null NWNFSRoot null XIToolsDir /usr/local/bin/ args init=/linuxrc 4 DOMID=+ Domain created with arguments: /usr/local/bin/xi_create 65536 XenoLinux Domain built with arguments: /usr/local/bin/xi_build 1 /tmp/xen-image-20644.tmp 1 ip=192.168.200.18::192.168.200.1:255.255.255.0::eth0:off init=/linuxrc 4 DOMID=1 root=/dev/hda6 rw VIF 0 initialized with arguments: /usr/local/bin/xi_vifinit 1 0 192.168.200.18 Granted physical access to domain 1 warning: state file not found [/var/lib/xen/vdstate.xml] Granted physical access to domain 1 warning: state file not found [/var/lib/xen/vdstate.xml] Granted physical access to domain 1 Started domain 1 linux:~ # xenctl domain list id: 0 (Domain-0) processor: 0 has cpu: true state: 0 running mcu advance: 10 total pages: 16384 So domain dissappears immediately after it is started!?> > 1.0 from XenDemoCD, have some trouble compiling 1.1 RC 1 snapshot > > (something about memcpy). > > Someone else spotted a gcc version specific compile error in the > unstable tree and a fix is now checked in.Hm... with 1.1 RC 1 snapshot: ld -T xeno.lds -N boot/boot.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/common/common.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/net/network.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/char/driver.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/pci/driver.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/net/driver.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/block/driver.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/cdrom/driver.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/ide/driver.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/scsi/driver.o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/arch/i386/arch.o -o /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/image /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/net/driver.o(.text+0x1cf): In function `e1000_ethtool_ioctl'': : undefined reference to `memcpy'' /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/net/driver.o(.text+0x401): In function `e1000_ethtool_ioctl'': : undefined reference to `memcpy'' /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/net/driver.o(.text+0x9746): In function `vortex_ioctl'': : undefined reference to `memcpy'' /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/net/driver.o(.text+0xdcb8): In function `tg3_ioctl'': : undefined reference to `memcpy'' /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/net/driver.o(.text+0x2e74e): In function `private_ioctl'': : undefined reference to `memcpy'' /home/tvrtko/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk/xen/drivers/net/driver.o(.text.init+0xf31): more undefined references to `memcpy'' follow make[2]: *** [default] Error 1 Is this the error or this is something new? GCC version: tvrtko@oxygene:~/croadria/xen/xeno-1.1.bk/xeno-clone/xeno-1.1.bk> gcc -v Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux Thread model: posix gcc version 3.3 20030226 (prerelease) (SuSE Linux) -- Croadria Internet usluge <http://www.croadria.com> - Web hosting (Linux & Windows), E-commerce Podrska: <http://podrska.croadria.com> Tel: 01/4657 818, 01/4655 601 Fax: 01/4657 819 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On 11 Nov 2003, at 11:04, Tvrtko A. Uršulin wrote:> linux:~ # xenctl domain list > id: 0 (Domain-0) > processor: 0 > has cpu: true > state: 0 running > mcu advance: 10 > total pages: 16384 > > > So domain dissappears immediately after it is started!?Run as root: # xen_nat_enable # xen_read_console & and you should be able see the XenoLinux boot message from domain 1. If you spot any error, post the error here. BTW, now bk://xen.bkbits.net/xeno-unstable.bk contains a complete Xeno-HOWTO under docs/ You''ll find it useful. Bin ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Tvrtko A. Uršulin
2003-Nov-11 11:22 UTC
Re: [Xen-devel] Problems with starting first virtual domain
On Tuesday 11 November 2003 12:15, Bin Ren wrote:> > So domain dissappears immediately after it is started!? > > Run as root: > > # xen_nat_enable > # xen_read_console & > > and you should be able see the XenoLinux boot message > from domain 1. If you spot any error, post the error here.No messages.> BTW, now bk://xen.bkbits.net/xeno-unstable.bk contains > a complete Xeno-HOWTO under docs/ > > You''ll find it useful.Why not put a snapshot on the web? -- Croadria Internet usluge <http://www.croadria.com> - Web hosting (Linux & Windows), E-commerce Podrska: <http://podrska.croadria.com> Tel: 01/4657 818, 01/4655 601 Fax: 01/4657 819 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On 11 Nov 2003, at 11:22, Tvrtko A. Uršulin wrote:> On Tuesday 11 November 2003 12:15, Bin Ren wrote: >>> So domain dissappears immediately after it is started!? >> >> Run as root: >> >> # xen_nat_enable >> # xen_read_console & >> >> and you should be able see the XenoLinux boot message >> from domain 1. If you spot any error, post the error here. > > No messages.Please post your /etc/xen-domain1 here.> >> BTW, now bk://xen.bkbits.net/xeno-unstable.bk contains >> a complete Xeno-HOWTO under docs/ >> >> You''ll find it useful. > > Why not put a snapshot on the web?http://www.cl.cam.ac.uk/~br260/xeno-howto Bin ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On 11 Nov 2003, at 11:51, Tvrtko A. Uršulin wrote:> linux:~ # cat /etc/xen-domain1 > domain new > physical grant -phda6 > physical grant -phda5 > domain startDelete the two lines containing "physical". You just need: domain new domain start> And: > > linux:~ # cat /etc/xenctl.xml > <?xml version="1.0"?> > <domctl_defaults> > <domain_name>XenoLinux</domain_name> > <domain_size_kb>65536</domain_size_kb>Make sure you have enough memory.> <domain_image>/boot/xenolinux.gz</domain_image> > <domain_vifs>1</domain_vifs> > <root_device>/dev/hda6</root_device> > <root_args>rw</root_args>Change into ''ro'' is better.> <args>init=/linuxrc 4 DOMID=+</args>Try deleting this line.> <nw_ip>192.168.200.18</nw_ip> > <nw_gw>192.168.200.1</nw_gw> > <nw_mask>255.255.255.0</nw_mask> > <max_domain_number>100</max_domain_number> > <xi_tools_dir>/usr/local/bin/</xi_tools_dir> > </domctl_defaults>Make sure xen_read_console is running background: # xen_nat_enable # xen_read_console & # ps aux | grep xen and you should see xen_read_console running. -- Bin ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Ian Pratt
2003-Nov-11 12:16 UTC
Re: [Xen-devel] Problems with starting first virtual domain
> On 11 Nov 2003, at 11:51, Tvrtko A. Uršulin wrote: > > > linux:~ # cat /etc/xen-domain1 > > domain new > > physical grant -phda6 > > physical grant -phda5 > > domain start > > Delete the two lines containing "physical". > You just need: > domain new > domain startTvrtko is using hda6 as root and hda5 as swap so he''ll need the two physical grant lines in his script file.> > <args>init=/linuxrc 4 DOMID=+</args> > > Try deleting this line.I believe Tvrtko is using a file system based on the contents of the CD. Assuming he untar''ed root.tar.gz and then copied the contents of the CD into the usr partition, then setting init=/linuxrc will indeed break things.> Make sure xen_read_console is running background: > > # xen_nat_enable > # xen_read_console & > # ps aux | grep xenThe domain may be exiting quickly because it can''t find the "init" command. It should be sending stuff to xen_read_console (and the serial line if you have one configured). If you''re not getting output from xen_read_console, check that you have the eth0:0 alias, and that you''ve got no firewall rules in domain 0 that block the ports used by the console packets. Ian ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On 11 Nov 2003, at 12:16, Ian Pratt wrote:> Tvrtko is using hda6 as root and hda5 as swap so he''ll need the > two physical grant lines in his script file.Interesting is: currently, you don''t need xen to grant physical access to real partitions and everything works! I didn''t believe that until I tried it on my laptop last night. This should imply a bug. -- Bin ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Tvrtko A. Uršulin
2003-Nov-11 12:46 UTC
Re: [Xen-devel] Problems with starting first virtual domain
On Tuesday 11 November 2003 13:16, Ian Pratt wrote:> > > <args>init=/linuxrc 4 DOMID=+</args> > > > > Try deleting this line. > > I believe Tvrtko is using a file system based on the contents of > the CD. Assuming he untar''ed root.tar.gz and then copied the > contents of the CD into the usr partition, then setting > init=/linuxrc will indeed break things.That is exactly what I did. So what should I use for init then?> The domain may be exiting quickly because it can''t find the > "init" command. It should be sending stuff to xen_read_console > (and the serial line if you have one configured). > > If you''re not getting output from xen_read_console, check that > you have the eth0:0 alias, and that you''ve got no firewall rules > in domain 0 that block the ports used by the console packets.I think this part is ok. Here is the output: linux:~ # ifconfig eth0 Link encap:Ethernet HWaddr 00:04:AC:A3:A9:3A inet addr:192.168.200.17 Bcast:192.168.200.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1979 errors:0 dropped:0 overruns:0 frame:0 TX packets:401 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:197724 (193.0 Kb) TX bytes:42609 (41.6 Kb) eth0:0 Link encap:Ethernet HWaddr 00:04:AC:A3:A9:3A inet addr:169.254.1.0 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 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) linux:~ # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy DROP) target prot opt source destination ACCEPT all -- 169.254.0.0/16 anywhere ACCEPT all -- anywhere 169.254.0.0/16 state NEW,RELATED,ESTABLISHED Chain OUTPUT (policy ACCEPT) target prot opt source destination linux:~ # ps auxw | grep xen root 778 0.0 0.3 1340 240 pts/0 S 11:50 0:00 xen_read_console -- Croadria Internet usluge <http://www.croadria.com> - Web hosting (Linux & Windows), E-commerce Podrska: <http://podrska.croadria.com> Tel: 01/4657 818, 01/4655 601 Fax: 01/4657 819 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Tvrtko A. Uršulin
2003-Nov-11 12:49 UTC
Re: [Xen-devel] Problems with starting first virtual domain
> > <domain_size_kb>65536</domain_size_kb> > > Make sure you have enough memory.Plenty :) 384Mb, with only 64Mb used for domain0.> > <domain_image>/boot/xenolinux.gz</domain_image> > > <domain_vifs>1</domain_vifs> > > <root_device>/dev/hda6</root_device> > > <root_args>rw</root_args> > > Change into ''ro'' is better. > > > <args>init=/linuxrc 4 DOMID=+</args> > > Try deleting this line.Tried both but no difference.> Make sure xen_read_console is running background: > > # xen_nat_enable > # xen_read_console & > # ps aux | grep xen > > and you should see xen_read_console running.See my other post, I think this part is ok. -- Croadria Internet usluge <http://www.croadria.com> - Web hosting (Linux & Windows), E-commerce Podrska: <http://podrska.croadria.com> Tel: 01/4657 818, 01/4655 601 Fax: 01/4657 819 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Steven Hand
2003-Nov-11 14:37 UTC
Re: [Xen-devel] Problems with starting first virtual domain
> On 11 Nov 2003, at 12:16, Ian Pratt wrote: > > > Tvrtko is using hda6 as root and hda5 as swap so he''ll need the > > two physical grant lines in his script file. > > Interesting is: currently, you don''t need xen to grant > physical access to real partitions and everything works! > I didn''t believe that until I tried it on my laptop last night.Which version of xen? And which tools? And how did you create the new domain? [you know that domain0 doesn''t need any ''physical grant'' to get to the disk I presume...].> This should imply a bug.Indeed, though I cannot see how it could happen currently... S. ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Ian Pratt
2003-Nov-11 14:45 UTC
Re: [Xen-devel] Problems with starting first virtual domain
> > On Tuesday 11 November 2003 13:16, Ian Pratt wrote: > > > > > <args>init=/linuxrc 4 DOMID=+</args> > > > > > > Try deleting this line. > > > > I believe Tvrtko is using a file system based on the contents of > > the CD. Assuming he untar''ed root.tar.gz and then copied the > > contents of the CD into the usr partition, then setting > > init=/linuxrc will indeed break things. > > That is exactly what I did. So what should I use for init then?You should find that you have an /sbin/init on that partition as per normal, so just delete the "init=/linuxrc"> > If you''re not getting output from xen_read_console, check that > > you have the eth0:0 alias, and that you''ve got no firewall rules > > in domain 0 that block the ports used by the console packets. > > I think this part is ok. Here is the output: > > linux:~ # ifconfig> eth0:0 Link encap:Ethernet HWaddr 00:04:AC:A3:A9:3A > inet addr:169.254.1.0 Bcast:169.254.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1> linux:~ # iptables -L > Chain INPUT (policy ACCEPT) > target prot opt source destination > > Chain FORWARD (policy DROP) > target prot opt source destination > ACCEPT all -- 169.254.0.0/16 anywhere > ACCEPT all -- anywhere 169.254.0.0/16 state > NEW,RELATED,ESTABLISHED > > Chain OUTPUT (policy ACCEPT) > target prot opt source destination > > linux:~ # ps auxw | grep xen > root 778 0.0 0.3 1340 240 pts/0 S 11:50 0:00 > xen_read_consoleHmm, this looks OK. You really should be getting some console output. What happens if you run "tcpdump host 169.254.1.0" when starting a new domain? Have you a serial line you could attach to see if you get output there? Best, Ian ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Keir Fraser
2003-Nov-11 14:49 UTC
Re: [Xen-devel] Problems with starting first virtual domain
> > Chain OUTPUT (policy ACCEPT) > > target prot opt source destination > > > > linux:~ # ps auxw | grep xen > > root 778 0.0 0.3 1340 240 pts/0 S 11:50 0:00 > > xen_read_console > > Hmm, this looks OK. You really should be getting some console > output. What happens if you run "tcpdump host 169.254.1.0" when > starting a new domain?Also, is the machine connected to a network? If not, try adding ifname=dummy to Xen''s command line. -- Keir ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On 11 Nov 2003, at 14:37, Steven Hand wrote:> Which version of xen? And which tools? And how did you create > the new domain? [you know that domain0 doesn''t need any ''physical > grant'' to get to the disk I presume...].xeno-1.1.bk, I just use xenctl: # xenctl script -f/etc/xen-mynewdom # cat /etc/xen-mynewdom domain new domain start I put my configuration information in /etc/xenctl.xml, including the root partition passed to XenoLinux kernel. -- Bin
Steven Hand
2003-Nov-11 16:56 UTC
Re: [Xen-devel] Problems with starting first virtual domain
> On 11 Nov 2003, at 14:37, Steven Hand wrote: > > > Which version of xen? And which tools? And how did you create > > the new domain? [you know that domain0 doesn''t need any ''physical > > grant'' to get to the disk I presume...]. > > xeno-1.1.bk, I just use xenctl: > > # xenctl script -f/etc/xen-mynewdom > > # cat /etc/xen-mynewdom > domain new > domain start > > > I put my configuration information in /etc/xenctl.xml, > including the root partition passed to XenoLinux kernel.The xenctl stuff reads these defaults and explictly grants physical access to the new domain, see: $X/tools/control/src/org/xenoserver/cmdline/ParseDomainNew.java S.