From owner-freebsd-virtualization@freebsd.org Fri May 25 07:02:59 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 A9BB8F74973 for ; Fri, 25 May 2018 07:02:59 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BB467587F for ; Fri, 25 May 2018 07:02:59 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: by mail-qt0-x235.google.com with SMTP id c2-v6so5330488qtn.9 for ; Fri, 25 May 2018 00:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tbT4nZ/qtpQf4+ItLkQWtLSYC5dV5ywy9iqh5LoyZs8=; b=JlioNI27bBf54fQgGcK0lpxRek/NsbajBIWxYQkaok4tYla6HFgmy/wh8D1rujuXgz tOLySGGyojHe0b1L45Ki9YPMj2qWWa4gDk/NGIsUg/3EcZTaTK8wylIbK7HqIfsIGqOn 2u9Q2lR0OcAjOQYahN5K6GitzP8Zxu4tsVrHkl2gm4uhIEdvLct2Qmkkew71CdW8LTin BGxfWgDPh7NagtElbg5wLy4zXPzaV7exK66o3l9igSri87NvRgMeoXYswyepMeMe41Fx iDIu8f9KwC/UUjJWViViSwJUn8en5TbtVDNbueFyLzzqE3Cp/Gv6AsFc36PF85uhSj91 4bEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tbT4nZ/qtpQf4+ItLkQWtLSYC5dV5ywy9iqh5LoyZs8=; b=XVC8h2WXr1Ufxmgr9FEfalbrwzAZqZa6etP5ifTL+zJWHqiksTq1gq98+oga7aCSVu ajjb3+HVaepU6WYaHjwAzsukfCFhIs36rJlrpCAqNtvlQwjkVG4gBwyMmqW/y/hKGjPA Vql3IdP+D8XFzt7+rnGVt1gv37s1SFcZPtBo5l111hcvkjz6Nr5ViWDCyWCz1FSuRvv4 dtbH+pUPNcD9Qerkjb+2Ue//tH8Th6rdov0hTiNY7q59PeVMjV9yxbLMkiRqgRJgtlxq Zv/rjFnw3gYuB+kyKJuuS81+gJb1mrM+U0nCsoWnpHJINGGkpJ1+2mdCGmCD9NcVPd+O 7Qjw== X-Gm-Message-State: ALKqPwcHFlRsTx8795lkNO+SkaDtSaczRF5+ziefiTIpkvn/uNt9Bmfs D+5PMcqoWOdsumHjBHMSfQjkQXmVoYA9dnURKVc= X-Google-Smtp-Source: ADUXVKKG4BHFYK/bX2D77fpNlWlGzCKfKfIs+FTM2SHmQ82WejSqeO2zaeEKE6m0nThMgx8wASXQjoj0634kZeLPbBw= X-Received: by 2002:ac8:2243:: with SMTP id p3-v6mr1055047qtp.201.1527231778731; Fri, 25 May 2018 00:02:58 -0700 (PDT) MIME-Version: 1.0 References: <49FCEBE6-5551-42C1-8A9F-5F84ECAD0581@cs.huji.ac.il> In-Reply-To: <49FCEBE6-5551-42C1-8A9F-5F84ECAD0581@cs.huji.ac.il> From: Darius Mihai Date: Fri, 25 May 2018 10:02:22 +0300 Message-ID: Subject: Re: bhyve client: who is hosting me? To: danny@cs.huji.ac.il Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.26 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: Fri, 25 May 2018 07:03:00 -0000 On Fri, May 25, 2018 at 9:08 AM Daniel Braniss wrote: > Hi, > I=E2=80=99m trying out bhyve with different setups, but mailny FreeBSD (1= 1.2 and 12), and > was wondering if there is any way for the client to know who is hosting it? > thanks, > danny Hi, What do you mean 'knowing who is hosting it?' If you mean obtaining information such as IP address or hostname of the host from inside the guest operating system, it should not be possible and is likely a security flaw if it were allowed by default. Operating systems should ideally be unable to determine even that the system is a virtual machine instead of a hardware based host; however since bhyve uses VirtIO devices and other virtualization mechanisms due to performance issues you are indeed able to determine that the OS is running in a virtual machine. More specific information should be impossible to obtain if not injected by the host (e.g., running a web server on the host with some information, adding a virtual block device with a configuration file, and so on). Darius > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " freebsd-virtualization-unsubscribe@freebsd.org"