NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Slackware vanilla kernel for domU in NetBSD dom0



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.

-Dustin


Home | Main Index | Thread Index | Old Index