public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* How to disable KVM start at boot
@ 2010-02-24  4:50 satimis
  2010-02-24  7:30 ` Hao, Xudong
  0 siblings, 1 reply; 13+ messages in thread
From: satimis @ 2010-02-24  4:50 UTC (permalink / raw)
  To: kvm

Hi folks,

Host - Fedora 12 64bit

I need to start KVM manually after booting Fedora.  Please advise how  
to disable KVM start at booting.  TIA

B.R.
Stephen L


^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: How to disable KVM start at boot
  2010-02-24  4:50 How to disable KVM start at boot satimis
@ 2010-02-24  7:30 ` Hao, Xudong
  2010-02-24 11:20   ` satimis
  0 siblings, 1 reply; 13+ messages in thread
From: Hao, Xudong @ 2010-02-24  7:30 UTC (permalink / raw)
  To: satimis@pacific.net.hk; +Cc: kvm@vger.kernel.org

chkconfig --level 35 kvm off

satimis@pacific.net.hk wrote:
> Hi folks,
> 
> Host - Fedora 12 64bit
> 
> I need to start KVM manually after booting Fedora.  Please advise how
> to disable KVM start at booting.  TIA
> 
> B.R.
> Stephen L

Thanks,
Xudong

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: How to disable KVM start at boot
  2010-02-24  7:30 ` Hao, Xudong
@ 2010-02-24 11:20   ` satimis
  2010-02-25  3:52     ` Hao, Xudong
  0 siblings, 1 reply; 13+ messages in thread
From: satimis @ 2010-02-24 11:20 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Quoting "Hao, Xudong" <xudong.hao@intel.com>:

> chkconfig --level 35 kvm off


Hi Hao,


Thanks for your advice.


Please help me to understand:-

1)
chkconfig - is a small package to update and query runlevel info for  
system services

--level 35 specifies runlevels 3 and 5

That means on next booting KVM won't start automatically.


To start KVM after boot manually run;

# /etc/init.d/kvm start
(I'm now on Debian box.  Fedora 12 may differ.)


2)
To restore KVM to its original setup then run;

# chkconfig --level 35 kvm on


On next booting KVM will start automatically.


If I'm wrong please help.  TIA


B.R.
Stpehen L


^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: How to disable KVM start at boot
  2010-02-24 11:20   ` satimis
@ 2010-02-25  3:52     ` Hao, Xudong
  2010-02-25  4:25       ` satimis
  0 siblings, 1 reply; 13+ messages in thread
From: Hao, Xudong @ 2010-02-25  3:52 UTC (permalink / raw)
  To: satimis@pacific.net.hk; +Cc: kvm@vger.kernel.org

That's right.
I run it on RHEL system, F12 should be same, you can have a try.

satimis@pacific.net.hk wrote:
> Quoting "Hao, Xudong" <xudong.hao@intel.com>:
> 
>> chkconfig --level 35 kvm off
> 
> 
> Hi Hao,
> 
> 
> Thanks for your advice.
> 
> 
> Please help me to understand:-
> 
> 1)
> chkconfig - is a small package to update and query runlevel info for
> system services
> 
> --level 35 specifies runlevels 3 and 5
> 
> That means on next booting KVM won't start automatically.
> 
> 
> To start KVM after boot manually run;
> 
> # /etc/init.d/kvm start
> (I'm now on Debian box.  Fedora 12 may differ.)
> 
> 
> 2)
> To restore KVM to its original setup then run;
> 
> # chkconfig --level 35 kvm on
> 
> 
> On next booting KVM will start automatically.
> 
> 
> If I'm wrong please help.  TIA
> 
> 
> B.R.
> Stpehen L



Thanks,
Xudong

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: How to disable KVM start at boot
  2010-02-25  3:52     ` Hao, Xudong
@ 2010-02-25  4:25       ` satimis
  2010-02-25  5:18         ` Hao, Xudong
  2010-02-25  5:33         ` How to disable KVM start at boot Yolkfull Chow
  0 siblings, 2 replies; 13+ messages in thread
From: satimis @ 2010-02-25  4:25 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Quoting "Hao, Xudong" <xudong.hao@intel.com>:

> That's right.
> I run it on RHEL system, F12 should be same, you can have a try.

Hi Hao,

$ lsmod | grep kvm
kvm_amd                38452  0
kvm                   163952  1 kvm_amd


# chkconfig --level 35 kvm off
error reading information on service kvm: No such file or directory


I tried to disable qemu on Gnome;
System -> Administration -> Services -> highlight qemu -> Disable

(kvm is NOT there)


Next boot

$ lsmod | grep kvm
kvm_amd                38452  0
kvm                   163952  1 kvm_amd

still there


B.R.
Stephen L




^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: How to disable KVM start at boot
  2010-02-25  4:25       ` satimis
