From owner-freebsd-virtualization@FreeBSD.ORG Sun Sep 9 18:28:50 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 420C5106564A; Sun, 9 Sep 2012 18:28:50 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 388EA8FC0A; Sun, 9 Sep 2012 18:28:48 +0000 (UTC) Received: by lbbgg13 with SMTP id gg13so1172821lbb.13 for ; Sun, 09 Sep 2012 11:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=aAJly1vWCL2Lf8+Rzup+82ke6l9bqKU5VKjZnGLRmks=; b=gaaFgN64FSVmF8GeJ6kiy95UH4xAdEfcBqoY0+UwWSZBWkqPf63XPuIEt0pBLXQCz/ fuKSlt1Qe0lMuvSB5PIUK50o85RAyY0QHDvCFDNktgSvCw0/xfLT8zTSh0/AJHUC/XsA w/WaqLNbXU2Gz3E/ame1Qcm5Umq17hxnzlpcB3sdTqgI53z3MX3lTFy4WpAZaDEARw5N HzkK6Gp6QrT/EUbmVr9Ev3Eur9kP0mWjqGPZcPfnbmXFw1pFra/R+hMG1md1Kvan+g0e 65+frNiaEyKpnor9XKU7zkiyqe2a9mdu12UvXQurQmpWuCGATTyTTmb9nRIHh9h4Lu6s CLpQ== Received: by 10.152.48.70 with SMTP id j6mr769820lan.57.1347215327756; Sun, 09 Sep 2012 11:28:47 -0700 (PDT) Received: from kloomba ([95.104.140.49]) by mx.google.com with ESMTPS id c6sm2149417lbk.10.2012.09.09.11.28.45 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Sep 2012 11:28:46 -0700 (PDT) Sender: Roman Bogorodskiy Date: Sun, 9 Sep 2012 22:28:12 +0400 From: Roman Bogorodskiy To: Andreas Nilsson Message-ID: <20120909182811.GB8000@kloomba> References: <20120815155222.GA46502@kloomba> <20120819191127.GA1733@kloomba> <5031C58C.40108@freebsd.org> <20120820133613.GA1701@kloomba> <50324270.9040504@freebsd.org> <20120902164750.GA3721@kloomba> <20120902165648.GB3721@kloomba> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-virtualization@freebsd.org Subject: Re: BHyVe: vm_setup_memory(highmem): Cannot allocate memory X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 09 Sep 2012 18:28:50 -0000 --i9LlY+UWpKt15+FH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andreas Nilsson wrote: > On Sun, Sep 2, 2012 at 6:56 PM, Roman Bogorodskiy wro= te: >=20 > > Roman Bogorodskiy wrote: > > > > > Peter Grehan wrote: > > > > > > > Hi Roman, > > > > > > > > > Yeah, but I'd like to leave more memory for the host system, so I > > > > > specified 6GB. I have 8GB at all, so 2GB left for VMs. > > > > > Should it cause any problems? > > > > > > > > No, that should be fine. > > > > > > > > > BTW, I encountered a problem with the tap0 device. I create a tap > > device > > > > > and assign an address to it, using 'ifconfig tap0 192.168.1.1 up'. > > > > > > > > > > I boot a VM and everything goes fine. When I do 'reboot' in the > > guest, > > > > > it reboots, but tap0 on the host goes down and its address is > > dropped. > > > > > Is that an expected behaviour? > > > > > > > > Yes - we probably need to fix the tap device to not do that :( > > > > > > Yeah, it would be great to get this fixed. > > > > > > And one question: is there a way to get a list of all running VMs on = the > > > host? Doesn't seem like vmmctl being able to do that. > > > > Oh, I've started reading the code and figured out that I can just do > > `ls /dev/vmm`! > > > > Roman Bogorodskiy > > >=20 > IMHO: Please don't introduce "reading stuff in /dev" as a standard way to > get info ( at least not for end user). sysctl is so much nicer to work wi= th. Yes, reading from /dev is not very convenient, but appears that sysctl is not supported. I didn't read the code though, but I don't see anything looking like that in sysctl -a. Probably the most handy way of doing that is via 'vmmctl' or a tool like that. Anyways, I started spotting one more problem: I start a VM like that: sudo /usr/sbin/bhyveload -m 256 -M 0 -h /var/run/bhyve/test1/vm1 test1 sudo /usr/bin/cpuset -l 0-3 /usr/sbin/bhyve -m 256 -M 0 -s 1,virtio-net,tap= 0 test1 The last commands give me: Failed to emulate instruction at 0xffffffff80594f3a What could be wrong with that? Roman Bogorodskiy --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iQEcBAEBAgAGBQJQTN+6AAoJEMltX/4IwiJqYtcH/0NwXEpwdlY7sDFXPBsflu0g QQVePx7nUpUtrHtF968jkgaiZIeRg15tHD60UaeFQkjmmcxu3Jz7W/hLC8jiQFH/ 112qoYLfzKRkEskGUb3ib/VAHrgVdHioV6Q4ml17ajxSKuJGhrCAc3n3jnITJ2gv T5hDiSI1nafjan8MNdHQsPcVl29fcUVJu692/n7Kn7FYzTy/o+29KOufpA+Z4Oak EV8FoSzdZOCbFEwqpvjv3V3TrUtkKfGFeHjIw1JVuBwRB+9cXZlZF8Cj9NSZfjcg DwMZu99etXrvtsCbwQf6EuGghV3MvW3UlK0kTJO5EnNGrDajocimir+DwBeau+I= =Wf6K -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--