From owner-freebsd-virtualization@freebsd.org Wed Aug 12 11:10:34 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A9C4237C7CF for ; Wed, 12 Aug 2020 11:10:34 +0000 (UTC) (envelope-from henrik@gulbra.net) Received: from srv.gulbra.net (ec2-174-129-193-206.compute-1.amazonaws.com [174.129.193.206]) by mx1.freebsd.org (Postfix) with ESMTP id 4BRRnj41zNz3WY2 for ; Wed, 12 Aug 2020 11:10:33 +0000 (UTC) (envelope-from henrik@gulbra.net) Received: from srv.gulbra.net (localhost [127.0.0.1]) by srv.gulbra.net (Postfix) with ESMTP id 4D2E61351 for ; Wed, 12 Aug 2020 11:10:27 +0000 (UTC) Received: by srv.gulbra.net (Postfix, from userid 33) id 270DC1352; Wed, 12 Aug 2020 11:10:27 +0000 (UTC) To: Odhiambo Washington Subject: Re: FreeBSD a server and bhyve X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 12 Aug 2020 13:10:26 +0200 From: Henrik Gulbrandsen Cc: FreeBSD Virtualization In-Reply-To: References: <1c1e71ea-9f4f-b4a6-c6bb-f7cd201c0182@gmx.at> Message-ID: X-Sender: henrik@gulbra.net User-Agent: Roundcube Webmail/1.2-beta X-Rspamd-Queue-Id: 4BRRnj41zNz3WY2 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of henrik@gulbra.net has no SPF policy when checking 174.129.193.206) smtp.mailfrom=henrik@gulbra.net X-Spamd-Result: default: False [3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.07)[-0.073]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.14)[0.137]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; DMARC_NA(0.00)[gulbra.net]; HAS_X_POS(0.00)[]; AUTH_NA(1.00)[]; PHP_SCRIPT_ROOT(1.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.44)[0.439]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14618, ipnet:174.129.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 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: Wed, 12 Aug 2020 11:10:34 -0000 On 2020-08-11 21:38, Odhiambo Washington wrote: > On Tue, 11 Aug 2020 at 20:23, Pete Wright wrote: >> On 8/11/20 5:49 AM, Odhiambo Washington wrote: >> > Hi infoomatic, >> > >> > Looks like I have to top-post so as to not mess the thread: >> > >> > The reason I need a VM is because I need to totally independent host, >> > with an independent name, with access to all ports of its own. >> > It looks like I need another public IP for that. >> >> It depends on your use case. I have a single IPv4 address allocated >> to >> one of my systems and have setup various CNAME entries in DNS that all >> resolve to the same IP. I think that's a pretty common design pattern >> for people who colo their own servers and host multiple services on >> them. >> >> the tricky part will be if you want to host multiple instances of the >> same service though (multiple webservers for example). in that case >> you'll most likely need multiple IPv4 address assigned to your system. >> > > That's exactly where I am. > Suppose I obtained another IP for the VM, how do I make the VM the only > host listening on that IP then? I still don't see why you would need multiple IP addresses for services on a single physical server. It would usually be enough to handle this as virtual hosts on the application level rather than the OS level: https://httpd.apache.org/docs/current/vhosts/ http://www.postfix.org/VIRTUAL_README.html In that case, you only need to worry about CNAME and MX records in DNS. /Henrik