@ 2010-02-25  5:18         ` Hao, Xudong
  2010-02-25  9:27           ` satimis
  2010-02-25  5:33         ` How to disable KVM start at boot Yolkfull Chow
  1 sibling, 1 reply; 13+ messages in thread
From: Hao, Xudong @ 2010-02-25  5:18 UTC (permalink / raw)
  To: satimis@pacific.net.hk; +Cc: kvm@vger.kernel.org

satimis@pacific.net.hk wrote:
> Quoting "Hao, Xudong" <xudong.hao@intel.com>:
> # chkconfig --level 35 kvm off
> error reading information on service kvm: No such file or directory
> 

I'm not try F12 maybe some pakeage missed. just googled then find answer.

so if you get this error also and you have a redhat centos or fedora core linux distribution just send this command to install dovecot

yum install dovecot

http://www.wallpaperama.com/forums/error-reading-information-on-service-dovecot-no-such-file-or-directory-t6073.html


Thanks,
Xudong

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: How to disable KVM start at boot
  2010-02-25  4:25       ` satimis
  2010-02-25  5:18         ` Hao, Xudong
@ 2010-02-25  5:33         ` Yolkfull Chow
  2010-02-25  9:23           ` satimis
  1 sibling, 1 reply; 13+ messages in thread
From: Yolkfull Chow @ 2010-02-25  5:33 UTC (permalink / raw)
  To: satimis; +Cc: kvm@vger.kernel.org

On Thu, Feb 25, 2010 at 12:25:07PM +0800, satimis@pacific.net.hk wrote:
> Quoting "Hao, Xudong" <xudong.hao@intel.com>:
> 
> >That's right.
> >I run it on RHEL system, F12 should be same, you can have a try.
> 
> Hi Hao,
> 
> $ lsmod | grep kvm
> kvm_amd                38452  0
> kvm                   163952  1 kvm_amd
> 
> 
> # chkconfig --level 35 kvm off
> error reading information on service kvm: No such file or directory
> 
> 
> I tried to disable qemu on Gnome;
> System -> Administration -> Services -> highlight qemu -> Disable
> 
> (kvm is NOT there)
> 
> 
> Next boot
> 
> $ lsmod | grep kvm
> kvm_amd                38452  0
> kvm                   163952  1 kvm_amd
> 
> still there

If you want kvm related kernel modules not to be loaded at next boot,
you can add then into blacklist: /etc/modprobe.d/blacklist.con

> 
> 
> B.R.
> Stephen L
> 
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: How to disable KVM start at boot
  2010-02-25  5:33         ` How to disable KVM start at boot Yolkfull Chow
@ 2010-02-25  9:23           ` satimis
  2010-02-25  9:46             ` Yolkfull Chow
  0 siblings, 1 reply; 13+ messages in thread
From: satimis @ 2010-02-25  9:23 UTC (permalink / raw)
  To: Yolkfull Chow; +Cc: kvm@vger.kernel.org

Quoting Yolkfull Chow <yzhou@redhat.com>:


>> $ lsmod | grep kvm
>> kvm_amd                38452  0
>> kvm                   163952  1 kvm_amd
>>
>>
>> # chkconfig --level 35 kvm off
>> error reading information on service kvm: No such file or directory
>>
>>
>> I tried to disable qemu on Gnome;
>> System -> Administration -> Services -> highlight qemu -> Disable
>>
>> (kvm is NOT there)
>>
>>
>> Next boot
>>
>> $ lsmod | grep kvm
>> kvm_amd                38452  0
>> kvm                   163952  1 kvm_amd
>>
>> still there
>

> If you want kvm related kernel modules not to be loaded at next boot,
> you can add then into blacklist: /etc/modprobe.d/blacklist.con


Hi Yolkfull,

Thanks for your advice.  Could you please explain in more detail.

$ cat /etc/modprobe.d/blacklist.conf
# watchdog drivers
blacklist i8xx_tco

# framebuffer drivers
blacklist aty128fb
blacklist atyfb
blacklist radeonfb
blacklist i810fb
blacklist cirrusfb
blacklist intelfb
blacklist kyrofb
blacklist i2c-matroxfb
blacklist hgafb
blacklist nvidiafb
blacklist rivafb
blacklist savagefb
blacklist sstfb
blacklist neofb
blacklist tridentfb
blacklist tdfxfb
blacklist virgefb
blacklist vga16fb

