On Tue, 29 Mar 2011 21:34:23 +0100 Gerard Lally <gerard%netmail.ie@localhost> wrote: > On Tue, 29 Mar 2011 12:44:53 -0700 > Dustin Marquess <dmarquess%gmail.com@localhost> wrote: > > > On Tue, Mar 29, 2011 at 12:35 PM, Gerard Lally <gerard%netmail.ie@localhost> > > wrote: > > > While in Slackware I compiled a vanilla kernel (2.6.38.2) with > > > all the Xen options enabled. I then copied the resulting vmlinuz > > > kernel in Slackware's /boot directory to / in NetBSD. > > > > You probably need the initrd too! > > > > > I start the Slackware domU as follows: > > > > > > > > > kernel = "/vmlinuz" > > > memory = 768 > > > name = "slackware-domu" > > > vif = [""] > > > vif = ["bridge=bridge0"] > > > disk = ["phy:/dev/wd0f,sda2,w", "phy:/dev/wd0j,sda5,w", > > > "phy:/dev/wd0k,sda6,w", "phy:/dev/wd0l,sda7,w", > > > "phy:/dev/wd0m,sda8,w", "phy:/dev/wd0n,sda9,w" ] > > > root = "/dev/sda2" > > > extra = "xencons=tty1" > > > > > > > > > Note: > > > > > > wd0f is Slackware's / > > > wd0j is Slackware's swap > > > wd0k is Slackware's /tmp > > > wd0l is Slackware's /usr > > > wd0m is Slackware's /var > > > wd0n is Slackware's /home > > > > > > However, I am getting a kernel loader error. > > > > > > Am I supposed to copy the vmlinuz vanilla kernel to NetBSD's / > > > directory and keep it in Slackware's /boot directory as well? > > > > Yes. You either need to copy the kernel+initrd to somewhere local > > on the NetBSD drive(s), or use pygrub. > > > > bootloader = 'pygrub' > > > > And then comment-out the kernel line. > > Thank you. I followed the Slackware instructions and created an initrd > as follows: > > mkinitrd -c -k 2.6.38.2-smp -m ext4 -f ext4 -r /dev/sda2 > > This created an initrd.gz file in /boot. I added the relevant line to > lilo.conf and ran lilo and Slackware still boots properly. > > I then copied this initrd.gz file to / in NetBSD. > > Do I need to reference this file in the domU configuration file or is > the kernel reference line enough? I still get the following error: > > Error: (2, 'Invalid kernel', 'xc_dom_find_loader:no loader found\n') > > I am not sure if my physical disks are exported correctly so perhaps > this is the problem? > > I haven't looked into pygrub yet. I am very happy to report that I have made progress with this. I had compiled the kernel in Slackware with LZMA compression enabled, and of course Xen was unhappy with this. I recompiled with Gzip compression enabled instead and the Slackware domU booted up. I also had to change the root device to /dev/xvda2 because the kernel panicked. I now have Slackware booting up as a domU and natively. For some reason I can't connect to the domU with vncviewer but I think I can get over that hurdle. I am delighted with this setup. Thank you Dustin for your help, which alerted me to another issue I had overlooked. -- Gerard Lally
Attachment:
signature.asc
Description: PGP signature