Hi folks, I searched the archives but found nothing enlightening (besides a french site but my french is quite diminished over the years ...). How do I install NetBSD in a domU on a system running Debian Sarge as dom0? Okay, I can install NetBSD on a similar machine, make an image of the partition and use that image to create my dom0. Of course I have to compile a netbsd kernel for the domU. Anything else I have to have an eye on? Any hint or help is appreciated. Dirk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dirk H. Schulz wrote:> How do I install NetBSD in a domU on a system running Debian Sarge as dom0?Burn a NetBSD 3.0 installation CD and use netbsd-INSTALL_XENU as your kernel during the installation. When the virtual machine boots for the first time install NetBSD from the CD-ROM as usual (except the CD device is now /dev/xbd1d). Once done with the installation, shutdown the VM and change the kernel to netbsd-XENU. Both kernels are found on your installation CD (i386/binary/kernel). http://www.netbsd.org/Ports/xen/howto.html Martti _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jan 25, 2006 at 01:41:40PM +0200, Martti Kuparinen wrote:> Dirk H. Schulz wrote: > > > How do I install NetBSD in a domU on a system running Debian Sarge as dom0?> Burn a NetBSD 3.0 installation CD and use netbsd-INSTALL_XENU as your kernel > during the installation. When the virtual machine boots for the first time > install NetBSD from the CD-ROM as usual (except the CD device is now > /dev/xbd1d). Once done with the installation, shutdown the VM and change the > kernel to netbsd-XENU.> Both kernels are found on your installation CD (i386/binary/kernel).> http://www.netbsd.org/Ports/xen/howto.htmlFWIW, NetBSD only really works with Xen 2.0 at the moment. However, work is underway to support Xen 3.0. -- Ceri Storey <cez@necrofish.org.uk> ''What I really want is "apt-get smite"'' --Rob Partington <http://rjp.frottage.org> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Martti, Martti Kuparinen schrieb:>Dirk H. Schulz wrote: > > > >>How do I install NetBSD in a domU on a system running Debian Sarge as dom0? >> >> > >Burn a NetBSD 3.0 installation CD and use netbsd-INSTALL_XENU as your kernel >during the installation. When the virtual machine boots for the first time >install NetBSD from the CD-ROM as usual (except the CD device is now >/dev/xbd1d). Once done with the installation, shutdown the VM and change the >kernel to netbsd-XENU. > >I tried doing that. My config file for the startup-domU looks like this (similar to http://www.netbsd.org/Ports/xen/howto.html):> kernel = "/boot/netbsd-INSTALL_XENU" > memory = 256 > name = "NetBSD-Test" > vif=[''mac=ae:00:00:78:bd:00, ip=217.64.170.28''] > disk = [ ''file:/var/xentemp/i386cd-3.0.iso,cd0a,r'', > ''phy:/dev/LVMvg01/NetBSDTest-boot,wd0d,w'' ] > root = "/dev/wd0d"When I try to start the domU for installing NetBSD I get:> xm create NetBSD-starter.cfg -c > Using config file "NetBSD-starter.cfg". > Error: Error creating domain: vbd: Device not found: wd0dHanding over dom0 LVM partitions to domU kernels normally is no problem. There is obviously something I overlook - please help me, I am new to installing NetBSD in general. Dirk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dirk H. Schulz wrote:>> kernel = "/boot/netbsd-INSTALL_XENU" >> memory = 256 >> name = "NetBSD-Test" >> vif=[''mac=ae:00:00:78:bd:00, ip=217.64.170.28''] >> disk = [ ''file:/var/xentemp/i386cd-3.0.iso,cd0a,r'', >> ''phy:/dev/LVMvg01/NetBSDTest-boot,wd0d,w'' ] >> root = "/dev/wd0d" > > > When I try to start the domU for installing NetBSD I get: > >> xm create NetBSD-starter.cfg -c >> Using config file "NetBSD-starter.cfg". >> Error: Error creating domain: vbd: Device not found: wd0dI assume you don''t have /dev/wd0d in your Linux filesystem... Look at http://www.netbsd.org/Ports/xen/howto.html and see "Creating Linux unprivileged domains" for instructions how to use hexadecimal numbers instead of wd0d. Martti _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Matti, Martti Kuparinen schrieb:>Dirk H. Schulz wrote: > > > >>>kernel = "/boot/netbsd-INSTALL_XENU" >>>memory = 256 >>>name = "NetBSD-Test" >>>vif=[''mac=ae:00:00:78:bd:00, ip=217.64.170.28''] >>>disk = [ ''file:/var/xentemp/i386cd-3.0.iso,cd0a,r'', >>>''phy:/dev/LVMvg01/NetBSDTest-boot,wd0d,w'' ] >>>root = "/dev/wd0d" >>> >>> >>When I try to start the domU for installing NetBSD I get: >> >> >> >>>xm create NetBSD-starter.cfg -c >>>Using config file "NetBSD-starter.cfg". >>>Error: Error creating domain: vbd: Device not found: wd0d >>> >>> > >I assume you don''t have /dev/wd0d in your Linux filesystem... > >No, as I understand it, the line "phy:/dev/LVMvg01/NetBSDTest-boot,wd0d,w" means "mount the Linux filesystem /dev/LVMvg... into the NetBSD-domU as wd0d". And the line "root = "/dev/wd0d"" describes the view of the domU (= NetBSD), not of the Linux filesystem (at least it does when I start my Linux domUs) like this:> disk=[''phy:/dev/LVMvg01/webstatown01-boot,sda1,w'' ...] > root="/dev/sda1 ro"In this case the given root filesystem is on the block device that is seen from the domU (sda1).>Look at http://www.netbsd.org/Ports/xen/howto.html and see "Creating >Linux unprivileged domains" for instructions how to use hexadecimal >numbers instead of wd0d. > >I did not understand that part at all because I do not need hexadecimal numbers with Linux filesystems (at least I never have until now). Thanks for your help. Dirk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Martti Kuparinen schrieb:> Look at http://www.netbsd.org/Ports/xen/howto.html and see "Creating > >Linux unprivileged domains" for instructions how to use hexadecimal >numbers instead of wd0d. > >I re-read this part of the howto. As I understand it, it means that Xen/Linux cannot mount a device as "wd0d" into a NetBSD-domU (and vice versa). If this is correct, I would need to now how NetBSD does device numbering. Can anybody tell me how hexadecimal device numbers are derived from device names like "wd0d"? I do not find anything helpful in Google at the moment. Dirk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dirk H. Schulz wrote:> If this is correct, I would need to now how NetBSD does device numbering. > > Can anybody tell me how hexadecimal device numbers are derived from > device names like "wd0d"? I do not find anything helpful in Google at > the moment.http://users.piuha.net/martti/comp/xendom0/xendom0.html chapter 3: Linux dom0 with ext3 kernel = "/boot/netbsd-XENU" memory = 128 name = "NetBSD-01" cpu = -1 disk = [ ''file:/xen/vm/netbsd.1,0x3,w'' ] root = "/dev/wd0d" _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dirk H. Schulz
2006-Feb-06 20:47 UTC
Re: [Xen-users] NetBSD-domU on debian-dom0? - RESOLVED
Hi folks, with this config file I was able to boot into the netbsd-Install_XENU kernel:> kernel = "/boot/netbsd-INSTALL_XENU" > memory = 256 > name = "NetBSD-Test" > vif=[''mac=ae:00:00:78:bd:00, ip=x.x.x.x''] > disk = [ ''file:/var/xentemp/i386cd-3.0.iso,cd0a,r'', > ''phy:/dev/LVMvg01/NetBSDTest-boot,0x301,w'' ] > root = "/dev/cd0a"As you can see, I have used the iso image of the NetBSD install cd to boot off. Why handing a Linux device number to NetBSD as a disk works, I do not know. I simply tried. The rest works like described in http://www.netbsd.org/Ports/xen/howto.html. Next days I will setup a complete, detailed install howto (NetBSD-domU on Linux-dom0) and post the link. Thanks to those helping me. Dirk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users