From owner-freebsd-xen@FreeBSD.ORG Thu Feb 2 19:31:37 2012 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50914106564A for ; Thu, 2 Feb 2012 19:31:37 +0000 (UTC) (envelope-from krichy@tvnetwork.hu) Received: from smtp-b.tvnetwork.hu (smtp-b.tvnetwork.hu [109.61.0.52]) by mx1.freebsd.org (Postfix) with SMTP id B4D1F8FC1A for ; Thu, 2 Feb 2012 19:31:36 +0000 (UTC) Received: (qmail 11660 invoked by uid 1001); 2 Feb 2012 20:31:34 +0100 Received: from 109.61.101.194 by smtp-b.tvnetwork.hu (envelope-from , uid 64011) with qmail-scanner-1.25st (clamdscan: 0.88.1/1396. spamassassin: 3.0.3. perlscan: 1.25st. Clear:RC:1(109.61.101.194):SA:0(-1.0/5.0):. Processed in 4.232473 secs); 02 Feb 2012 19:31:34 -0000 X-Spam-Status: No, hits=-1.0 required=5.0 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp-b.tvnetwork.hu X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_20 autolearn=ham version=3.3.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -0.0 BAYES_20 BODY: Bayes spam probability is 5 to 20% * [score: 0.1597] X-Envelope-From: krichy@tvnetwork.hu Received: from unknown (HELO krichy.tvnetwork.hu) (109.61.101.194) by smtp-b.tvnetwork.hu with SMTP; 2 Feb 2012 20:31:30 +0100 Received: by krichy.tvnetwork.hu (Postfix, from userid 1000) id 35E19892; Thu, 2 Feb 2012 20:31:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by krichy.tvnetwork.hu (Postfix) with ESMTP id 316291E26; Thu, 2 Feb 2012 20:31:30 +0100 (CET) Date: Thu, 2 Feb 2012 20:31:30 +0100 (CET) From: Richard Kojedzinszky To: Colin Percival In-Reply-To: Message-ID: References: <4F1FD67B.3080305@freebsd.org> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-xen@FreeBSD.org Subject: Re: amd64 xen hvm shutdown X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 19:31:37 -0000 Dear users, I am trying to compare the 8.2 i386 PV mode and 9.0 amd64 hvm mode, regarding $ xm shutdown from outside. While 8.2 PV shuts down well, 9.0 hvm does not. Is it an issue of the xen hypervisor, or of freebsd? What experience do others have? Thanks in advance, Kojedzinszky Richard Euronet Magyarorszag Informatikai Zrt. On Thu, 26 Jan 2012, Richard Kojedzinszky wrote: > Date: Thu, 26 Jan 2012 08:57:13 +0100 (CET) > From: Richard Kojedzinszky > To: Colin Percival > Cc: freebsd-xen@FreeBSD.org > Subject: Re: amd64 xen hvm shutdown > > Dear Colin, > > I am not familiar with the method, but what happens exactly when I issue xm > shutdown on the host ? > How does the inner guest handle it? Does it simply send a signal to init, or > does to host emulate the press of the power button? > > Thanks in advance, > > Kojedzinszky Richard > Euronet Magyarorszag Informatikai Zrt. > > On Wed, 25 Jan 2012, Richard Kojedzinszky wrote: > >> Date: Wed, 25 Jan 2012 11:40:47 +0100 (CET) >> From: Richard Kojedzinszky >> To: Colin Percival >> Cc: freebsd-xen@FreeBSD.org >> Subject: Re: amd64 xen hvm shutdown >> >> Dear Colin, >> >> My config for this domain is here: >> >> kernel = "/usr/lib/xen-4.0/boot/hvmloader" >> builder = "hvm" >> >> name = 'db.real-charts.com' >> memory = 512 >> vcpus = 1 >> cpus = '1-3' >> disk = [ >> 'phy:/dev/sys/db.real-charts.com-root,xvda,w', >> 'phy:/dev/sys/db.real-charts.com-swap,xvdb,w', >> 'phy:/dev/sys/db.real-charts.com-tmp,xvdc,w', >> 'phy:/dev/sys/db.real-charts.com-var,xvdd,w', >> 'phy:/dev/sys/db.real-charts.com-usr,xvde,w' >> ] >> vif = [ 'mac=00:16:3e:00:04:01,bridge=eth0' ] >> >> vnc = 1 >> boot = "c" >> stdvga = 1 >> localtime = 0 >> >> hpet = 1 >> acpi = 1 >> apic = 1 >> pae = 1 >> usb = 0 >> >> on_poweroff = "destroy" >> on_reboot = "restart" >> on_crash = "restart" >> >> But as I read the documentation, on_poweroff means what to do when the >> domain powers itself off. But for me it seems, that xen sends a halt to the >> freebsd domain, exactly as if I issue a >> # halt >> In that case, the domain does halt, and shows that the system is halted, >> and press any key to reboot. Unfortunately I dont have a freebsd on real >> hardware, so I dont know if issue a halt on that does it powers itself off. >> >> But when inside the domain, and I issue poweroff, it works as expected, I >> guess it sends an acpi poweroff to xen, and then tha virtual machine gets >> stopped. >> >> Regards, >> >> Kojedzinszky Richard >> Euronet Magyarorszag Informatikai Zrt. >> >> On Wed, 25 Jan 2012, Colin Percival wrote: >> >>> Date: Wed, 25 Jan 2012 02:16:27 -0800 >>> From: Colin Percival >>> To: Richard Kojedzinszky >>> Cc: freebsd-xen@FreeBSD.org >>> Subject: Re: amd64 xen hvm shutdown >>> >>> On 01/25/12 02:09, Richard Kojedzinszky wrote: >>>> I am looking for a solution to be able to shutdown my freebsd 9.0 amd64 >>>> xen hvm >>>> domain from outside, from the host. Precisely, when the host is halted, >>>> it >>>> issues an >>>> # xm shutdown domain --halt --wait >>>> >>>> to the domain, and the domain does not poweroff. It behaves as if I issue >>>> a halt >>>> inside of it, and not a poweroff. Is there a way to have it power down >>>> itself? >>> >>> That sounds like a Xen configuration issue ("poweroff behaviour"?) rather >>> than a >>> FreeBSD issue to me. >>> >>> -- >>> Colin Percival >>> Security Officer, FreeBSD | freebsd.org | The power to serve >>> Founder / author, Tarsnap | tarsnap.com | Online backups for the truly >>> paranoid >>> >> _______________________________________________ >> freebsd-xen@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-xen >> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" >