# ISDN - see bugs 154799, 159068
blacklist hisax
blacklist hisax_fcpcipnp

# sound drivers
blacklist snd-pcsp


What shall I add on this config file?

How can I start KVM after booting if needed.  TIA


B.R.
Stephen L


^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: How to disable KVM start at boot
  2010-02-25  5:18         ` Hao, Xudong
@ 2010-02-25  9:27           ` satimis
  2010-02-25  9:54             ` Hao, Xudong
  0 siblings, 1 reply; 13+ messages in thread
From: satimis @ 2010-02-25  9:27 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Quoting "Hao, Xudong" <xudong.hao@intel.com>:

> satimis@pacific.net.hk wrote:
>> Quoting "Hao, Xudong" <xudong.hao@intel.com>:
>> # chkconfig --level 35 kvm off
>> error reading information on service kvm: No such file or directory
>>
>
> I'm not try F12 maybe some pakeage missed. just googled then find answer.
>
> so if you get this error also and you have a redhat centos or fedora  
>  core linux distribution just send this command to install dovecot
>
> yum install dovecot
>
> http://www.wallpaperama.com/forums/error-reading-information-on-service-dovecot-no-such-file-or-directory-t6073.html


Hi Hao,


Sorry I don't follow.  Does dovecot has connection with KVM?


B.R.
Stephen


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: How to disable KVM start at boot
  2010-02-25  9:23           ` satimis
@ 2010-02-25  9:46             ` Yolkfull Chow
  2010-02-25 12:50               ` How to disable KVM start at boot (SOLVED) satimis
  0 siblings, 1 reply; 13+ messages in thread
From: Yolkfull Chow @ 2010-02-25  9:46 UTC (permalink / raw)
  To: satimis; +Cc: kvm@vger.kernel.org

On Thu, Feb 25, 2010 at 05:23:15PM +0800, satimis@pacific.net.hk wrote:
> Quoting Yolkfull Chow <yzhou@redhat.com>:
> 
> 
> >>$ lsmod | grep kvm
> >>kvm_amd                38452  0
> >>kvm                   163952  1 kvm_amd
> >>
> >>
> >># chkconfig --level 35 kvm off
> >>error reading information on service kvm: No such file or directory
> >>
> >>
> >>I tried to disable qemu on Gnome;
> >>System -> Administration -> Services -> highlight qemu -> Disable
> >>
> >>(kvm is NOT there)
> >>
> >>
> >>Next boot
> >>
> >>$ lsmod | grep kvm
> >>kvm_amd                38452  0
> >>kvm                   163952  1 kvm_amd
> >>
> >>still there
> >
> 
> >If you want kvm related kernel modules not to be loaded at next boot,
> >you can add then into blacklist: /etc/modprobe.d/blacklist.con
> 
> 
> Hi Yolkfull,
> 
> Thanks for your advice.  Could you please explain in more detail.
> 
> $ cat /etc/modprobe.d/blacklist.conf
> # watchdog drivers
> blacklist i8xx_tco
> 
> # framebuffer drivers
> blacklist aty128fb
> blacklist atyfb
> blacklist radeonfb
> blacklist i810fb
> blacklist cirrusfb
> blacklist intelfb
> blacklist kyrofb
> blacklist i2c-matroxfb
> blacklist hgafb
> blacklist nvidiafb
> blacklist rivafb
> blacklist savagefb
> blacklist sstfb
> blacklist neofb
> blacklist tridentfb
> blacklist tdfxfb
> blacklist virgefb
> blacklist vga16fb
> 
> # ISDN - see bugs 154799, 159068
> blacklist hisax
> blacklist hisax_fcpcipnp
> 
> # sound drivers
> blacklist snd-pcsp
> 
> 
> What shall I add on this config file?
> 
> How can I start KVM after booting if needed.  TIA

Hi,

You can comment all content of this file: /etc/sysconfig/modules/kvm.modules
and #modprobe kvm && modprobe kvm_intel if need.

Cheers,

