From owner-freebsd-questions@FreeBSD.ORG Thu Jun 7 00:11:18 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C0DA16A41F for ; Thu, 7 Jun 2007 00:11:18 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id E150613C455 for ; Thu, 7 Jun 2007 00:11:17 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by wr-out-0506.google.com with SMTP id 69so265030wra for ; Wed, 06 Jun 2007 17:11:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N6bV6qSOfQj9cQV8WbudJzi4/9u73zShUyDj9R0AI0NNijRJ+yjtuCrQZQIYkuahAO0QMfyXnvC7m8wELZI6kEuPUOxG4IPD93WscbrwU49M4U/b+6+PnrBDxBLJEx4Eu4ivCo76qpkR9mHVAaNaCLVx7zCiMDsGbHtAMZT/EqE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fd4FBC+Ukgapczq019U8nr9HxVC4jO5OmFgugBU25Ry56ecplbBekNd6M78/Y879eEkpGYKD/dLsaHuZNVuES5m6bnKGQDgphlqV+7jVHsnyETlbB8rhLQWDNW8YIQMnb49oU+eOvZ+PJHEInpM8W8rkEQmHLYtFBVi6NhslU1o= Received: by 10.143.44.3 with SMTP id w3mr56958wfj.1181175076639; Wed, 06 Jun 2007 17:11:16 -0700 (PDT) Received: by 10.142.254.1 with HTTP; Wed, 6 Jun 2007 17:11:16 -0700 (PDT) Message-ID: <26ddd1750706061711t660afba9h737735b9e1805c65@mail.gmail.com> Date: Wed, 6 Jun 2007 20:11:16 -0400 From: "Maxim Khitrov" To: freebsd-questions@freebsd.org In-Reply-To: <46674717.6020105@calarts.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46674717.6020105@calarts.edu> Subject: Re: Virtualization of FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 00:11:18 -0000 On 6/6/07, Sean Murphy wrote: > Is anyone running virtualization of FreeBSD servers on VMware or other > virtualization software? What experiences have you had, good or bad? At home I run have several FreeBSD installs running on Windows 2003 VMWare Server. The only reason I'm doing this is because FreeBSD doesn't support my raid controller, so I'm stuck with windows. Overall it works fine. However, you do have terrible disk (and to a lesser extent network) performance. I use these installs mostly for developing and testing software, so it's not a big deal for me. Here are a few tips for getting the most out of a FreeBSD server on VMWare (this is for Windows only): - If you have enough memory, add prefvmx.minVmMemPct = "100" and prefvmx.useRecommendedLockedMemSize = "TRUE" to VMWare config.ini (App Data under All Users). That will keep all the VM memory in ram instead of swapping it to the disk. The rest of the settings go into your FreeBSD.vmx file. - Disable named memory file: mainMem.useNamedFile = "FALSE" - Disable page sharing: sched.mem.pshare.enable = "FALSE" - Disable memory trimming: MemTrimRate = "0" - Be sure to use Intel gigabit network adapter: ethernet0.virtualDev = "e1000" In previous versions of VMWare Server you had to configure your kern.hz sysctl to be 100. Otherwise your clock would run very slow. I think they fixed it in the latest version, but just keep that in mind. Disk performance is quite bad. For example, doing a full extract of the ports tree takes my server around 16 minutes. On my old laptop with a crappy hard drive it takes only 8 or so minutes. So that's something to keep in mind, you're not going to be able to use VMs as a file server. For most other uses it works fine. - Max