From: Carl B. C. <cco...@cs...> - 2003-12-16 17:36:04
|
How do I upgrade a UML kernel once the UML session has been built? For example, I used one of the default RPM's on UML.org to install a kernel, then built the UML session. Now, I want to use one of the binary kernels from kernels.usermodelinux.org and install that. Is there anything special I have to do other than rpm -e existing kernel, put the new kernel in place and start my UML session? Thanks. -- Carl B. Constantine University of Victoria Programmer Analyst http://www.csc.uvic.ca UNIX System Administrator Victoria, BC, Canada cco...@cs... ELW A248, 721-8766 |
From: BlaisorBlade <bla...@ya...> - 2003-12-17 20:04:20
|
Alle 18:37, marted=EC 16 dicembre 2003, Carl B. Constantine ha scritto: > How do I upgrade a UML kernel once the UML session has been built? > > For example, I used one of the default RPM's on UML.org to install a > kernel, then built the UML session. Now, I want to use one of the binary > kernels from kernels.usermodelinux.org and install that. Is there > anything special I have to do other than rpm -e existing kernel If the rpm contains only the kernel! >, put the > new kernel in place and start my UML session? =46irst, I assume that with session you mean a root filesystem. Which is no= t=20 quite straightforward reading your mail. If and only if the kernel requires modules, they must be installed in the r= oot=20 filesystem... loop mount the root fs(if you don't use COW) and copy them to= =20 the right dir(I assume you are familiar with such things, however see the=20 /lib/modules directory and modutils man page if you need help). Remember th= e=20 version number must match <UmlKernel> --version output. If your session is anything else, explain this. Bye =2D-=20 cat <<EOSIGN Paolo Giarrusso, aka Blaisorblade Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729 EOSIGN |
From: roland <for...@gm...> - 2003-12-17 21:03:29
|
>filesystem... loop mount the root fs(if you don't use COW) and copy them to and what to do if one uses COW? ;) ----- Original Message ----- From: "BlaisorBlade" <bla...@ya...> To: <use...@li...> Sent: Wednesday, December 17, 2003 8:27 PM Subject: Re: [uml-user] upgrading kernels? Alle 18:37, martedì 16 dicembre 2003, Carl B. Constantine ha scritto: > How do I upgrade a UML kernel once the UML session has been built? > > For example, I used one of the default RPM's on UML.org to install a > kernel, then built the UML session. Now, I want to use one of the binary > kernels from kernels.usermodelinux.org and install that. Is there > anything special I have to do other than rpm -e existing kernel If the rpm contains only the kernel! >, put the > new kernel in place and start my UML session? First, I assume that with session you mean a root filesystem. Which is not quite straightforward reading your mail. If and only if the kernel requires modules, they must be installed in the root filesystem... loop mount the root fs(if you don't use COW) and copy them to the right dir(I assume you are familiar with such things, however see the /lib/modules directory and modutils man page if you need help). Remember the version number must match <UmlKernel> --version output. If your session is anything else, explain this. Bye -- cat <<EOSIGN Paolo Giarrusso, aka Blaisorblade Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729 EOSIGN ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=ick _______________________________________________ User-mode-linux-user mailing list Use...@li... https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
From: Jeff D. <jd...@ad...> - 2003-12-18 00:59:40
|
for...@gm... said: > and what to do if one uses COW? You wait for me to go back to the standalone COW driver :-) Jeff |
From: Jeff D. <jd...@ad...> - 2003-12-18 00:59:46
|
cco...@cs... said: > How do I upgrade a UML kernel once the UML session has been built? Just run the new kernel instead of the old one (i.e. shut down the session and start it up again, running the new kernel). If you have modules, as someone else mentioned, you need to copy them into the filesystem beforehand. COW complicates this, but you can get around this by having a separate device holding the modules which gets mounted at /lib/modules inside UML. Mount it on the host and copy the new modules in. Jeff |
From: BlaisorBlade <bla...@ya...> - 2003-12-18 20:06:40
|
Alle 02:15, gioved=EC 18 dicembre 2003, Jeff Dike ha scritto: > cco...@cs... said: > > How do I upgrade a UML kernel once the UML session has been built? > > Just run the new kernel instead of the old one (i.e. shut down the session > and start it up again, running the new kernel). > > If you have modules, as someone else mentioned, you need to copy them into > the filesystem beforehand. COW complicates this, but you can get around > this by having a separate device holding the modules which gets mounted at > /lib/modules inside UML. Mount it on the host and copy the new modules i= n. Instead, run on the host from the built kernel: make modules_install ARCH=3Dum INSTALL_MOD_PATH=3D/adir and get /adir/lib/.... or just get the modules included in the RPM, then run the old kernel, use=20 hostfs(or NFS, or Samba, or what you want) to copy the files from the host = in=20 the right place. Then you'll have the modules installed and you can restart UML with the new= =20 kernel. Bye =2D-=20 cat <<EOSIGN Paolo Giarrusso, aka Blaisorblade Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729 EOSIGN |