From owner-freebsd-virtualization@freebsd.org Tue Feb 27 06:26:07 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CCB04F28A9E for ; Tue, 27 Feb 2018 06:26:07 +0000 (UTC) (envelope-from artemrts@ukr.net) Received: from frv190.fwdcdn.com (frv190.fwdcdn.com [212.42.77.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5C294849F2 for ; Tue, 27 Feb 2018 06:26:07 +0000 (UTC) (envelope-from artemrts@ukr.net) Received: from frv199.fwdcdn.com ([212.42.77.199]) by frv190.fwdcdn.com with esmtp ID 1eqYQe-0008ov-13 for freebsd-virtualization@freebsd.org; Tue, 27 Feb 2018 08:07:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Cc:To:Subject:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IBwWJX+aDaiT6aADZXIuBxHLt9rJog5BuEfnAcBmXnI=; b=FEbzakamz4uK1jDPfPzLg9YZ0Y TQnFABQB6/jgjRNAdQwxGNXOwN0xx6WEVtflL+uUx8yIUF+bXGNjiHuF1r5D16shXsa7c23+pbLhM 6q8X/ngXhhQNWjqvSDBYtUxvn3zemqilU84Ts8FaPENZdQ853bO1IE+wT8ugbRcuMkhk=; Received: from [10.10.10.52] (helo=frv52.fwdcdn.com) by frv199.fwdcdn.com with smtp ID 1eqYQV-0008iW-Qb for freebsd-virtualization@freebsd.org; Tue, 27 Feb 2018 08:07:47 +0200 Date: Tue, 27 Feb 2018 08:07:47 +0200 From: wishmaster Subject: Re[2]: Re[2]: Migrate from real server to virtual To: "Rodney W. Grimes" Cc: "freebsd-virtualization@freebsd.org" X-Mailer: mail.ukr.net 5.0 Message-Id: <1519711012.787233844.2n5j39fz@frv52.fwdcdn.com> In-Reply-To: <201802261507.w1QF7w0g010682@pdx.rh.CN85.dnsmgr.net> References: <1519655843.315990939.0ghqn7l2@frv52.fwdcdn.com> <201802261507.w1QF7w0g010682@pdx.rh.CN85.dnsmgr.net> X-Reply-Action: reply Received: from artemrts@ukr.net by frv52.fwdcdn.com; Tue, 27 Feb 2018 08:07:47 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 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: Tue, 27 Feb 2018 06:26:08 -0000 --- Original message --- From: "Rodney W. Grimes" Date: 26 February 2018, 17:08:06 > > > > ? > > > > --- Original message --- > > From: "Rodney W. Grimes" > > Date: 26 February 2018, 16:17:44 > > > > > > > > Hi, colleagues. > > > > > > > > There is a server running with Windows Server 2008 R2 and I am attempting launch this server in virtual environment as a back up. But there is one big problem - I can not shutdown this server. > > > > My first step was creating a VHD image with help of Disk2vhd. Then a converted this image from VHD to raw image with qemu. > > > > I don't know boot setting of BIOS. > > > > > > > > With this command I am unable to start the server. > > > > > > > > bhyve -c 2 -s 0,hostbridge -s 3,ahci-hd,/vm/img/disk1.raw -s 4,ahci-cd,/VM/distro/null.iso -s 10,virtio-net,tap1 -s 20,fbuf,tcp=192.168.0.254:5900,w=800,h=600,wait -s 21,lpc -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 6G -H -w windows2 > > > > > > > > Boot Filed. UEFI Hard Drive > > > > > > > > Any ideas? > > > > > > You mention how you start it, what are you using to try and stop it? > > > > Ctrl+C then bhyvectl --vm windows2 --destroy > > Ok, thats to clean up after a crashed VM, not the way to shutdown > a running system. > > > > Also what version of FreeBSD are you running as a host? > > > > FreeBSD 11.1-STABLE r329364 > > Thanks, wanted to make sure this was a 10.x system. > > > > Are you saying you can not connect to the vnc on 192.168.0.254:5900 > > > and tell windows to shutdown? > > > > I can connect to the 192.168.0.254:5900, but error is displayed: Boot Filed. UEFI Hard Drive > > Boot Failed? So windows never started. > Your not having a shutdown problem your having a start up failure. > > What is the output of: > file /vm/img/disk1.raw > file /VM/distro/null.iso > > And do you really have /vm and /VM? Or is that a typo? > > > -- > Rod Grimes rgrimes@freebsd.org I said not clear. I can not reboot hardware server for some reason and therefore do not know boot settings: or this is UEFI boot or Legacy. But problem is in inability to boot the virtual server. After I connect via VNC I see this error: Boot Filed. UEFI Hard Drive Without parameter "-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd" bhyve does not start at all with error virtual machine cannot be booted. -- Vitaly