Re: Question on stopping KVM start at boot
Hi Dustin, - snip - Where shall I add -b option? Thanks modprobe -b says respect the blacklists. See: * http://manpages.ubuntu.com/manpages/lucid/en/man8/modprobe.8.html -b --use-blacklist This option causes modprobe to apply the blacklist commands in the configuration files (if any) to module names as well. It is usually used by udev(7). So you would change the lines that say if modprobe ... to if modprobe -b ... Your advice works for me. Thanks B.R. Stephen -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Question on stopping KVM start at boot
On Wed, Mar 10, 2010 at 9:59 PM, sati...@pacific.net.hk wrote: $ cat /etc/init.d/qemu-kvm | grep modprobe if modprobe $module . if modprobe $module then log_end_msg 0 else log_end_msg 1 exit 1 fi ;; Where shall I add -b option? Thanks modprobe -b says respect the blacklists. See: * http://manpages.ubuntu.com/manpages/lucid/en/man8/modprobe.8.html -b --use-blacklist This option causes modprobe to apply the blacklist commands in the configuration files (if any) to module names as well. It is usually used by udev(7). So you would change the lines that say if modprobe ... to if modprobe -b ... :-Dustin -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Question on stopping KVM start at boot
Hi folks. Host - ubuntu 9.10 64bit Virtualizer - KVM I need to stop KVM starting at boot. I added following 2 lines at the bottom of /etc/modprobe.d/blacklist.conf blacklist kvm blacklist kvm-amd Reboot PC It doesn't work. $ lsmod | grep kvm kvm_amd41556 0 kvm 190648 1 kvm_amd Please what further command I have to run in order to activate the new blacklist.conf ? TIA B.R. Stephen L -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Question on stopping KVM start at boot
On Wed, Mar 10, 2010 at 04:07:09PM +0800, sati...@pacific.net.hk wrote: Hi folks. Host - ubuntu 9.10 64bit Virtualizer - KVM I need to stop KVM starting at boot. I added following 2 lines at the bottom of /etc/modprobe.d/blacklist.conf blacklist kvm blacklist kvm-amd Reboot PC It doesn't work. $ lsmod | grep kvm kvm_amd41556 0 kvm 190648 1 kvm_amd Please what further command I have to run in order to activate the new blacklist.conf ? /etc/init.d/qemu-kvm loads the module. So you probably must not run it on start up or teach it how to read the blacklist. Perhaps this is more appropriate to ask on an ubuntu-specific mailing list, since this is an ubuntu problem. Thanks, Rodrigo -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Question on stopping KVM start at boot
Hi folks. Host - ubuntu 9.10 64bit Virtualizer - KVM I need to stop KVM starting at boot. I added following 2 lines at the bottom of /etc/modprobe.d/blacklist.conf blacklist kvm blacklist kvm-amd Reboot PC It doesn't work. $ lsmod | grep kvm kvm_amd41556 0 kvm 190648 1 kvm_amd Please what further command I have to run in order to activate the new blacklist.conf ? For Ubutnu, you can just use update-rc.d sudo update-rc.d kvm disable to disable kvm and sudo update-rc.d kvm enable to enable it again. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Question on stopping KVM start at boot
On Wed, Mar 10, 2010 at 3:08 AM, Bitman Zhou bitman.z...@sinobot.com.cn wrote: I need to stop KVM starting at boot. I added following 2 lines at the bottom of /etc/modprobe.d/blacklist.conf blacklist kvm blacklist kvm-amd Reboot PC It doesn't work. $ lsmod | grep kvm kvm_amd 41556 0 kvm 190648 1 kvm_amd Please what further command I have to run in order to activate the new blacklist.conf ? For Ubutnu, you can just use update-rc.d sudo update-rc.d kvm disable to disable kvm and sudo update-rc.d kvm enable to enable it again. Hi there, Unfortunately, the /etc/init.d/kvm and /etc/init.d/qemu-kvm init scripts in previous Ubuntu releases (9.10 and earlier) didn't respect the module blacklists. I have corrected this in Ubuntu 10.04 by using modprobe -b. Thus for Ubuntu 10.04 forward, you should be able to use the blacklist appropriately. For other release, you can disable the init script entirely as the other responder wrote. Or you can edit the /etc/init.d/kvm or /etc/init.d/qemu-kvm init script and add the -b option to the modprobe calls in there. -- :-Dustin -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Question on stopping KVM start at boot
Hi Dustin, Thanks for your advice. - snip - Or you can edit the /etc/init.d/kvm or /etc/init.d/qemu-kvm init script and add the -b option to the modprobe calls in there. $ cat /etc/init.d/kvm | grep modprobe No printout $ cat /etc/init.d/qemu-kvm | grep modprobe if modprobe $module . if modprobe $module then log_end_msg 0 else log_end_msg 1 exit 1 fi ;; Where shall I add -b option? Thanks B.R. Stephen -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Question on stopping KVM start at boot
Quoting Bitman Zhou bitman.z...@sinobot.com.cn: - snip - Please what further command I have to run in order to activate the new blacklist.conf ? For Ubutnu, you can just use update-rc.d sudo update-rc.d kvm disable to disable kvm and sudo update-rc.d kvm enable to enable it again. Tks for your advice. B.R. Stephen L -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Question on stopping KVM start at boot
On Thu, Mar 11, 2010 at 11:59:45AM +0800, sati...@pacific.net.hk wrote: Hi Dustin, Or you can edit the /etc/init.d/kvm or /etc/init.d/qemu-kvm init script and add the -b option to the modprobe calls in there. $ cat /etc/init.d/qemu-kvm | grep modprobe if modprobe $module Where shall I add -b option? Thanks If I'm not wrong, there. That if is loading the module and sees the return code to give an error if it fails to load. Thanks, Rodrigo -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html