Juergen Schinker
2007-May-03 16:36 UTC
[Xen-users] NetBSD as DomU in an Gentoo amd64bit host
Hi i try to test Netbsd in an DomU and use this kernel = "/boot/vmlinuz-2.6" #kernel = "/games/xen/netbsd/netbsd-INSTALL_XEN3_DOMU" memory = 128 name = "netbsd" disk =[''phy:/dev/sda1,0x03,w'',''file:/games/xen/netbsd/amd64cd-3.1.iso,0x04,r'' ] #disk = [ ''tap:aio:/games/xen/netbsd/amd64cd-3.1.iso,0x04,r'' ] vif = [ ''bridge=xenbr0'' ] root = "/dev/sd0a ro" and i come to this Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) what is wrong? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Petersson, Mats
2007-May-03 16:50 UTC
RE: [Xen-users] NetBSD as DomU in an Gentoo amd64bit host
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Juergen Schinker > Sent: 03 May 2007 17:36 > To: xen-users@lists.xensource.com > Subject: [Xen-users] NetBSD as DomU in an Gentoo amd64bit host > > Hi > > i try to test Netbsd in an DomU and use this > > kernel = "/boot/vmlinuz-2.6" > #kernel = "/games/xen/netbsd/netbsd-INSTALL_XEN3_DOMU" > memory = 128 > name = "netbsd" > disk > =[''phy:/dev/sda1,0x03,w'',''file:/games/xen/netbsd/amd64cd-3.1.i > so,0x04,r'' ] > #disk = [ ''tap:aio:/games/xen/netbsd/amd64cd-3.1.iso,0x04,r'' ] > vif = [ ''bridge=xenbr0'' ] > root = "/dev/sd0a ro" > > > and i come to this > > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(1,0) > > what is wrong?This is because you''re trying to boot Para-virtual Linux on a device called "/dev/sd0a", which you haven''t got according to your "disk=" line (you have "0x03" and "0x04")... But that''s got nothing to do with the netbsd, of course. Is that a NetBSD install CD? In that case, you''ll need to use HVM (full virtualization), which requires a processor with AMD-V (SVM) to start off. You also need some modifications to the config file (look at /etc/xen/xmexample.hvm for a base-config), and you probably want to add ":cdrom" after "0x04" on your disk-line to make QEMU-DM aware of it being a CDROM rather than a hard-disk. -- Mats> > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
François Lapointe
2007-May-03 17:45 UTC
Re: [Xen-users] NetBSD as DomU in an Gentoo amd64bit host
Seeing your ''kernel = "/boot/vmlinuz-2.6"'' line, it appears you''re trying to boot a _Linux_ kernel. You need to download and gunzip the kernel netbsd-XEN3_DOMU and use this one instead, as you did with netbsd-INSTALL_XEN3_DOMU for installation. Regards, François 2007/5/3, Juergen Schinker <ba1020@homie.homelinux.net>:> Hi > > i try to test Netbsd in an DomU and use this > > kernel = "/boot/vmlinuz-2.6" > #kernel = "/games/xen/netbsd/netbsd-INSTALL_XEN3_DOMU" > memory = 128 > name = "netbsd" > disk > =[''phy:/dev/sda1,0x03,w'',''file:/games/xen/netbsd/amd64cd-3.1.iso,0x04,r'' ] > #disk = [ ''tap:aio:/games/xen/netbsd/amd64cd-3.1.iso,0x04,r'' ] > vif = [ ''bridge=xenbr0'' ] > root = "/dev/sd0a ro" > > > and i come to this > > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(1,0) > > what is wrong? > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2007-May-08 01:10 UTC
Re: [Xen-users] NetBSD as DomU in an Gentoo amd64bit host
> > kernel = "/boot/vmlinuz-2.6" > > #kernel = "/games/xen/netbsd/netbsd-INSTALL_XEN3_DOMU" > > memory = 128 > > name = "netbsd" > > disk > > =[''phy:/dev/sda1,0x03,w'',''file:/games/xen/netbsd/amd64cd-3.1.i > > so,0x04,r'' ] > > #disk = [ ''tap:aio:/games/xen/netbsd/amd64cd-3.1.iso,0x04,r'' ] > > vif = [ ''bridge=xenbr0'' ] > > root = "/dev/sd0a ro" > > > > > > and i come to this > > > > Kernel panic - not syncing: VFS: Unable to mount root fs on > > unknown-block(1,0) > > > > what is wrong? > > This is because you''re trying to boot Para-virtual Linux on a device > called "/dev/sd0a", which you haven''t got according to your "disk=" line > (you have "0x03" and "0x04")... > > But that''s got nothing to do with the netbsd, of course.Juergen, what error do you get if you comment out the kernel = "/boot/vmlinuz-2.6" and uncomment the netbsd-INSTALL_XEN3_DOMU line?> Is that a NetBSD install CD? In that case, you''ll need to use HVM (full > virtualization), which requires a processor with AMD-V (SVM) to start > off.Actually, you don''t need HVM in this case: the NetBSD install kernel image for Xen 3 can ferret around in the ISO filesystem using the paravirtualised VBD and extract all the necessary stuff. I did it a few months ago - it''s actually quite impressive that the install (more or less) Just Works like this.> You also need some modifications to the config file (look at > /etc/xen/xmexample.hvm for a base-config), and you probably want to add > ":cdrom" after "0x04" on your disk-line to make QEMU-DM aware of it > being a CDROM rather than a hard-disk.I assume he''s using hex numbers to identify NetBSD device nodes. I''m not actually sure this is necessary, though - the howto I found didn''t do this. I think the netbsd port *might* just use the ordering of devices in the disks= list to identify what device they are, not the VBD id number (I could be wrong here). Juergen: this should be doable, I''ve done it so I know it ought to work. Keep trying! Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Juergen.Schinker
2007-May-13 13:13 UTC
Re: [Xen-users] NetBSD as DomU in an Gentoo amd64bit host
Mark Williamson schrieb:>>> kernel = "/boot/vmlinuz-2.6" >>> #kernel = "/games/xen/netbsd/netbsd-INSTALL_XEN3_DOMU" >>> memory = 128 >>> name = "netbsd" >>> disk >>> =[''phy:/dev/sda1,0x03,w'',''file:/games/xen/netbsd/amd64cd-3.1.i >>> so,0x04,r'' ] >>> #disk = [ ''tap:aio:/games/xen/netbsd/amd64cd-3.1.iso,0x04,r'' ] >>> vif = [ ''bridge=xenbr0'' ] >>> root = "/dev/sd0a ro" >>> >>> >>> and i come to this >>> >>> Kernel panic - not syncing: VFS: Unable to mount root fs on >>> unknown-block(1,0) >>> >>> what is wrong? >>> >> This is because you''re trying to boot Para-virtual Linux on a device >> called "/dev/sd0a", which you haven''t got according to your "disk=" line >> (you have "0x03" and "0x04")... >> >> But that''s got nothing to do with the netbsd, of course. >> > > Juergen, what error do you get if you comment out the kernel > = "/boot/vmlinuz-2.6" and uncomment the netbsd-INSTALL_XEN3_DOMU line? > > >> Is that a NetBSD install CD? In that case, you''ll need to use HVM (full >> virtualization), which requires a processor with AMD-V (SVM) to start >> off. >> > > Actually, you don''t need HVM in this case: the NetBSD install kernel image for > Xen 3 can ferret around in the ISO filesystem using the paravirtualised VBD > and extract all the necessary stuff. I did it a few months ago - it''s > actually quite impressive that the install (more or less) Just Works like > this. > > >> You also need some modifications to the config file (look at >> /etc/xen/xmexample.hvm for a base-config), and you probably want to add >> ":cdrom" after "0x04" on your disk-line to make QEMU-DM aware of it >> being a CDROM rather than a hard-disk. >> > > I assume he''s using hex numbers to identify NetBSD device nodes. I''m not > actually sure this is necessary, though - the howto I found didn''t do this. > I think the netbsd port *might* just use the ordering of devices in the > disks= list to identify what device they are, not the VBD id number (I could > be wrong here). > > Juergen: this should be doable, I''ve done it so I know it ought to work. Keep > trying! > > Cheers, > Mark > >Can you pass me the exact link? i updated to Xen 3.0.4 and i get Error: (2, ''Invalid kernel'', "Kernel ELF architecture ''3'' does not match Xen architecture ''62'' (x86_64)") and with the Gentoo-kernel i get an Oops BTW my eth0 interface doesnt come up by default and its in runlevel boot Strange _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users