QEMU CD/DVD Drive Causing Problems

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
germanKid
New to forums
New to forums
Posts: 7
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Jul 12, 2011 9:53 am

QEMU CD/DVD Drive Causing Problems

Post by germanKid »

I'm trying to custom compile the 2.6.39.3 of the Linux Kernel from kernel.org and I've gotten it to partially boot. The only problem is, it fails to find the module for the QEMU CD/DVD Drive. I used the .config of the currently working stock kernel and it took a little longer than usual but I was wondering if you could point me in the direction of either finding this module or removing the CD drives from the VPS. We don't use them anyways.
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: QEMU CD/DVD Drive Causing Problems

Post by Edge100x »

The emulated DVD should work with the standard ATAPI IDE CDROM driver, I believe. In the kernel menus, this is located under "Device Drivers" -> "ATA/ATAPI/MFM/RLL support" -> "Include IDE/ATAPI CDROM support" (make sure that "generic ATA/ATAPI disk support" is also checked).

If that doesn't work, you might try the latest version of 3.0. I had some other problems with 2.9.39 and Xen, myself.
germanKid
New to forums
New to forums
Posts: 7
Joined: Tue Jul 12, 2011 9:53 am

Re: QEMU CD/DVD Drive Causing Problems

Post by germanKid »

It is. Both are being compiled as modules as including them into the kernel directly isn't an option for menuconfig. I'll spend the next hour compiling 3.0 :D.
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: QEMU CD/DVD Drive Causing Problems

Post by Edge100x »

You should definitely compile them into the kernel. You can do this by hitting the space bar an extra time after you hit it once and it goes to "M" :). Make sure that all of them are set to "*", starting with the "ATA/ATAPI/MFM/RLL support" option.
germanKid
New to forums
New to forums
Posts: 7
Joined: Tue Jul 12, 2011 9:53 am

Re: QEMU CD/DVD Drive Causing Problems

Post by germanKid »

I know, I said it wasn't an option as I could hit the space bar for 30 minutes on that option and it would still say "M" (I've been trying to compile this kernel for about 6 hours now, all the previous tries have failed). We'll try this 3.0 though, although, it shouldn't matter if they're in the kernel or not because after the initrd is done loading, the kernel has access to it's modules, regardless (I'm pretty sure).
germanKid
New to forums
New to forums
Posts: 7
Joined: Tue Jul 12, 2011 9:53 am

Re: QEMU CD/DVD Drive Causing Problems

Post by germanKid »

Alright, I'm back after an hour of compiling 3.0.0-rc7 and it's still failing.
Here is the error I'm getting via VNC from the kernel
Image

I can post my .config file if necessary.
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: QEMU CD/DVD Drive Causing Problems

Post by Edge100x »

It will let you compile it in (I tested to make sure, before my last post). Just make sure that you start at the root, "ATA/ATAPI/MFM/RLL support" , and select for that to be compiled in first. Then each other option must also be compiled in.

It doesn't really seem as though it's an emulated disk problem, though, from that error.

Have you tried disabling Xen-related options in the kernel? It can be tricky to get those right, so it might be best to just turn all of them off for now.
germanKid
New to forums
New to forums
Posts: 7
Joined: Tue Jul 12, 2011 9:53 am

Re: QEMU CD/DVD Drive Causing Problems

Post by germanKid »

Alright, after some deeper looking, you're right. Another hour of compilation and I'll be back with reports.

EDIT: After looking at Xen, I've disabled all Xen Driver Options in the Drivers portion of the kernel configuration.
germanKid
New to forums
New to forums
Posts: 7
Joined: Tue Jul 12, 2011 9:53 am

Re: QEMU CD/DVD Drive Causing Problems

Post by germanKid »

I recompiled and it is currently working as expected. To anyone who has the issues referenced in this topic, the solution is to disable ALL Xen drivers via the General Settings root. Also, you need to compile the referenced CD/DVD kernel modules into the kernel. Thank you very much.
Post Reply