Port-xen archive

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

Re: Problem when installing NetBSD to a disk image from iso file



On Thu, Feb 03, 2011 at 01:32:58PM +0100, Mauro Guadagnini wrote:
> Hi,
> 
> I'm trying to run a virtual machine in XEN3, which I've installed in 
> NetBSD5.1 via pkg_add.
> The packages were "grub", "xentools3", "xentools3-hvm", "xenkernel3" and my 
> package-path is: 
> "ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1_2010Q3/All";
> 
> I've managed to boot the XEN3_DOM0 kernel, but when I try to create a virtual 
> machine with "xm create -c /usr/pkg/etc/xen/vm/test.cfg" it just tells me the 
> following message:
>         ...
>         mountroot: trying cd9660...
>         root file system type: cd9660
>         warning: no /dev/console
>         init: copying out path '/sbin/init' 11
>         exec /sbin/init: error 2
>         init: copying out path '/sbin/oinit' 12
>         exec /sbin/oinit: error 2
>         init: copying out path '/sbin/init.bak' 15
>         exec /sbin/init.bak: error 2
>         init path (default /sbin/init):
>         init: copying out path '/sbin/init' 11
>         exec /sbin/init: error 2
>         init path (default /sbin/oinit):
>         init: copying out path '/sbin/oinit' 12
>         exec /sbin/oinit: error 2
>         init path (default /sbin/init.bak):
>         init: copying out path '/sbin/init.bak' 15
>         exec /sbin/init.bak: error 2
>         init path:
> 
> I want to install NetBSD5.1 from an .iso file to an empty disk file, which I 
> have created with "dd if=/dev/zero of=test.vm bs=1k count=1000000"
> I've tried to resolve the problem myself, but I can't get any further.

To install to a VM you need to boot the netbsd-INSTALL_XEN3_DOMU.gz
kernel. This one contains a ramdisk with the install tools
(which let you install from several sources, including a cdrom image).
Once install is complete, switch to the netbsd-XEN3_DOMU.gz kernel.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index