> 
> 
> B.R.
> Stephen L
> 
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: How to disable KVM start at boot
  2010-02-25  9:27           ` satimis
@ 2010-02-25  9:54             ` Hao, Xudong
  2010-02-25 12:55               ` How to disable KVM start at boot (SOLVED) satimis
  0 siblings, 1 reply; 13+ messages in thread
From: Hao, Xudong @ 2010-02-25  9:54 UTC (permalink / raw)
  To: satimis@pacific.net.hk; +Cc: kvm@vger.kernel.org

satimis@pacific.net.hk wrote:
> Quoting "Hao, Xudong" <xudong.hao@intel.com>:
> 
>> satimis@pacific.net.hk wrote:
>>> Quoting "Hao, Xudong" <xudong.hao@intel.com>:
>>> # chkconfig --level 35 kvm off
>>> error reading information on service kvm: No such file or directory
>>> 
>> 
>> I'm not try F12 maybe some pakeage missed. just googled then find
>> answer. 
>> 
>> so if you get this error also and you have a redhat centos or fedora
>>  core linux distribution just send this command to install dovecot
>> 
>> yum install dovecot
>> 
>> http://www.wallpaperama.com/forums/error-reading-information-on-service-dovecot-no-such-file-or-directory-t6073.html
> 
> 
> Hi Hao,
> 
> 
> Sorry I don't follow.  Does dovecot has connection with KVM?
> 
Googled result, but not sure it's useful for you.

But Yolkfull's suggestion is good for you to not load kvm module when boot system.

Add the two line in /etc/modprobe.d/blacklist.conf according to your system, then reboot.

blacklist kvm
blacklist kvm_amd

Thanks,
Xudong

> 
> B.R.
> Stephen


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: How to disable KVM start at boot (SOLVED)
  2010-02-25  9:46             ` Yolkfull Chow
@ 2010-02-25 12:50               ` satimis
  0 siblings, 0 replies; 13+ messages in thread
From: satimis @ 2010-02-25 12:50 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Quoting Yolkfull Chow <yzhou@redhat.com>:

- snip -
>
> Hi,
>
> You can comment all content of this file: /etc/sysconfig/modules/kvm.modules
> and #modprobe kvm && modprobe kvm_intel if need.


Hi Yolkfull,

$ cat /etc/sysconfig/modules/kvm.modules
#!/bin/sh

if [ $(grep -c vmx /proc/cpuinfo) -ne 0 ]; then
     modprobe -b kvm-intel >/dev/null 2>&1
fi

if [ $(grep -c svm /proc/cpuinfo) -ne 0 ]; then
     modprobe -b kvm-amd >/dev/null 2>&1
fi
- end -

Comment out all lines as advised.  Reboot PC


# lsmod | grep kvm
No printout


But still I can start and run 64bit Fedora12 VM and 64 bit Debian504  
VM.  However the speed is very slow.  64bit Win7 and 64bit Windows  
Server 2008 can't start.


After running;

# modprobe kvm && modprobe kvm-amd

everything becomes normal.  Thanks

B.R.
Stephen L




^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: How to disable KVM start at boot (SOLVED)
  2010-02-25  9:54             ` Hao, Xudong
@ 2010-02-25 12:55               ` satimis
  0 siblings, 0 replies; 13+ messages in thread
From: satimis @ 2010-02-25 12:55 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Quoting "Hao, Xudong" <xudong.hao@intel.com>:

- snip -

> But Yolkfull's suggestion is good for you to not load kvm module   
> when boot system.
>
> Add the two line in /etc/modprobe.d/blacklist.conf according to your  
>  system, then reboot.
>
> blacklist kvm
> blacklist kvm_amd

Hi Xudong


Add;
blacklist kvm
blacklist kvm-amd

to the end of /etc/modprobe.d/blacklist.conf

Reboot PC

# lsmod | grep kvm
No printout

But still I can start and run 64bit Fedora12 VM and 64 bit Debian504  
VM.  However the speed is very slow.  64bit Win7 and 64bit Windows  
Server 2008 can't start.

After running;

# modprobe kvm && modprobe kvm-amd

everything becomes normal.  Thanks


B.R.
Stephen L


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-02-25 12:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24  4:50 How to disable KVM start at boot satimis
2010-02-24  7:30 ` Hao, Xudong
2010-02-24 11:20   ` satimis
2010-02-25  3:52     ` Hao, Xudong
2010-02-25  4:25       ` satimis
2010-02-25  5:18         ` Hao, Xudong
2010-02-25  9:27           ` satimis
2010-02-25  9:54             ` Hao, Xudong
2010-02-25 12:55               ` How to disable KVM start at boot (SOLVED) satimis
2010-02-25  5:33         ` How to disable KVM start at boot Yolkfull Chow
2010-02-25  9:23           ` satimis
2010-02-25  9:46             ` Yolkfull Chow
2010-02-25 12:50               ` How to disable KVM start at boot (SOLVED) satimis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox