Re: Question on stopping KVM start at boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 10, 2010 at 3:08 AM, Bitman Zhou <bitman.zhou@xxxxxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux