Hi all I''ve taken the plunge and decided to set up Xen on my AMD64 machine. I want to use amd64 debian as the domain 0 O/S, then install a full amd64 debian dev kit and a couple of 32-bit linuxes on top. I''ve got an install of debian amd64 running as domain0, which boots up just fine. I boot it with dom0_mem=131072 (the machine has 1Gb of RAM). I then created some disk images for /, /home and swap using dd, and used debootstrap --arch amd64 sarge /mnt http://amd64.debian.net/debian-amd64/ to create a base install in the root image, once I had mounted it. I saw a few errors come up in this about missing dependencies. I chrooted /mnt and did the usual set of changes to /etc/fstab, /etc/network/interfaces etc, then unmounted it. My problem now is that I can never get the xm create command to work. My config file (/etc/xen/linuxdev) looks like this: name="linuxdev" memory=512 kernel="/boot/vmlinuz-2.6-xenU" nics=1 disk=] ''file:/srv/linuxdev.img,hda1,w'', ''file:/src/linuxdev_home.img,hda2,w'' ] root="/dev/hda1 ro" The kernel image file exists and is the -xenU equivalent of my -xen0 working domain0 image (both from the binary unstable dist). Before I try xm create, xm list shows me: Name Id Mem(MB) CPU VCPU(s) State Time(s) Domain-0 0 123 0 1 r---- 18.3 When I do xm create /etc/xen/linuxdev -c I get: Using config file "/etc/xen/linuxdev". Error: Error creating domain: (0, ''Error'') xm list now shows: Name Id Mem(MB) CPU VCPU(s) State Time(s) Domain-0 0 635 0 1 r---- 19.5 Note the memory increase in Domain-0. Each time I try xm create it goes up until it runs out of memory. Looking at /var/log/xend-debug.log, the last line says: File "/local/scratch/xenod/cron-build/xen-unstable-x86_64.ud6331.dir/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.py", line 248, in buildDomain error: (0, ''Error''). I notice that line 248 of image.py on my system is a call to xc.linux_build. Hopefully this is some really dumb xen newbie thing I''m doing wrong. Can anyone help? Sorry for the size of the email; I wanted to include everything. Simon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sorry, I meant disk=[ ''file:/srv/linuxdev.img,hda1,w'', ''file:/srv/linuxdev_home.img,hda2,w'' ] It''s been a long day. Simon Guerrero wrote:> > disk=] ''file:/srv/linuxdev.img,hda1,w'', > ''file:/src/linuxdev_home.img,hda2,w'' ] > root="/dev/hda1 ro" >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Guerrero wrote:> Hi all > > I''ve taken the plunge and decided to set up Xen on my AMD64 machine. I > want to use amd64 debian as the domain 0 O/S, then install a full > amd64 debian dev kit and a couple of 32-bit linuxes on top.AFAIK, 64 bit Xen will not run 32 bit domains. This is a planned feature, but not for the very near term future.> My problem now is that I can never get the xm create command to work. > My config file (/etc/xen/linuxdev) looks like this: > > > name="linuxdev" > memory=512 > kernel="/boot/vmlinuz-2.6-xenU" > nics=1 > disk=] ''file:/srv/linuxdev.img,hda1,w'', > ''file:/src/linuxdev_home.img,hda2,w'' ] > root="/dev/hda1 ro"There''s an obvious syntax error there in the disk line. Is this a copy-paste error?> The kernel image file exists and is the -xenU equivalent of my -xen0 > working domain0 image (both from the binary unstable dist). > > Before I try xm create, xm list shows me: > > Name Id Mem(MB) CPU VCPU(s) State > Time(s) > Domain-0 0 123 0 1 > r---- 18.3 > > When I do > xm create /etc/xen/linuxdev -c > > I get: > > Using config file "/etc/xen/linuxdev". > Error: Error creating domain: (0, ''Error'') > > xm list now shows: > > Name Id Mem(MB) CPU VCPU(s) State > Time(s) > Domain-0 0 635 0 1 > r---- 19.5 > > Note the memory increase in Domain-0. Each time I try xm create it > goes up until it runs out of memory.Woah! That''s crazy. How old of a version of Xen is this? Regards, Anthony Liguori> Looking at /var/log/xend-debug.log, the last line says: > > File > "/local/scratch/xenod/cron-build/xen-unstable-x86_64.ud6331.dir/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.py", > line 248, in buildDomain > error: (0, ''Error''). > > I notice that line 248 of image.py on my system is a call to > xc.linux_build. > > Hopefully this is some really dumb xen newbie thing I''m doing wrong. > Can anyone help? > > Sorry for the size of the email; I wanted to include everything. > > Simon > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Guerrero wrote:> Sorry, I meant > > > disk=[ ''file:/srv/linuxdev.img,hda1,w'', > ''file:/srv/linuxdev_home.img,hda2,w'' ]So that _was_ the error, or that was just a mistake in posting to list?> It''s been a long day.... and there''s another one lining up for tomorrow. Cheers. -- Karsten M. Self <karsten@xensource.com> XenSource, Inc. 2300 Geng Road #250 +1 650.798.5900 x259 Palo Alto, CA 94303 +1 650.493.1579 fax _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
No, that was my clumsy typing :-/. The error occurs even with the correct line. And I think you''re right about tomorrow. Karsten M. Self wrote:> Simon Guerrero wrote: > >> Sorry, I meant >> >> >> disk=[ ''file:/srv/linuxdev.img,hda1,w'', >> ''file:/srv/linuxdev_home.img,hda2,w'' ] > > > So that _was_ the error, or that was just a mistake in posting to list? > >> It''s been a long day. > > > ... and there''s another one lining up for tomorrow. > > > Cheers. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ye Anthony Liguori wrote:> > AFAIK, 64 bit Xen will not run 32 bit domains. This is a planned > feature, but not for the very near term future.That''s OK - I can use a dchroot jail to do the work I need to do on 32 bit until the feature is available>> My problem now is that I can never get the xm create command to work. >> My config file (/etc/xen/linuxdev) looks like this: >> >> >> name="linuxdev" >> memory=512 >> kernel="/boot/vmlinuz-2.6-xenU" >> nics=1 >> disk=] ''file:/srv/linuxdev.img,hda1,w'', >> ''file:/src/linuxdev_home.img,hda2,w'' ] >> root="/dev/hda1 ro" > > > There''s an obvious syntax error there in the disk line. Is this a > copy-paste error?Yes, copy-paste error. Oops.>> >> >> Name Id Mem(MB) CPU VCPU(s) State >> Time(s) >> Domain-0 0 635 0 >> 1 r---- 19.5 >> >> Note the memory increase in Domain-0. Each time I try xm create it >> goes up until it runs out of memory. > > > Woah! That''s crazy. How old of a version of Xen is this?It''s the currentl unstable amd64 binary tarball from www.xensource.com/downloads: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-unstable-install-x86_64.tgz Simon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users