Back to Home / #uml / 2007 / 10 / Prev Day | Next Day
#uml IRC Logs for 2007-10-10

---Logopened Wed Oct 10 00:00:10 2007
00:01|-|balbir [~balbir@122.167.64.109] has joined #uml
02:17|-|balbir [~balbir@122.167.64.109] has quit [Ping timeout: 480 seconds]
02:28|-|balbir [~balbir@122.167.92.66] has joined #uml
02:34<Magotari-#uml->>remus: I often run UML by using /dev/partition. It works. You do need to edit the init and fs tabs, but other than that, it works.
02:35<Magotari-#uml->>You do need superuser access, or at least write access.
02:35<Magotari-#uml->>However, boot the wrong partition (the host partition) and you are dealing with heavy data corruption.
02:40<Magotari-#uml->>Also, not using sync data writing can end up corrupting your real partition if you have a journalling filesystem there.
02:40<Magotari-#uml->>All in all, you are playing with fire, but yes, it is doable.
02:58|-|aroscha [~aroscha@chello213047053193.30.11.tuwien.teleweb.at] has joined #uml
04:30|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has joined #uml
04:30|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has quit [Remote host closed the connection]
04:31|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has joined #uml
04:32|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has quit [Remote host closed the connection]
04:33|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has joined #uml
04:33|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has quit [Remote host closed the connection]
04:37|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has joined #uml
04:38|-|aroscha [~aroscha@chello213047053193.30.11.tuwien.teleweb.at] has quit [Quit: aroscha]
05:08|-|aroscha [~aroscha@pnsgw3-client198.demo.tuwien.ac.at] has joined #uml
05:25|-|aroscha [~aroscha@pnsgw3-client198.demo.tuwien.ac.at] has quit [Quit: aroscha]
05:28|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
05:32|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has joined #uml
05:37|-|Urgleflogue [~plamen@83.228.65.158] has quit [Ping timeout: 480 seconds]
05:49|-|Urgleflogue [~plamen@83.228.65.158] has joined #uml
05:58|-|Urgleflogue [~plamen@83.228.65.158] has quit [Remote host closed the connection]
06:04|-|Urgleflogue [~plamen@83.228.65.158] has joined #uml
06:04|-|aroscha [~aroscha@chello084112014205.3.11.tuwien.teleweb.at] has joined #uml
06:13|-|aroscha [~aroscha@chello084112014205.3.11.tuwien.teleweb.at] has quit [Quit: aroscha]
07:58|-|dang [~dang@aa-redwall.nexthop.com] has joined #uml
07:59|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has quit [Remote host closed the connection]
08:02|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has joined #uml
08:18|-|netdrake [netdrake@rootshell.sk] has joined #uml
08:39|-|dang [~dang@aa-redwall.nexthop.com] has quit [Ping timeout: 480 seconds]
08:41|-|dang [~dang@aa-redwall.nexthop.com] has joined #uml
08:50|-|aroscha [~aroscha@chello213047053193.30.11.tuwien.teleweb.at] has joined #uml
09:18|-|aroscha [~aroscha@chello213047053193.30.11.tuwien.teleweb.at] has quit [Quit: aroscha]
09:43|-|arun [~arun@yktgi01e0-s5.watson.ibm.com] has joined #uml
09:51|-|aroscha [~aroscha@pnsgw1-client219.demo.tuwien.ac.at] has joined #uml
10:14|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has quit [Quit: ++]
10:17|-|hfb [~hfb@pool-71-106-219-180.lsanca.dsl-w.verizon.net] has joined #uml
10:22|-|aroscha [~aroscha@pnsgw1-client219.demo.tuwien.ac.at] has quit [Quit: aroscha]
10:28|-|jdike [~jdike@pool-71-248-190-161.bstnma.fios.verizon.net] has joined #uml
10:28<jdike-#uml->>Hi guys
10:30<dang-#uml->>Morning, jdike
10:49<Magotari-#uml->>jdike: Just so you know, yes, you can run UML with ubda=/dev/partition, and it works perfectly fine. I have been doing that for a while now, never had a problem.
10:49<jdike-#uml->>but it can't be a partition that's mounted rw on the host
10:50<Magotari-#uml->>It can be.
10:50<Magotari-#uml->>I tried it.
10:50<Magotari-#uml->>It will boot, yeah.
10:50<Magotari-#uml->>The corruption is huge, but it will boot.
10:50<jdike-#uml->>you will eventually get file corruption, yeah
10:50<Magotari-#uml->>:)
10:51<jdike-#uml->>and that's something that UML's file locking can't protect against
10:51<Magotari-#uml->>It won't that is for sure. A crazy thing. But if it is a separate partition, things work extremely well.
10:57|-|aroscha [~aroscha@91.112.17.142] has joined #uml
11:06|-|Baltam8 [~WIKIMOKI@tor-irc.dnsbl.oftc.net] has joined #uml
11:10|-|Baltam [~WIKIMOKI@tor-irc.dnsbl.oftc.net] has quit [Ping timeout: 480 seconds]
11:15|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has joined #uml
11:27<jdike-#uml->>why oh why doesn't uaccess work?
11:37|-|aroscha [~aroscha@91.112.17.142] has quit [Read error: Connection reset by peer]
11:38|-|aroscha [~aroscha@91.112.17.142] has joined #uml
11:38|-|aroscha [~aroscha@91.112.17.142] has quit []
11:42|-|tyler29 [~tyler@ARennes-256-1-78-165.w90-32.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
11:59|-|tyler29 [~tyler@ARennes-256-1-57-229.w90-32.abo.wanadoo.fr] has joined #uml
12:00|-|Urg[workz] [~plamen@83.228.65.158] has joined #uml
12:00|-|Urgleflogue [~plamen@83.228.65.158] has quit [Ping timeout: 480 seconds]
12:03|-|krau [~cktakahas@200.184.118.132] has quit [Quit: Varei!!!]
12:06|-|krau [~cktakahas@200.184.118.132] has joined #uml
12:32|-|baroni [~baroni@tera.lsi.usp.br] has joined #uml
13:08|-|ram [~ram@pool-71-117-247-171.ptldor.fios.verizon.net] has quit [Ping timeout: 480 seconds]
13:10|-|ram [~ram@pool-71-117-247-171.ptldor.fios.verizon.net] has joined #uml
13:15<jdike-#uml->>got it finally
13:20<jdike-#uml->>that was painful
13:28|-|mjf [~mjf@r5bb59.net.upc.cz] has joined #uml
13:36|-|tyler29 [~tyler@ARennes-256-1-57-229.w90-32.abo.wanadoo.fr] has quit [Remote host closed the connection]
13:40<kokoko1-#uml->>great
13:40<kokoko1-#uml->>btw what is uaccess :-s?
13:43|-|aroscha [~aroscha@vivilokal.funkfeuer.at] has joined #uml
13:43|-|aindilis [~aindilis@75.146.96.197] has joined #uml
13:51<aindilis-#uml->>I am looking for the "-stable" kernel referred to in: http://article.gmane.org/gmane.linux.uml.user/12255
13:56<aindilis-#uml->>Does anyone know where I might find that?
14:00|-|mjf [~mjf@r5bb59.net.upc.cz] has quit [Quit: leaving]
14:04|-|tyler29 [~tyler@ARennes-256-1-77-34.w90-32.abo.wanadoo.fr] has joined #uml
14:20<jdike-#uml->>just use 2.6.23
14:21<aindilis-#uml->>thanks
14:26|-|arun [~arun@yktgi01e0-s5.watson.ibm.com] has joined #uml
14:26<aindilis-#uml->>that did the trick
14:27<Magotari-#uml->>aindilis: For the future: http://kernel.org/
14:27<Magotari-#uml->>You can get your -stable kernels from that site, if you will ever need it again.
14:31<aindilis-#uml->>thanks
15:02<kokoko1-#uml->>oh i missed the 2.6.23 release
15:02[~]kokoko1 #uml went to /.#uml-> went to /.
15:22|-|aroscha_ [~aroscha@vivilokal.funkfeuer.at] has joined #uml
15:22|-|aroscha [~aroscha@vivilokal.funkfeuer.at] has quit [Read error: Connection reset by peer]
15:24|-|mgross [~mgross@jffwprtest.jf.intel.com] has joined #uml
15:33<remus-#uml->>jdike: I built the 2.6.23 kernel as UML and a root fs
15:33<remus-#uml->>jdike: what do I have to pass as root=??? boot argument ?
15:34<Magotari-#uml->>remus: I guess you never read the UML site, now did you?
15:34<remus-#uml->>Magotari: I am there
15:34<remus-#uml->>it doesn't say ...
15:35<remus-#uml->>or I can't find it
15:35<Magotari-#uml->>Probably the latter. root=/dev/ubda does the trick 95% of the time.
15:35<Magotari-#uml->>You can usually omit it.
15:35<Magotari-#uml->>It is added in by default.
15:36<remus-#uml->>Magotari: I am omiting it and it tells me that it usese:
15:36<remus-#uml->>Kernel command line: ubda=/home/remus/UML/uml-rootfs mem=128M root=98:0
15:36<remus-#uml->>and later:
15:36<remus-#uml->>VFS: Cannot open root device "98:0" or unknown-block(98,0)
15:36<remus-#uml->>Please append a correct "root=" boot option; here are the available partitions:
15:36<remus-#uml->>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0)
15:36<Magotari-#uml->>Yeah. The device with major 98 and minor 0. In other words, /dev/ubda
15:36<Magotari-#uml->>Try /dev/ubda1
15:37<Magotari-#uml->>Make sure you have full shm enabled in the kernel too.
15:37<remus-#uml->>Magotari: same
15:37<remus-#uml->>VFS: Cannot open root device "ubda1" or unknown-block(0,0)
15:37<remus-#uml->>Please append a correct "root=" boot option; here are the available partitions:
15:37<remus-#uml->>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
15:37<remus-#uml->>in the UML one or host ?
15:37<Magotari-#uml->>UML.
15:41<Magotari-#uml->>Also, try booting a prebuilt rootfs. Even if it crashes right after mounting a root device, that would mean that your rootfs is broken.
15:43<remus-#uml->>Magotari: ok ... I'll try the one from the site
15:55<Magotari-#uml->>Just for the future, always keep around a known good kernel and a known good rootfs. If you have mount problems, try with a confirmed good configuration. Then by changing one element at a time, you will be able to track down the problem. In case everything fails, including the previously good configuration, the issue is on the host side of things.
15:57<jdike-#uml->>remus, did you fiddle the config?
15:58<remus-#uml->>Magotari: the kernel from the site boots with my rootfs (sort of)
15:58<remus-#uml->>I used the gentoo stage3 tarball as rootfs
15:59<jdike-#uml->>linux --showconfig | grep UBD
15:59<remus-#uml->>jdike: I actually have a question related to the config
15:59<remus-#uml->>I did make defconfig ARCH=um
15:59<remus-#uml->>then make xconfig ARCH=um
16:00<jdike-#uml->>do the --showconfig
16:00<remus-#uml->>but then when I tried to compile it told me that I have to do make xconfig
16:00<remus-#uml->>jdike: make showconfig ARCH=um ?
16:00<jdike-#uml->>no
16:01<jdike-#uml->>can you read what I just said?
16:01|-|kos_tom [~thomas@humanoidz.org] has joined #uml
16:02<remus-#uml->>jdike: oh, ok
16:02<remus-#uml->># CONFIG_BLK_DEV_UBD is not set
16:02<remus-#uml->>;-)
16:02<Magotari-#uml->>*groan*
16:02<jdike-#uml->>well, you turned it off
16:03<remus-#uml->>jdike: ok, now tell me what is the correct process ? do I do xconfig without ARCH=um first ?
16:03<jdike-#uml->>forget about xconfig
16:03<jdike-#uml->>just do defconfig
16:03<remus-#uml->>and then with ARCH=um ?
16:03<jdike-#uml->>always with ARCH=um
16:04<remus-#uml->>jdike: ok, I have a fresh kernel ... can you please tell me what commands I have to run to compile it properly ?
16:04<Magotari-#uml->>remus: "ARCH=UM make"
16:05<Magotari-#uml->>Erm...
16:05<Magotari-#uml->>No.
16:05<Magotari-#uml->>remus: "ARCH=um make"
16:05<remus-#uml->>Magotari: before that ... how do I config it properly ?
16:05|-|baroni [~baroni@tera.lsi.usp.br] has quit [Quit: Saindo]
16:06<Magotari-#uml->>*sigh* You know, jdike is the creator of user mode linux. He knows his stuff. A hint. LISTEN TO HIM. He said, I quote: "just do defconfig".
16:06<Magotari-#uml->>ARCH=um defconfig
16:06<Magotari-#uml->>This will get you a working configuration.
16:07<Magotari-#uml->>Erm, I forgot the make in between ARCH=um and defconfig.
16:08<remus-#uml->>Magotari: do you have a config file that works ?
16:09<remus-#uml->>kernel that is ...
16:09<Magotari-#uml->>remus, for the love of all things sacred, "ARCH=um make defconfig"
16:09<Magotari-#uml->>That will generate a good config.
16:10<caker-#uml->>Magotari: heh
16:10<Magotari-#uml->>This is all you need.
16:10<remus-#uml->>ok
16:11<remus-#uml->>ok, now 'make ARCH=um' ?
16:11<Magotari-#uml->>I like to put ARCH=um as the first thing, after some bad experiences. But yes, "ARCH=um make".
16:11<Magotari-#uml->>Homework, remus.
16:11<Magotari-#uml->>Read on how to compile a kernel. Any kernel, not just UML.
16:12<remus-#uml->>Magotari: thanks ... compiling now
16:12|-|dang [~dang@aa-redwall.nexthop.com] has quit [Quit: Leaving.]
16:12<remus-#uml->>Magotari: I know how to compile the kernel ;-) .... I've done it many times
16:12<Magotari-#uml->>This is all the same, you just _must_ use ARCH=um with every command.
16:13<Magotari-#uml->>Gentoo user?
16:13<remus-#uml->>Magotari: ok, thanks ... I'll try it out after compilation is over
16:13<remus-#uml->>Magotari: sort of ... I use gentoo for my media box
16:13<remus-#uml->>based on freepia
16:13<Magotari-#uml->>So you should be right at home with UML's config.
16:13<remus-#uml->>that's why I thought of using their stage 3 tarball since it's relatively small
16:14<remus-#uml->>yes, but as you know you just have to get the configuration right before building a kernel
16:15|-|aroscha_ [~aroscha@vivilokal.funkfeuer.at] has quit [Quit: aroscha_]
16:15<remus-#uml->>and it looks like with um I don't have to use the regular 'make xconfig' for the kernel which is a bit counterintuitive
16:15<Magotari-#uml->>Here is a bit of advice. Go to processor features and switch to your processor architecture. Don't change anything else. Really, there is nothing more to optimise.
16:15<jdike-#uml->>you can
16:16<jdike-#uml->>just don't go turning off things you're going to need
16:16<remus-#uml->>yes ... like UBD ;-)
16:16<jdike-#uml->>you wouldn't go into a regulat config and turn off IDE and SCSI support
16:17<jdike-#uml->>and then complain to LKML that your kernel won't boot
16:17[~]remus #uml feels like an angel that has done nothing wrong ;-) #uml-> feels like an angel that has done nothing wrong ;-)
16:17<Magotari-#uml->>Funny, that is why my first kernel never wanted to boot. I disabled all those. Ah, mistakes of the youth...
16:20|-|tyler29 [~tyler@ARennes-256-1-77-34.w90-32.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
16:25<caker-#uml->>jdike can lead a horse to water *AND* make it drink
16:33<kokoko1-#uml->>hehe
16:37|-|tyler29 [~tyler@ARennes-256-1-96-68.w90-32.abo.wanadoo.fr] has joined #uml
16:38|-|jdike [~jdike@pool-71-248-190-161.bstnma.fios.verizon.net] has quit [Quit: Leaving]
16:42<Magotari-#uml->>The best horses read the documentation, carefully.
16:59|-|kos_tom [~thomas@humanoidz.org] has quit [Remote host closed the connection]
17:12<remus-#uml->>ok, I've done what you guys said and now I get the following:
17:12<remus-#uml->> ubda: unknown partition table
17:12<remus-#uml->>kjournald starting. Commit interval 5 seconds
17:12<remus-#uml->>EXT3-fs: mounted filesystem with ordered data mode.
17:12<remus-#uml->>VFS: Mounted root (ext3 filesystem) readonly.
17:12<remus-#uml->>request_module: runaway loop modprobe binfmt-464c
17:12<remus-#uml->>request_module: runaway loop modprobe binfmt-464c
17:12<remus-#uml->>request_module: runaway loop modprobe binfmt-464c
17:12<remus-#uml->>request_module: runaway loop modprobe binfmt-464c
17:12<remus-#uml->>request_module: runaway loop modprobe binfmt-464c
17:13<remus-#uml->>Magotari, jdike: I even recompiled the kernel from scratch
17:13<remus-#uml->>I get this with the rootfs frrom the site
17:14<remus-#uml->>am I supposed to have a partition table on the rootfs ?
17:16<remus-#uml->>this is on a 2.6.23 kernel
17:17|-|tyler29 [~tyler@ARennes-256-1-96-68.w90-32.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
17:47<remus-#uml->>any ideas or I am by myself here ?
17:49|-|Nem^ [~Nem@dslb-084-056-229-083.pools.arcor-ip.net] has joined #uml
17:58|-|mgross [~mgross@jffwprtest.jf.intel.com] has quit [Quit: Leaving]
18:01|-|albertito [~net@host218.200-117-158.telecom.net.ar] has quit [Quit: q]
18:03<Magotari-#uml->>remus: No, you are not supposed to have a partition table.
18:04<Magotari-#uml->>It mounted root just fine.
18:04<Magotari-#uml->>Please post the complete bootlog to a pastebin.
18:04<Magotari-#uml->>And just so you know, jdike left the channel a huge while ago.
18:06<remus-#uml->>Magotari: where do you want me to paste the thing ?
18:08|-|albertito [~net@host218.200-117-158.telecom.net.ar] has joined #uml
18:08<remus-#uml->>Magotari: http://rafb.net/p/AUNdSj81.html
18:09<remus-#uml->>Magotari: it mounted rootfs but it gets stuck immediately afterwards
18:15<caker-#uml->>remus: I'm thinking you have a kernel/userspace bitness difference problem
18:52<remus-#uml->>caker: you were right ... I built the kernel on a 32 bit machine and I finally got it to boot with the root fs from the site
18:53<remus-#uml->>I almost gave up ...
18:53[~]remus #uml thinks it's time to celebrate and take a break#uml-> thinks it's time to celebrate and take a break
18:54<remus-#uml->>now I have to figure out how to set up networking ...
18:55<caker-#uml->>remus: I strongly recommend http://edeca.net/articles/bridging/
19:12<remus-#uml->>caker: thanks ... I'll take a look at that when the time comes
19:15|-|hfb [~hfb@pool-71-106-219-180.lsanca.dsl-w.verizon.net] has quit [Quit: Leaving]
20:06|-|Baltam8 [~WIKIMOKI@tor-irc.dnsbl.oftc.net] has quit [Remote host closed the connection]
21:04|-|Nem^ [~Nem@dslb-084-056-229-083.pools.arcor-ip.net] has quit [Read error: Connection reset by peer]
21:11<remus-#uml->>does anyone know, can one insert/remove modules into the UML kernel ?
21:16|-|Nem^ [~Nem@dslb-084-056-226-143.pools.arcor-ip.net] has joined #uml
21:53|-|ElectricElf [~dbharris@bas1-toronto48-1279276223.dsl.bell.ca] has quit [Ping timeout: 480 seconds]
21:54|-|ElectricElf [~dbharris@bas1-toronto48-1279276223.dsl.bell.ca] has joined #uml
22:09<caker-#uml->>remus: the same way you do it in other Linux archs
22:58|-|VS_ChanLog [~stats@ns.theshore.net] has left #uml [Rotating Logs]
22:58|-|VS_ChanLog [~stats@ns.theshore.net] has joined #uml
---Logclosed Thu Oct 11 00:00:45 2007