ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Q: Как выключить VM под QEMU?
Date: Fri, 18 Dec 2009 22:17:59 +0300
Message-ID: <4B2BD567.5000604@solin.spb.ru> (raw)
In-Reply-To: <hg54qn$bd1$1@ger.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1486 bytes --]

14.12.2009 13:42, Anton Farygin пишет:
> 11.12.2009 09:52, Aleksey Avdeev пишет:
>> Приветствую.
>>
>>    Как правильно выключить виртуалку запущенную под QEMU?
>>
>>    Что-то не получается у меня это сделать, с помощью команды
>> system_powerdown в QEMU`шном мониторе: acpid при этом ничего не видит, а
>> apmd (свежесобранный) ругается на отсутствующий в ядре APM...
> 
> Если запускается под libvirtd, то нужно в /etc/libvirtd/qemu/<домен>.xml
> дописать:
> 
>   <features>
>      <acpi/>
>      <apic/>
>   </features>
> 
> После этого модуль button будет загружаться нормально и acpid начнёт
> отслеживать выключение. Команда на выключение: virsh shutdown <домен>
> 
> Как видно отсюда, никаких специальных параметров для kvm не передаётся:
> /usr/bin/kvm -S -M pc-0.11 -enable-kvm -m 2048 -smp 4 -name rider -uuid
> 069a27d2-7c58-a063-cf33-55941e28b77f -monitor
> unix:/var/lib/libvirt/qemu/rider.monitor,server,nowait -boot c -drive
> file=/var/lib/mkve/machines/rider/rider.img,if=ide,index=0,boot=on -net
> nic,macaddr=52:54:00:31:87:8e,vlan=0,name=nic.0 -net
> tap,fd=18,vlan=0,name=tap.0 -serial none -parallel none -usb -vnc
> 10.2.0.20:0 -vga cirrus

  OK, тогда буду считать что моя проблема обусловлена старыми ядром/qemu.

  На данный момент выкрутился через настройку выключения по ctrl-alt-del
("ca:012345:ctrlaltdel:/sbin/poweroff" в /etc/inittab) и посылку
"sendkey ctrl-alt-delete" в монитор.

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 554 bytes --]

  reply	other threads:[~2009-12-18 19:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-11  6:52 Aleksey Avdeev
2009-12-14 10:42 ` Anton Farygin
2009-12-18 19:17   ` Aleksey Avdeev [this message]
2009-12-18 20:58     ` Anton Farygin
2009-12-18 22:40       ` Aleksey Avdeev
2009-12-19  7:06         ` Anton Farygin
2009-12-19 11:18           ` Aleksey Avdeev
2009-12-19 14:25             ` Anton Farygin
2009-12-19 14:23               ` Aleksey Avdeev
2009-12-19 15:39                 ` Anton Farygin
2009-12-19 18:06                   ` Aleksey Avdeev
2009-12-25  5:31                     ` Aleksey Avdeev
2009-12-25  5:48                       ` Anton Farygin
2009-12-25  5:47                         ` Aleksey Avdeev
2009-12-25  7:06                           ` Anton Farygin
2009-12-25  8:17                             ` Aleksey Avdeev
2009-12-25  8:41                               ` Anton Farygin
2009-12-25  8:37                                 ` Aleksey Avdeev
2009-12-25  9:01                                   ` Anton Farygin
2009-12-25  9:06                                     ` Aleksey Avdeev
2009-12-25  9:35                                       ` Anton Farygin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B2BD567.5000604@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git