Port-xen archive

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

Re: installing a 4.1 DOMU



On Mon, Jul 16, 2012 at 8:14 PM, Brook Milligan <brook%nmsu.edu@localhost> 
wrote:
> I am trying to install a xen4.1 DOMU from pkgsrc and am having a bit of
> trouble getting it all set up properly.  The root filesystem is a file 
> presented to xen via vnd0.  Specifically, I am having troubles with the 
> following when I create the domain with 'xl create -c solanum':

xl is not supported on xen 4.1 on NetBSD, and is still considered as
an experimental toolstack even on Linux (xend/xm is the recommended
toolstack in 4.1), so the results using xl might vary.

>
> - The INSTALL_XEN3PAE_DOMU kernel seems to think that the root filesystem is 
> readonly.  Consequently, disklabel fails and the installation cannot be 
> completed.  However, within the same system a manual installation can be 
> completed just fine.  Is this a deficiency with setup in some way?
>
> - Once the system is installed, it does not seem to find the root filesystem 
> properly.  During booting the kernel gives the following message
>
>         boot device: <unknown>
>         root device:
>
> If 'xbd0a' is manually entered (and defaults accepted for the following 
> prompts for dump/init/etc.), the system will boot fine.  My xen config file 
> has the following lines:
>
>         disk = [ 'phy:/dev/vnd0a,hda1,w' ]

Can you use vnd0 instead and vnd0a and xvda instead of hda1? I would
recommend using the image file as a whole disk instead of a partition.

disk = [ 'phy:/dev/vnd0,xvda,w' ]

>         root = "/dev/xbd0a"
>
>
> How is the root filesystem supposed to be defined?
>
> - If I try to use the root filesystem file directly (instead of via vnd0), 
> i.e., with the following line in my xen config file:
>
>         disk = [ 'file:/export/xen/solanum.img,hda1,w' ]

If you replace hda1 with xvda this should work fine under xm.

>
> no console is created and 'xl create -c solanum' yields the following:
>
>         xenconsole: Could not read tty from store: No such file or directory
>
> Any help with xen4.1 is greatly appreciated.  A few details seem to be
> different from xen3 so I'm getting hung up.
>
> Thanks for your help.
>
> Cheers,
> Brook


Home | Main Index | Thread Index | Old Index