* Question on stopping KVM start at boot
@ 2010-03-10 8:07 satimis
2010-03-10 9:08 ` Bitman Zhou
2010-03-10 13:05 ` Rodrigo Campos
0 siblings, 2 replies; 9+ messages in thread
From: satimis @ 2010-03-10 8:07 UTC (permalink / raw)
To: kvm
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_amd 41556 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Question on stopping KVM start at boot
2010-03-10 8:07 Question on stopping KVM start at boot satimis
@ 2010-03-10 9:08 ` Bitman Zhou
2010-03-10 21:16 ` Dustin Kirkland
2010-03-11 4:04 ` satimis
2010-03-10 13:05 ` Rodrigo Campos
1 sibling, 2 replies; 9+ messages in thread
From: Bitman Zhou @ 2010-03-10 9:08 UTC (permalink / raw)
To: satimis; +Cc: kvm
> 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_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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Question on stopping KVM start at boot
2010-03-10 8:07 Question on stopping KVM start at boot satimis
2010-03-10 9:08 ` Bitman Zhou
@ 2010-03-10 13:05 ` Rodrigo Campos
1 sibling, 0 replies; 9+ messages in thread
From: Rodrigo Campos @ 2010-03-10 13:05 UTC (permalink / raw)
To: satimis; +Cc: kvm
On Wed, Mar 10, 2010 at 04:07:09PM +0800, satimis@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_amd 41556 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Question on stopping KVM start at boot
2010-03-10 9:08 ` Bitman Zhou
@ 2010-03-10 21:16 ` Dustin Kirkland
2010-03-11 3:59 ` satimis
2010-03-11 4:04 ` satimis
1 sibling, 1 reply; 9+ messages in thread
From: Dustin Kirkland @ 2010-03-10 21:16 UTC (permalink / raw)
To: bitman.zhou; +Cc: satimis, kvm
On Wed, Mar 10, 2010 at 3:08 AM, Bitman Zhou <bitman.zhou@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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Question on stopping KVM start at boot
2010-03-10 21:16 ` Dustin Kirkland
@ 2010-03-11 3:59 ` satimis
2010-03-11 4:07 ` Rodrigo Campos
2010-03-12 17:37 ` Dustin Kirkland
0 siblings, 2 replies; 9+ messages in thread
From: satimis @ 2010-03-11 3:59 UTC (permalink / raw)
To: kvm
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Question on stopping KVM start at boot
2010-03-10 9:08 ` Bitman Zhou
2010-03-10 21:16 ` Dustin Kirkland
@ 2010-03-11 4:04 ` satimis
1 sibling, 0 replies; 9+ messages in thread
From: satimis @ 2010-03-11 4:04 UTC (permalink / raw)
To: kvm
Quoting Bitman Zhou <bitman.zhou@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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Question on stopping KVM start at boot
2010-03-11 3:59 ` satimis
@ 2010-03-11 4:07 ` Rodrigo Campos
2010-03-12 17:37 ` Dustin Kirkland
1 sibling, 0 replies; 9+ messages in thread
From: Rodrigo Campos @ 2010-03-11 4:07 UTC (permalink / raw)
To: satimis; +Cc: kvm
On Thu, Mar 11, 2010 at 11:59:45AM +0800, satimis@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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Question on stopping KVM start at boot
2010-03-11 3:59 ` satimis
2010-03-11 4:07 ` Rodrigo Campos
@ 2010-03-12 17:37 ` Dustin Kirkland
2010-03-13 8:14 ` satimis
1 sibling, 1 reply; 9+ messages in thread
From: Dustin Kirkland @ 2010-03-12 17:37 UTC (permalink / raw)
To: satimis; +Cc: kvm
On Wed, Mar 10, 2010 at 9:59 PM, <satimis@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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Question on stopping KVM start at boot
2010-03-12 17:37 ` Dustin Kirkland
@ 2010-03-13 8:14 ` satimis
0 siblings, 0 replies; 9+ messages in thread
From: satimis @ 2010-03-13 8:14 UTC (permalink / raw)
To: kvm
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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-03-13 8:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10 8:07 Question on stopping KVM start at boot satimis
2010-03-10 9:08 ` Bitman Zhou
2010-03-10 21:16 ` Dustin Kirkland
2010-03-11 3:59 ` satimis
2010-03-11 4:07 ` Rodrigo Campos
2010-03-12 17:37 ` Dustin Kirkland
2010-03-13 8:14 ` satimis
2010-03-11 4:04 ` satimis
2010-03-10 13:05 ` Rodrigo Campos
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.