From owner-freebsd-questions@freebsd.org Sat Jul 9 04:22:33 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0F4CB83DC2 for ; Sat, 9 Jul 2016 04:22:33 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 91CB213AB for ; Sat, 9 Jul 2016 04:22:32 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp14-2-37-105.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.37.105]) by ipmail06.adl6.internode.on.net with ESMTP; 09 Jul 2016 13:52:25 +0930 Subject: Re: Help needed for bhyve : vm_create: Device not configured To: Manish Jain , "freebsd-questions@freebsd.org" References: From: Shane Ambler Message-ID: <57807BFF.6090408@ShaneWare.Biz> Date: Sat, 9 Jul 2016 13:52:23 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2016 04:22:34 -0000 On 09/07/2016 02:45, Manish Jain wrote: > I am trying to see if I can achieve Windows XP virtualization with my > FreeBSD 10.2 amd64 host. For a first step, I am trying to get a FreeBSD > 10.2 guest up and running with the instructions at : > https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html > > But I just get the error message "vm_create: Device not configured". > What could be wrong ? My commands and loaded kld's are listed underneath. > > Thank for any help. > > kldload vmm > ifconfig tap0 create > sysctl net.link.tap.up_on_open=1 > ifconfig bridge0 create > ifconfig bridge0 addm re0 addm tap0 > ifconfig bridge0 up > > # sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d wxp.img > -i -I FreeBSD-10.3-RELEASE-amd64-disc1.iso fbsd10dot3vm > Launching virtual machine "fbsd10dot3vm" ... > vm_create: Device not configured Did you create wxp.img that you want to use as the drive? The truncate command between the ifconfig and vmrun.sh is the one that creates the empty file to be used. Unless you are running a very recent build of FreeBSD current (last 5 days) you will need some extra work for windows. To get windows running you need to setup an unattended install for windows as there is no gui available during boot. https://wiki.freebsd.org/bhyve/Windows -- FreeBSD - the place to B...Software Developing Shane Ambler