OK, adding my experience on this as I found this page when I had a rough idle/misfire problem. (2008 Z4 Coupe 3.0si at about 90K Miles)
I am a wannabee home mechanic. I say 'wannabee' , as I always get something wrong ! (And have to call a proper mechanic to dig me out of the holes I create for myself !)
My Symptoms:
> An alarming metallic knocking sound (A very bad end of engine sound !!!)
> Yellow Engine Light on dashboard
> Rough Idle
> Definite misfire when driving (though still runs on 5 cylinders)
> possibly related oil leak I suspect is from the 2 VANOS solenoid O'rings (oil on front of engine block, under )
However, after doing a service (Oil, plug, filter, cabin filter-which was dated 2011 so needed a change !),I had a mobile mechanic come round plug his diagnostic into the OBD Port.
> This showed a misfire on cylinder 2
> Changed the coilpacks from cyl 1 to cyl 2 (or you could ue any other cylinder)
> Mechanic reset all faults
> Drove up and down the road.
> Yellow Engine light came back on andfault has now moved to Cyl 2 - Bingo - Fault found (Cyl 1 coilpack faulty)
> Ordered 6 x Delphi GN10571-12B1 coilpacks which came in at £129 (or £400 from BMW) - No point in replacing and getting the same fault from the other coilpacks as they get older !, and a relatively cheap fix.
Will report back here when I fit them, but am expecting this to fix the fault. Plus will be replacing the 2 VANOS Solenoids in the near future (BMW Doctor online says to replace and not to just try cleaning them as this never solves the problem)
Great video on Youtube from BMW Doctor , on the 3 things to check when rough running : Coilpacks, VANOS solenoids, DISA Valve flaps. [youtube]https://www.youtube.com/watch?v=rMLwQPhhEsU[/youtube]
I may look a the DISA Flaps , but they are not broken so not fixing