From owner-freebsd-virtualization@FreeBSD.ORG Sat Sep 27 22:47:00 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6660AAEA for ; Sat, 27 Sep 2014 22:47:00 +0000 (UTC) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0183CC62 for ; Sat, 27 Sep 2014 22:46:56 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id hi2so2734788wib.0 for ; Sat, 27 Sep 2014 15:46:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=tnEv+W34bw/OeqeJtIEJE3A1BotLugscO7MzAUpBOww=; b=FjTScV9BhqYyNGB5G7sw2E6ro+M60v1SiBzPp8kxJDw+5trQdWPAh5pycXEfDBFxtq qrJRSXVNlCwujPcHJIMFIzjGY3MRA2E1L/OFn4HhblbPSjxGgt6Lv/w/4at5iIwfg3Pw Az0pZgso4Y4C49UTxK5aB2MmPE4fKbSoK1auPr9V6lSfVGr2BNnVp7ezO0o7uA/wBL5K qCZw9XhH2mHft6+CNhuSpC3VFrJkKquktFr7+HFyNxxaLSgObAAEol8IJUvHu890GUi4 PywPa+oN78rl9D0NqIpuud66pssC6hf6pT/nH9DZY44NhIqmIgwvCRu9V6M3YSKDGy28 0RRA== MIME-Version: 1.0 X-Received: by 10.194.246.2 with SMTP id xs2mr32250484wjc.33.1411858013970; Sat, 27 Sep 2014 15:46:53 -0700 (PDT) Received: by 10.27.12.213 with HTTP; Sat, 27 Sep 2014 15:46:53 -0700 (PDT) In-Reply-To: <1411801935.155965286@f118.i.mail.ru> References: <1411759544.336082030@f359.i.mail.ru> <1411801935.155965286@f118.i.mail.ru> Date: Sat, 27 Sep 2014 15:46:53 -0700 Message-ID: Subject: Re: Re[2]: ACPI Exception on shutdown From: Neel Natu To: Denis Menshikov , "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 22:47:00 -0000 [Adding virtualization@freebsd.org] On Sat, Sep 27, 2014 at 12:12 AM, Denis Menshikov wrote: > Good day, > > Here is more information about host and guest system: > > host: > > FreeBSD vmserver 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 > 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC > amd64 > Ok, that explains it. ACPI poweroff support in bhyve is not present in 10.0 RELEASE. It will be present in the upcoming 10.1 RELEASE though. If you don't want to wait until 10.1 is released you can upgrade your host to 10-stable or -current. > guest: > > creating... > > sudo bhyveload -m 256 -d FreeBSD-10.0-RELEASE-amd64-disc1.iso testvm > sudo bhyve -c 2 -s 0,amd_hostbridge -s 1,lpc -s 1:1,ahci-hd,test_hdd -s > 2,ahci-cd,FreeBSD-10.0-RELEASE-amd64-disc1.iso -l com1,/dev/nmdm1A -a -A = -H > -P -m 256 -I testvm > sudo bhyvectl --vm=3Dtestvm --destroy > sudo bhyveload -m 256 -d test_hdd testvm > sudo bhyve -c 2 -s 0,amd_hostbridge -s 1,lpc -s 1:1,ahci-hd,test_hdd -s -= l > com1,/dev/nmdm1A -a -A -H -P -m 256 -I testvm > > uname -a > > FreeBSD test 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 > 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC > amd64 > > shutdown like: > > shutdown -p now > > and then: > > root@test:~ # shutdown -p now > Shutdown NOW! > shutdown: [pid 615] > root@test:~ # > *** FINAL System shutdown message from root@test *** > > System going down IMMEDIATELY > > > > System shutdown time has arrived > Sep 27 10:57:39 test shutdown: power-down by root: > Stopping cron. > Waiting for PIDS: 559. > Stopping sshd. > Waiting for PIDS: 524. > Stopping devd. > Waiting for PIDS: 301. > Writing entropy file:. > . > Terminated > Sep 27 10:57:39 test syslogd: exiting on signal 15 > Waiting (max 60 seconds) for system process `vnlru' to stop...done > Waiting (max 60 seconds) for system process `bufdaemon' to stop...done > Waiting (max 60 seconds) for system process `syncer' to stop... > Syncing disks, vnodes remaining...4 3 1 0 0 done > All buffers synced. > Uptime: 3m11s > ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S5_] > (20130823/hwxface-637) > acpi0: AcpiEnterSleepStatePrep failed - AE_NOT_FOUND > > The operating system has halted. > Please press any key to reboot. > > Rebooting... > cpu_reset: Stopping other CPUs > > Best regards, Denis > P.S. Why the message "cpu_reset: Stopping other CPUs" is displayed on my > terminal, it correctly? > Yes, that is normal. best Neel > Fri, 26 Sep 2014 17:36:18 -0700 =D0=BE=D1=82 Neel Natu : > > Hi Denis, > > On Fri, Sep 26, 2014 at 12:25 PM, Denis Menshikov wrote: >> Good day, >> >> faced with this problem: when I shutdown the virtual machine (FreeBSD >> amd64 release-guest) power-off does not occur, a message is displayed: >> >> ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S5_] >> (20130823/hwxface-637) >> acpi0: AcpiEnterSleepStatePrep failed - AE_NOT_FOUND >> >> The virtual machine is running with the following command: >> sudo bhyve -c 2 -s 0,amd_hostbridge -s 1,lpc -s 1:1,ahci-hd,test_hdd -l >> com1,stdio -a -A -H -P -m 256 -I testvm >> >> What am I doing wrong? >> > > Can you give a few more details about your setup so it can be reproduced? > > - Output of 'uname -a' on the host (or the release/svn revision number) > - Output of 'uname -a' on the guest (or the release/svn revision number) > - How are you shutting down the guest? Are you issuing a "poweroff" > command from the guest or are you sending a SIGTERM to the bhyve > process? > > best > Neel > >> -- >> =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC Denis Mens= hikov >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to >> "freebsd-virtualization-unsubscribe@freebsd.org" > > > > -- > =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC Denis Mensh= ikov