From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 3 07:59:12 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A71994BA; Mon, 3 Nov 2014 07:59:12 +0000 (UTC) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 69DF58B3; Mon, 3 Nov 2014 07:59:12 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id eu11so11717571pac.2 for ; Sun, 02 Nov 2014 23:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=1Eeqs9VgvMYGGnTp3Ko9PwvsolP+m+ImwHkfhHRExf4=; b=uizNjDQBaaCNLiFVNOiWurJbdn/A7jHYNembiLFunEWYgquG3R8UgXsGOm4awEV4i1 36FATTZIb4m/GQexdaUIZE0hKAzQ363VCA/La+wNGKO/Q0gx7HcdyH/ACSZQUyuGr49N 8eykDggpYGTVSo8tzx29megkxeBNdXWuHcu8dTQ9YvneC7aMavhnIVmJWlpWPcZqmzHG usbA6XSZTUG1+fKpHExc5iuhqRiB3ksvliNp9SmMCeimtz+LxqIiDhnqxEx+HrV+PyVZ bRfeXBH7rfT1twHvCStqZiPtCBHRrNBK19DljbBP9hDKAz27hySzgdhZpMmYP+8E6anQ LLcA== X-Received: by 10.66.182.130 with SMTP id ee2mr41814355pac.22.1415001551916; Sun, 02 Nov 2014 23:59:11 -0800 (PST) Received: from [172.16.0.156] (50-206-19-250-static.hfc.comcastbusiness.net. [50.206.19.250]) by mx.google.com with ESMTPSA id z4sm16410872pda.23.2014.11.02.23.59.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Nov 2014 23:59:11 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_9EABB7B8-9CF2-4321-9652-AFD944299521"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Help with Bhyve VM install From: Garrett Cooper In-Reply-To: Date: Sun, 2 Nov 2014 23:59:11 -0800 Message-Id: References: <1332647925.1184837.1414700255905.JavaMail.zimbra@xinuos.com> <926516146.1185082.1414701141476.JavaMail.zimbra@xinuos.com> To: Craig Rodrigues X-Mailer: Apple Mail (2.1878.6) Cc: "freebsd-testing@freebsd.org" , Susan Stanziano , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 03 Nov 2014 07:59:12 -0000 --Apple-Mail=_9EABB7B8-9CF2-4321-9652-AFD944299521 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Craig, On Oct 30, 2014, at 19:39, Craig Rodrigues wrote: > On Thu, Oct 30, 2014 at 1:32 PM, Susan Stanziano = > wrote: >=20 >>=20 >> I have a system installed with releng10.1 (with tests configured) and = am >> trying to create a VM under Bhyve. >>=20 >> I want to know which image to use for the VM install, specifically = will >> the : >>=20 >> FreeBSD-10.1-RC3-amd64-bootonly.iso >>=20 >> install with the /usr/tests directory created? Or, should I use >> FreeBSD-10.1-RC3-amd64-disc1.iso ? >>=20 >=20 > Hi Susan, >=20 > I'm not sure why Garrett felt it was necessary to redirect you > to the freebsd-virtualization list. Although you are using bhyve, > there is nothing specific to bhyve in your questions. No harm done, > though, since I'm on both lists, and will answer your questions. Thank you for CCing -virtualization. The reason why I requested that Susan email that list directly is that = this email (and the new email thread that followed it, to a lesser = degree) are asking BHyVE specific questions, so I thought that it would = be best for Susan to email the appropriate mailing list, so the right = parties are involved in helping out with her support questions, to make = it easy to search for solutions to this issue (or questions similar to = this) in the future, and to make sure that folks on -testing aren=92t = emailed with -virtualization questions (I use VMware, not BHyVE, so the = questions/answers are less pertinent to me at least). > FreeBSD 10.1 does not have /usr/tests populated by default. =85 Could you please document the steps you provided in the reply on the = wiki? Thank you! -Garrett --Apple-Mail=_9EABB7B8-9CF2-4321-9652-AFD944299521 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUVzXPAAoJEMZr5QU6S73evtMH/2YrMN3paLmdNnBk3YecTk6f AK/aRjFca3HrEwNq3w7FtW76sCXUgT8IEje3tDpX6L0j5uebwH/6TR+rkTR464lJ CNi7INjoeRv2DIHYSL0QjWvYNeELgGMQJWTcDPq0uJBR08kuJt1jFMZogKu+4L7+ aoC792pK+THTfEkGbf3tZqlN6MMYf+7K6oQvbLxVol0gRWCjXmLGG5YCi0ryHB6e iDhU9iBwICqnUFHGLcLygR2IeOdFTp5itnoYYo7gTtn/y9Z788eeNwtnOdeBWzGL qdzM2SkIEJ/Z3CbjESrk5avBqshvqtaG3gaYi/Q6gUT2QhX9xqSgAGfxwOWFlig= =cwdS -----END PGP SIGNATURE----- --Apple-Mail=_9EABB7B8-9CF2-4321-9652-AFD944299521-- From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 4 15:59:56 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB19BCC6 for ; Tue, 4 Nov 2014 15:59:56 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2ABF877B for ; Tue, 4 Nov 2014 15:59:56 +0000 (UTC) Received: from portis.head.local ([109.193.229.18]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LkTSx-1YJNJX1F9f-00cSB7 for ; Tue, 04 Nov 2014 16:59:48 +0100 Message-ID: <5458F7ED.4030205@gmx.com> Date: Tue, 04 Nov 2014 16:59:41 +0100 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: "freebsd-virtualization@freebsd.org" Subject: VIMAGE and VirtualBox networking question Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:+wavhUZWPsD7lFyQ576Yh7aFPuaAjakPg8FPjhT53VPOkxHxgFF YK/xlYckXTs4rdYFr8okUVxBYm7EpDGZwlgKLNhS6Ls4dAFH+rd0W2SAtNgzk/i1Uwk7dCH qMMJH1R9f8aCo/RGa2od1DzL1Amb5ITLx2YJOSSlpR1bG3ixDyBBS0ertPqDvFATTQbIp7N ui6h4dPYHtTt8eCjAN9lQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 04 Nov 2014 15:59:56 -0000 Hi people:) I just tried to use VirtualBox on my system and I used the fastest way "pkg install" etc. My kernel is VIMAGE-enabled and I have had some instant reboots while trying to setup VirtualBox networking. I suppose I just have to build the module for a VIMAGE kernel, right? Thanks! Nikos From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 4 16:51:57 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 26C7F4C1 for ; Tue, 4 Nov 2014 16:51:57 +0000 (UTC) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E503ED7E for ; Tue, 4 Nov 2014 16:51:56 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id rp18so7851308iec.40 for ; Tue, 04 Nov 2014 08:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=mSwH2O0GmdJkK0A2AuNCluo+c/uds0LCD4ygfpdoPCE=; b=hFn3w5WOv3CXBECQfYrmyEfikFPmdpLddWi5YmLx34hZulqCma9jsgi/D8uweDOasj E2YN+tVFyOooGXboJHFxD+7e3o4VfDtSelV6p+6IPWEEj5JXIDXsnPK+WbPGsbB86zhM dmvxBadAfRD2snhnA+QyCgIX4Vu4h39j2HgRc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=mSwH2O0GmdJkK0A2AuNCluo+c/uds0LCD4ygfpdoPCE=; b=CoCksd58LWZX98wsflz2A8f/O3mD80nh88L8SuJHiqCACNTpIFxL3p5B0nYFw8d6HS S1qyC3mka0z/VXtfGrmQlYDmkYiworsOFqtm3IIMZTUvPEdo7Els+IF9p5c7flY8RSJq TQ45wHvrnwTHRw16xQS5MX3Lz/0YvxZHDGoRCRKQk6TijF+nmjVmO4YFz6ho4jzc7Ii4 XE+qleBVnTFxTeIRU6L8Zxo1xMwIBUO2b5kKNAMG95/dgSCGRnGTK0VoDxXX2cJzFBFl 6aRJzi3IOvfSVnkmT19/Sg7UqdomZuYAh+4tLcG2BAm//45dFok2D+SsQtYPQ0g9Dz0Q 9uuQ== X-Gm-Message-State: ALoCoQnOQBAHXtAsGKNz2Mq/4Vpv66xBzfVJ7sglfaoY1jQGYnDZOqtmHGICIkAERw+R8fJif+j0 X-Received: by 10.107.16.19 with SMTP id y19mr3594366ioi.77.1415119916231; Tue, 04 Nov 2014 08:51:56 -0800 (PST) Received: from [192.168.8.21] ([66.195.151.70]) by mx.google.com with ESMTPSA id e77sm379314iod.36.2014.11.04.08.51.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Nov 2014 08:51:55 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_F234CF11-9879-4C9C-994A-ED9ACCFD5BD1"; protocol="application/pkcs7-signature"; micalg=sha1 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: VIMAGE and VirtualBox networking question From: Jason Hellenthal In-Reply-To: <5458F7ED.4030205@gmx.com> Date: Tue, 4 Nov 2014 10:51:56 -0600 Message-Id: <210B7C66-1F59-4202-BC62-C477BAADB8EE@dataix.net> References: <5458F7ED.4030205@gmx.com> To: Nikos Vassiliadis X-Mailer: Apple Mail (2.1990.1) Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 04 Nov 2014 16:51:57 -0000 --Apple-Mail=_F234CF11-9879-4C9C-994A-ED9ACCFD5BD1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Are you building pf firewall in with that setup ? 10.X ? if so disable = it and you=E2=80=99ll become quite a bit more stable. > On Nov 4, 2014, at 09:59, Nikos Vassiliadis wrote: >=20 > Hi people:) >=20 > I just tried to use VirtualBox on my system and I used the fastest way = "pkg install" etc. My kernel is VIMAGE-enabled and I have had some = instant reboots while trying to setup VirtualBox networking. >=20 > I suppose I just have to build the module for a VIMAGE kernel, right? >=20 > Thanks! >=20 > Nikos > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to = "freebsd-virtualization-unsubscribe@freebsd.org" --=20 Jason Hellenthal Mobile: +1 (616) 953-0176 jhellenthal@DataIX.net JJH48-ARIN --Apple-Mail=_F234CF11-9879-4C9C-994A-ED9ACCFD5BD1 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGNDCCBjAw ggUYoAMCAQICAwohwzANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0 YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcx ODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENB MB4XDTE0MDYwMzAzMzkyN1oXDTE1MDYwMzE4MDgxM1owSDEfMB0GA1UEAwwWamhlbGxlbnRoYWxA ZGF0YWl4Lm5ldDElMCMGCSqGSIb3DQEJARYWamhlbGxlbnRoYWxAZGF0YWl4Lm5ldDCCASIwDQYJ KoZIhvcNAQEBBQADggEPADCCAQoCggEBAJKGjiPzL417iKfMoeneq5efP1IaUUtMOy8yf+e7vO6k JF8PWpXPevNbHzgWqB+EyEqjlNdsIApe9dl8Pb4/wLxjGpeoI9h83WzblarnczZfK7s0eyT/qN0Q d9wFoX7ScyFdpFNW4TyCUNsRrqWkW1PM+nYcix9Ro9i9N89nQjIuND/2JZBgnGVys1yAqN6XF2e8 RAKlD1e5hJ3xyM7STk74Jex9b/D8jF/gmKTbJZ8zKST3VnEVIPTNUtDyCKrfwHEUT7PlLTPFBmXS YxbK33AkYF7hHR8YP1zzlShucaef1Fsqj1dz151XjqIvgLetfDUDQJTRKaQSqouYbQibC4sCAwEA AaOCAtwwggLYMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggr BgEFBQcDBDAdBgNVHQ4EFgQUzDac0huOVpzovDj7gQlVDDg1z4swHwYDVR0jBBgwFoAUU3Ltkpzg 2ssBXHx+ljVO8tS4UYIwIQYDVR0RBBowGIEWamhlbGxlbnRoYWxAZGF0YWl4Lm5ldDCCAUwGA1Ud IASCAUMwggE/MIIBOwYLKwYBBAGBtTcBAgMwggEqMC4GCCsGAQUFBwIBFiJodHRwOi8vd3d3LnN0 YXJ0c3NsLmNvbS9wb2xpY3kucGRmMIH3BggrBgEFBQcCAjCB6jAnFiBTdGFydENvbSBDZXJ0aWZp Y2F0aW9uIEF1dGhvcml0eTADAgEBGoG+VGhpcyBjZXJ0aWZpY2F0ZSB3YXMgaXNzdWVkIGFjY29y ZGluZyB0byB0aGUgQ2xhc3MgMSBWYWxpZGF0aW9uIHJlcXVpcmVtZW50cyBvZiB0aGUgU3RhcnRD b20gQ0EgcG9saWN5LCByZWxpYW5jZSBvbmx5IGZvciB0aGUgaW50ZW5kZWQgcHVycG9zZSBpbiBj b21wbGlhbmNlIG9mIHRoZSByZWx5aW5nIHBhcnR5IG9ibGlnYXRpb25zLjA2BgNVHR8ELzAtMCug KaAnhiVodHRwOi8vY3JsLnN0YXJ0c3NsLmNvbS9jcnR1MS1jcmwuY3JsMIGOBggrBgEFBQcBAQSB gTB/MDkGCCsGAQUFBzABhi1odHRwOi8vb2NzcC5zdGFydHNzbC5jb20vc3ViL2NsYXNzMS9jbGll bnQvY2EwQgYIKwYBBQUHMAKGNmh0dHA6Ly9haWEuc3RhcnRzc2wuY29tL2NlcnRzL3N1Yi5jbGFz czEuY2xpZW50LmNhLmNydDAjBgNVHRIEHDAahhhodHRwOi8vd3d3LnN0YXJ0c3NsLmNvbS8wDQYJ KoZIhvcNAQELBQADggEBABTurlkTDTe7R/3Va4AJzgeLybzHTijxvU9VE985fuKRBxS3x0cjKODM Gv4ynlsHCZHONGouIbuU1W0dcaiWA2Qxo0gqwXoGFZ65ERgRhot1n8UKQTvVKg/qhd2RGgqaqFFY qagXQAPglmpyvq3Hk6AN0E9XqAnbWCVaXUk0Al/TgZlCFtfE1NxfSkfF6u4ffkhj3AHHkbtBXsAe aSVF/ZJ7ET4Ji//oozVxJktOFQzb96HgMYKMk/YSznIqt3guY3KJbahQiVouWErvQaMYsXX5JUOQ YjnSa2/axNOTnUCPhDrgoS7BAJtJvNao8XWkRpp8RqqqhIywhrCsQlkRj7MxggNvMIIDawIBATCB lDCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3Vy ZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEg UHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENBAgMKIcMwCQYFKw4DAhoFAKCCAa8wGAYJKoZI hvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTQxMTA0MTY1MTU3WjAjBgkqhkiG 9w0BCQQxFgQUEB7DfUBVXX9lrEa0EhkjLoC/3hYwgaUGCSsGAQQBgjcQBDGBlzCBlDCBjDELMAkG A1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFs IENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJ bnRlcm1lZGlhdGUgQ2xpZW50IENBAgMKIcMwgacGCyqGSIb3DQEJEAILMYGXoIGUMIGMMQswCQYD VQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwg Q2VydGlmaWNhdGUgU2lnbmluZzE4MDYGA1UEAxMvU3RhcnRDb20gQ2xhc3MgMSBQcmltYXJ5IElu dGVybWVkaWF0ZSBDbGllbnQgQ0ECAwohwzANBgkqhkiG9w0BAQEFAASCAQBA8k8vmCGRe4MECtI4 2Yi/t5lCZHYprp8zH0H2C/KTRTlbmsvYbAdb4fiP1Vk+gVcKq7k3pS88gB68iJ4kEq99EnSIptOp creMAMEyoJJ3BAmH4uylPoCWHyfvd4GcWx8cltaLCsUL+aP1mFoVZ1obOz7pvzDqoN0qxG9UvW+W WD459Dq/5ekB6yushkpfOGsgGitisWdVQxnBs7S1maYvvrVeb/ilQsKjNf1PisomVfB0/RjgmO3v ZW15EGvFXzk0p7cUvLex/Dpen2meSLjWADeXyb1iMYp/OoCBXlrVt73fhzSnPkkYEhfC3t0CmXt/ eaiYNH5vTTFTOMREAM/yAAAAAAAA --Apple-Mail=_F234CF11-9879-4C9C-994A-ED9ACCFD5BD1-- From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 4 17:14:26 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 865FFE1A for ; Tue, 4 Nov 2014 17:14:26 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 63FCEFBC for ; Tue, 4 Nov 2014 17:14:26 +0000 (UTC) Received: from [172.16.1.137] (50-206-19-250-static.hfc.comcastbusiness.net [50.206.19.250]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 9380268EB4 for ; Tue, 4 Nov 2014 17:14:25 +0000 (UTC) Message-ID: <54590971.9080800@freebsd.org> Date: Tue, 04 Nov 2014 12:14:25 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: VIMAGE and VirtualBox networking question References: <5458F7ED.4030205@gmx.com> In-Reply-To: <5458F7ED.4030205@gmx.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 04 Nov 2014 17:14:26 -0000 On 11/04/2014 10:59, Nikos Vassiliadis wrote: > Hi people:) > > I just tried to use VirtualBox on my system and I used the fastest way > "pkg install" etc. My kernel is VIMAGE-enabled and I have had some > instant reboots while trying to setup VirtualBox networking. > > I suppose I just have to build the module for a VIMAGE kernel, right? > > Thanks! > > Nikos > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscribe@freebsd.org" The problem is likely that the virtualbox kernel modules needs to be exactly in sync with your kernel. The official pkgs build against the oldest version of the supported branch (10.0), so the module will probably not work on 10.1. Since you are compiling a custom kernel, you should probably build VirtualBox from source to get an exactly matched kernel module, and see if that solves your issues. -- Allan Jude From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 4 22:43:40 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D97F0DEE for ; Tue, 4 Nov 2014 22:43:40 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 70EB3C50 for ; Tue, 4 Nov 2014 22:43:40 +0000 (UTC) Received: from portis.head.local ([109.193.229.18]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MGSgq-1XqCfy27bk-00DCpv; Tue, 04 Nov 2014 23:43:38 +0100 Message-ID: <54595692.1060204@gmx.com> Date: Tue, 04 Nov 2014 23:43:30 +0100 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Jason Hellenthal Subject: Re: VIMAGE and VirtualBox networking question References: <5458F7ED.4030205@gmx.com> <210B7C66-1F59-4202-BC62-C477BAADB8EE@dataix.net> In-Reply-To: <210B7C66-1F59-4202-BC62-C477BAADB8EE@dataix.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:ftz1BtYCrQ1fLkhGaMzgBQ42jfmXaN15qWhG5nhO6whQaISMweC phIal1St3N3XEBNYv7//tjhSCFO4wwo9EpMs5ki/BZRM3fJ1Fhf0Dv4F0c+8mhY4XZH8ek6 9aTVzsbHSRxZzWQkF+3hnNFRiX0jkCcdCo0465JmXXdpwtzWFcEu6Ees35PsEDLgq2Tf7Cz EJWSCZc/rgJdd0Rn391eA== X-UI-Out-Filterresults: notjunk:1; Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 04 Nov 2014 22:43:40 -0000 No, there is no pf and yes it is on 10-STABLE. Have you installed from pkg? or ports? I wonder if we could have a binary pkg that contains the vbox kmod patch. I have no ports tree installed since I use binary packages and I would prefer not to install the ports tree to install a single port. On 11/04/14 17:51, Jason Hellenthal wrote: > Are you building pf firewall in with that setup ? 10.X ? if so disable it and you’ll become quite a bit more stable. > > >> On Nov 4, 2014, at 09:59, Nikos Vassiliadis wrote: >> >> Hi people:) >> >> I just tried to use VirtualBox on my system and I used the fastest way "pkg install" etc. My kernel is VIMAGE-enabled and I have had some instant reboots while trying to setup VirtualBox networking. >> >> I suppose I just have to build the module for a VIMAGE kernel, right? >> >> Thanks! >> >> Nikos >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" > From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 4 23:09:54 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3CAE4602; Tue, 4 Nov 2014 23:09:54 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CCECAE82; Tue, 4 Nov 2014 23:09:53 +0000 (UTC) Received: from portis.head.local ([109.193.229.18]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MSMKx-1Xb1rm2cKB-00TRH3; Wed, 05 Nov 2014 00:09:45 +0100 Message-ID: <54595CB9.1050907@gmx.com> Date: Wed, 05 Nov 2014 00:09:45 +0100 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Allan Jude , freebsd-virtualization@freebsd.org Subject: Re: VIMAGE and VirtualBox networking question References: <5458F7ED.4030205@gmx.com> <54590971.9080800@freebsd.org> In-Reply-To: <54590971.9080800@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:HTzXKAk5lSYpvC1hf/mSrOCovu3p72yM5Qic53/mPSJAhZmjXeT JRcenXqV8YNejdJUFSPesHP6gtM/MU9LYDp8/jtN5//UTxwaJG0dO3AEjHP9ydqM8HTr9bA pvmjby+OY1d3jY5WEWIGo6k9HztZcIWdSCnSXFHgybWihr2HQUGpPBXNggeTjXRfvzOK5nf shg0JZMqcohgvfURFHfOQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 04 Nov 2014 23:09:54 -0000 On 11/04/14 18:14, Allan Jude wrote: > The problem is likely that the virtualbox kernel modules needs to be > exactly in sync with your kernel. The official pkgs build against the > oldest version of the supported branch (10.0), so the module will > probably not work on 10.1. Since you are compiling a custom kernel, you > should probably build VirtualBox from source to get an exactly matched > kernel module, and see if that solves your issues. > > I just tried with GENERIC and everything works. I don't know why I expected a normal module to work with a VIMAGE kernel since VIMAGE modules are erm... virtualized:) What I really wonder now is whether I could somehow avoid having to install the ports tree for a single port. Something like, a package that contains the source of the VirtualBox module which one could build. Or virtualbox-ose-kmod-vnet package:) Thoughts? From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 4 23:29:57 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3225DEC for ; Tue, 4 Nov 2014 23:29:57 +0000 (UTC) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E6F4114 for ; Tue, 4 Nov 2014 23:29:57 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id n15so1849654lbi.32 for ; Tue, 04 Nov 2014 15:29:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kBzXuK0BWnEvzNL2ruOtDRa8RoSBGjsbaiwR2rQoIMc=; b=abpljb+nlQtQxntOjGjVH6Z4ni7t1usuv2IaV/lItcw4zBez6cdBjOZ5uX7Y0/pu3x /trXZm2F3FHHQcthSEdrKudUhKNKn5gSmueh5Y0oa/Pc4tUh+hNl/bGVmdWT+wylRJrP vPy18piaVRGQFP5pKt7SgiRMsf8fPwJ84i+SRldF1j89z0hv5SIqcoAtU25/CRErMcWA P5XQLs1fG7JNNwgv6g2Vj2yZZ4rXiWikFRrTKgruVP54LspaS5Ozreqw9MlYTfx8IqZj O64zcySFwzCRkjb/V6/mZ76aCYZCFFTvRGjKfhNZl/96Pi2jZottgv7jA6pBXosRmq1s U+Aw== MIME-Version: 1.0 X-Received: by 10.152.29.8 with SMTP id f8mr63033189lah.56.1415143795201; Tue, 04 Nov 2014 15:29:55 -0800 (PST) Received: by 10.152.6.138 with HTTP; Tue, 4 Nov 2014 15:29:55 -0800 (PST) In-Reply-To: <54595CB9.1050907@gmx.com> References: <5458F7ED.4030205@gmx.com> <54590971.9080800@freebsd.org> <54595CB9.1050907@gmx.com> Date: Tue, 4 Nov 2014 18:29:55 -0500 Message-ID: Subject: Re: VIMAGE and VirtualBox networking question From: Manas Bhatnagar To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 04 Nov 2014 23:29:57 -0000 > > >> > I just tried with GENERIC and everything works. I don't know why I > expected a normal module to work with a VIMAGE kernel since VIMAGE modules > are erm... virtualized:) > > What I really wonder now is whether I could somehow avoid having to > install the ports tree for a single port. Something like, a package that > contains the source of the VirtualBox module which one could build. > > Or virtualbox-ose-kmod-vnet package:) > > Thoughts? Install ports tree in a temporary location (another computer or something), grab the required folder and move it to the computer that you want to install the port on and do 'make install clean' ? probably won't work like that, you would need to make sure the directories for dependencies are there too :o) From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 5 00:40:40 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9255E0E for ; Wed, 5 Nov 2014 00:40:39 +0000 (UTC) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB5C3BC0 for ; Wed, 5 Nov 2014 00:40:39 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id m20so12123529qcx.27 for ; Tue, 04 Nov 2014 16:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=EpCjtSZLLRkXS1oFQuVhjwi+Mrb0r7MpbmJwXI4ujvs=; b=YFmt17xfgl3oEIWWiQrxg6AyujYHfnGDcu1REOU+Au/ORwHcjk/361qKZ2/w3YBzHW R2y4Zdk+ldngwROtennNqihSiitXmErrodG+W95B6ARp9ElBAMVpGgZ1tY+dUfPxKk5t q1gOmqUjjMGXVq5on1KaEVsz9iSGJsaz9lEAutd8oeM9OFtwmFek9QMHl4hq6xvznu6m bKiaZVHenVozMFVNYqqoKaCOxb0cPIAmgIOHRL0U+yl6VZC8+cfQYCVmm2sKGDkg4sbs gEQ8eV55KGwNKrVZtAzP3LXhLkHfbsINBXSsUnUPRQFgkSif0hVRzMiCVH4ostfT+J9p q8gQ== MIME-Version: 1.0 X-Received: by 10.140.92.134 with SMTP id b6mr45927931qge.25.1415148038824; Tue, 04 Nov 2014 16:40:38 -0800 (PST) Received: by 10.96.131.71 with HTTP; Tue, 4 Nov 2014 16:40:38 -0800 (PST) Date: Wed, 5 Nov 2014 09:40:38 +0900 Message-ID: Subject: bhyveload Will not support i386 root on zfs vm ? please help.. From: =?UTF-8?B?7Jik64+Z7ISx?= To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Nov 2014 00:40:40 -0000 I've tried install i386 vm and that didn't work Thanks for any help BHYVE : FreeBSD 10.1 RC4 AMD64 (root on zfs) FreeBSD 10.1 RC4 AMD64 --------------------------------------------------------------------------------------------------- root@bhyve:/data # /usr/sbin/bhyveload -m 1024 -d ./test_amd64.img test_amd64 Consoles: userboot FreeBSD/amd64 User boot, Revision 1.1 (root@releng1.nyi.freebsd.org, Fri Oct 31 08:44:21 UTC 2014) Loading /boot/defaults/loader.conf /boot/kernel/kernel text=0xf8e3d8 data=0x124a30+0x2055c0 syms=[0x8+0x140508+0x8+0x15aeea] /boot/kernel/zfs.ko size 0x267f50 at 0x1955000 loading required module 'opensolaris' /boot/kernel/opensolaris.ko size 0x6778 at 0x1bbd000 ....... booting complete !! FreeBSD 10.1 RC4 i386 -------------------------------------------------------------------------------------------------------- root@bhyve:/data # /usr/sbin/bhyveload -m 1024 -d ./test.img test_i386 Consoles: userboot FreeBSD/amd64 User boot, Revision 1.1 (root@releng1.nyi.freebsd.org, Fri Oct 31 08:44:21 UTC 2014) Loading /boot/defaults/loader.conf /boot/kernel/kernel text=0xf352ce data=0xda2a0+0x162f60 syms=[0x4+0xd52c0+0x4+0x15ae64] /boot/kernel/zfs.ko text=0x181bf4 data=0x9420+0x14e78 syms=[0x4+0x10c40+0x4+0x16e67] loading required module 'ELF ' | Booting [/boot/kernel/kernel]... ........... Trying to mount root from zfs:test []... Mounting from zfs:test failed with error 2: unknown file system. Loader variables: vfs.root.mountfrom=zfs:test Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/acd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot> panic: mountroot: unable to (re-)mount root. cpuid = 0 KDB: stack backtrace: #0 0xc0b53ed2 at kdb_backtrace+0x52 #1 0xc0b1688f at panic+0x11f #2 0xc0bb9e1b at vfs_mountroot+0x1ffb #3 0xc0ac043e at start_init+0x5e #4 0xc0ae47a3 at fork_exit+0xa3 #5 0xc1004d54 at fork_trampoline+0x8 From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 5 01:27:44 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 83CE5C61 for ; Wed, 5 Nov 2014 01:27:44 +0000 (UTC) Received: from mailer.gewt.net (mailer.gewt.net [198.27.113.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DCB23C6 for ; Wed, 5 Nov 2014 01:27:44 +0000 (UTC) Received: from cpe-65-24-235-132.insight.res.rr.com ([65.24.235.132] helo=meaghan.gimme-sympathy.org) by mailer.gewt.net with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84 (FreeBSD)) (envelope-from ) id 1XloqA-0009Hm-6b for freebsd-virtualization@freebsd.org; Tue, 04 Nov 2014 19:52:50 -0500 Date: Tue, 4 Nov 2014 19:52:49 -0500 (EST) From: Cory Smelosky X-X-Sender: csmelosky@meaghan.gimme-sympathy.org cc: freebsd-virtualization@freebsd.org Subject: Re: bhyveload Will not support i386 root on zfs vm ? please help.. In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DFB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: b4@mailer.gewt.net X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Nov 2014 01:27:44 -0000 On Wed, 5 Nov 2014, ??? wrote: > FreeBSD 10.1 RC4 i386 > -------------------------------------------------------------------------------------------------------- > > root@bhyve:/data # /usr/sbin/bhyveload -m 1024 -d ./test.img test_i386 > Consoles: userboot > > FreeBSD/amd64 User boot, Revision 1.1 > (root@releng1.nyi.freebsd.org, Fri Oct 31 08:44:21 UTC 2014) > Loading /boot/defaults/loader.conf > /boot/kernel/kernel text=0xf352ce data=0xda2a0+0x162f60 > syms=[0x4+0xd52c0+0x4+0x15ae64] > /boot/kernel/zfs.ko text=0x181bf4 data=0x9420+0x14e78 > syms=[0x4+0x10c40+0x4+0x16e67] > loading required module 'ELF ' > | > Booting [/boot/kernel/kernel]... > ........... This boot did not load opensolaris.ko...I'd take a chance on that being the problem. -- Cory Smelosky http://gewt.net Personal stuff http://gimme-sympathy.org Projects From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 5 11:04:27 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AF8B83A7 for ; Wed, 5 Nov 2014 11:04:27 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4802F7CD for ; Wed, 5 Nov 2014 11:04:27 +0000 (UTC) Received: from portis.head.local ([109.193.229.18]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MLelb-1XlhXP27rX-000qfT; Wed, 05 Nov 2014 12:04:24 +0100 Message-ID: <545A0437.6050901@gmx.com> Date: Wed, 05 Nov 2014 12:04:23 +0100 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Manas Bhatnagar , freebsd-virtualization@freebsd.org Subject: Re: VIMAGE and VirtualBox networking question References: <5458F7ED.4030205@gmx.com> <54590971.9080800@freebsd.org> <54595CB9.1050907@gmx.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:F3ZhXX7g16ZpgwzfFrTRDfWpZHMpCiVyyCWfUkP2ICfH7OfUEPj uW0zIyZPBbRykiqfZ5EjXiDOBMEATLvReiaGzPhQHiU+buvGk7h85WNBAXpYSqrNAx9zH8p FkAB9UtKn2R1kSACYmzF0JwYV8xD8mRsQn/l+RZ8D1GdldBgbnHPCuE1wpGFDxJfd1Z0ltj ExZNSiB11I/EA937slNnQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Nov 2014 11:04:27 -0000 On 11/05/14 00:29, Manas Bhatnagar wrote: > Install ports tree in a temporary location (another computer or something), > grab the required folder and move it to the computer that you want to > install the port on and do 'make install clean' ? probably won't work like > that, you would need to make sure the directories for dependencies are > there too :o) Tried to do this with a full ports tree and I stopped it after gcc started to build. I will try to create a port and submit to the port people. Soonish... Nikos From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 5 22:32:30 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A5097304 for ; Wed, 5 Nov 2014 22:32:30 +0000 (UTC) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.allbsd.org", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 343571A5 for ; Wed, 5 Nov 2014 22:32:30 +0000 (UTC) Received: from alph.d.allbsd.org ([IPv6:2001:2f0:104:e010:862b:2bff:febc:8956]) (authenticated bits=56) by mail.allbsd.org (8.14.9/8.14.8) with ESMTP id sA5MW4UW043125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 6 Nov 2014 07:32:15 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.9/8.14.8) with ESMTP id sA5MW2IA004143 for ; Thu, 6 Nov 2014 07:32:04 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Thu, 06 Nov 2014 07:31:31 +0900 (JST) Message-Id: <20141106.073131.1811725327096373192.hrs@allbsd.org> To: freebsd-virtualization@freebsd.org Subject: centos 4 bhyve guest From: Hiroki Sato X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.6 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Thu_Nov__6_07_31_31_2014_212)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mail.allbsd.org [IPv6:2001:2f0:104:e001::32]); Thu, 06 Nov 2014 07:32:23 +0900 (JST) X-Spam-Status: No, score=-96.9 required=13.0 tests=CONTENT_TYPE_PRESENT, FAKEDWORD_ONE, FAKEDWORD_VERTICALLINE, RDNS_NONE, SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Nov 2014 22:32:30 -0000 ----Security_Multipart(Thu_Nov__6_07_31_31_2014_212)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Does anyone have an experience on booting CentOS 4 as a bhyve guest? I want to convert one of my very old servers which requires CentOS4 because of commercial software to a virtual machine, but I got the following error when I tried to boot CentOS-4.8-x86_64-bin1of5.iso: --- reason VMX rip 0x0000000000100080 inst_length 7 status 0 exit_reason 2 qualification 0x0000000000000000 inst_type 0 inst_error 0 Abort trap --- I am using the following command line and grub2-bhyve-0.24. It is one that is working well for CentOS6 on 10-STABLE: # bhyve -AI -H -P \ -s 0:0,hostbridge \ -s 1:0,lpc \ -s 2:0,virtio-net,tap2 \ -s 3:0,virtio-blk,./system.img \ -s 4:0,ahci-cd,./CentOS-4.8-x86_64-bin1of5.iso \ -l com1,stdio \ -c 1 \ -m 1G \ centos4 -- Hiroki ----Security_Multipart(Thu_Nov__6_07_31_31_2014_212)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlRapUMACgkQTyzT2CeTzy11ugCgl+ClAABWw8wbChPNAZg2MXt2 AVQAoN4HgCIi4VHR9bTBf0FGhXuNrnpM =yrgM -----END PGP SIGNATURE----- ----Security_Multipart(Thu_Nov__6_07_31_31_2014_212)---- From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 5 22:46:03 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 778B7A32; Wed, 5 Nov 2014 22:46:03 +0000 (UTC) Received: from mail.nomadlogic.org (mail.nomadlogic.org [IPv6:2607:f2f8:a098::4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5E0B7324; Wed, 5 Nov 2014 22:46:03 +0000 (UTC) Received: from mail.nomadlogic.org (localhost [127.0.0.1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.nomadlogic.org (Postfix) with ESMTPS id 502F0125EBA; Wed, 5 Nov 2014 14:46:02 -0800 (PST) Received: from pop.rubicorp.com (unknown [72.34.113.100]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.nomadlogic.org (Postfix) with ESMTPSA id 3F99C125EAF; Wed, 5 Nov 2014 14:46:02 -0800 (PST) Message-ID: <545AA8A9.5030002@nomadlogic.org> Date: Wed, 05 Nov 2014 14:46:01 -0800 From: Pete Wright User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Hiroki Sato , freebsd-virtualization@freebsd.org Subject: Re: centos 4 bhyve guest References: <20141106.073131.1811725327096373192.hrs@allbsd.org> In-Reply-To: <20141106.073131.1811725327096373192.hrs@allbsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Nov 2014 22:46:03 -0000 On 11/05/14 14:31, Hiroki Sato wrote: > Hi, > > Does anyone have an experience on booting CentOS 4 as a bhyve guest? I believe only CentOS-6.x and newer are currently supported. I am in a similar predicament where I'd like to port some development CentOS5.x systems and am unable to. I'd be keen to learn what issues exist preventing this and see if I can help in any way to get older CentOS systems supported. cheers, -pete -- Pete Wright pete@nomadlogic.org twitter => @nomadlogicLA From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 6 01:42:38 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D1106D2; Thu, 6 Nov 2014 01:42:38 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 20F68A57; Thu, 6 Nov 2014 01:42:37 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id 898EF123F4; Thu, 6 Nov 2014 11:42:36 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BZM47408 (AUTH peterg@ptree32.com.au); Thu, 6 Nov 2014 11:42:35 +1000 Message-ID: <545AD209.1000907@freebsd.org> Date: Wed, 05 Nov 2014 17:42:33 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Hiroki Sato Subject: Re: centos 4 bhyve guest References: <20141106.073131.1811725327096373192.hrs@allbsd.org> In-Reply-To: <20141106.073131.1811725327096373192.hrs@allbsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 06 Nov 2014 01:42:38 -0000 > Does anyone have an experience on booting CentOS 4 as a bhyve guest? > I want to convert one of my very old servers which requires CentOS4 > because of commercial software to a virtual machine, but I got the > following error when I tried to boot CentOS-4.8-x86_64-bin1of5.iso: Just tried that ISO and got the same result (a triple-fault). I'll look into it. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 6 05:20:33 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5CC93456; Thu, 6 Nov 2014 05:20:33 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 200AF37E; Thu, 6 Nov 2014 05:20:32 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id 9252A12433; Thu, 6 Nov 2014 15:20:30 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BZM64204 (AUTH peterg@ptree32.com.au); Thu, 6 Nov 2014 15:20:29 +1000 Message-ID: <545B051B.8050505@freebsd.org> Date: Wed, 05 Nov 2014 21:20:27 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Pete Wright Subject: Re: centos 4 bhyve guest References: <20141106.073131.1811725327096373192.hrs@allbsd.org> <545AA8A9.5030002@nomadlogic.org> In-Reply-To: <545AA8A9.5030002@nomadlogic.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 06 Nov 2014 05:20:33 -0000 > I believe only CentOS-6.x and newer are currently supported. I am in a > similar predicament where I'd like to port some development CentOS5.x > systems and am unable to. With CentOS 5.11 it's possible to get some early kernel output by setting the "earlyprintk=serial" kernel command-line option. But, this disappears when the switchover to the main console happens. > I'd be keen to learn what issues exist preventing this and see if I can > help in any way to get older CentOS systems supported. I suspect that Centos 5 does boot, but without console output there's not much that can be done :( It might need some Linux kernel builds and insertion of debug to work out why the console settings from grub aren't being used. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 6 06:52:18 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B9C40223 for ; Thu, 6 Nov 2014 06:52:18 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 7C90FDBE for ; Thu, 6 Nov 2014 06:52:18 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id 44AFA124ED; Thu, 6 Nov 2014 16:52:11 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BZM70287 (AUTH peterg@ptree32.com.au); Thu, 6 Nov 2014 16:52:10 +1000 Message-ID: <545B1A98.9070808@freebsd.org> Date: Wed, 05 Nov 2014 22:52:08 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: =?UTF-8?B?7Jik64+Z7ISx?= Subject: Re: bhyveload Will not support i386 root on zfs vm ? please help.. References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 06 Nov 2014 06:52:18 -0000 Hi, This looks to be a problem in userboot's handling of module dependencies on i386. On amd64: > /boot/kernel/zfs.ko size 0x267f50 at 0x1955000 > loading required module 'opensolaris' .. while on i386 the dependency isn't found, resulting in the opensolaris module not being loaded: > /boot/kernel/zfs.ko text=0x181bf4 data=0x9420+0x14e78 > syms=[0x4+0x10c40+0x4+0x16e67] > loading required module 'ELF ' I'd hazard a guess this is a 64-bit issue since 'lsmod' for an i386 kernel doesn't work from the (64-bit) bhyveload prompt. I'll take a closer look at the code. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 6 19:52:38 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 46CB37C3 for ; Thu, 6 Nov 2014 19:52:38 +0000 (UTC) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BCF0CEDD for ; Thu, 6 Nov 2014 19:52:37 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id n15so1524281lbi.4 for ; Thu, 06 Nov 2014 11:52:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=rU3XkV+BU69Hsbvtse1Ou3yfFxDHmamS0+VIa88jnPE=; b=RmT+cCVo5vTjnwoiq1c1beI3mKQNuP1/NPjR583D7Vb8HVtjGjDnpm9PImH4Pxy/Fy uj7LUKsrDZcMjaa/40J9flvw7feIhVjRS5Qs3/3RjmIcxVxHknQPZYdV52KKpgeXSd0P E303GUa+yxbce1zoklqMs5rgESz+0We4ce/3OeI7/6ZCHQPBmB6Zvu3OTtLJ/Tn8FHHH T0fAk4Y4MorELwb7Q2N2LB9FaRj3nstHnagjywU8u7k1JFfMGPm10jIw2xVjvJtApgtJ Wxje6uHHrBPw9fZtkKVWHmA2+ePZ5nVwV5SzcggBxVP56eipd6a4JiQYkV51zaX/Ujkg uVrQ== MIME-Version: 1.0 X-Received: by 10.112.16.39 with SMTP id c7mr6932079lbd.19.1415303555205; Thu, 06 Nov 2014 11:52:35 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.130.168 with HTTP; Thu, 6 Nov 2014 11:52:35 -0800 (PST) Date: Thu, 6 Nov 2014 11:52:35 -0800 X-Google-Sender-Auth: fVJ0ABY_2cspi3aFnx3-Zvyzve0 Message-ID: Subject: Booting a bhyve VM with NFS root? From: Craig Rodrigues To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 06 Nov 2014 19:52:38 -0000 Hi, Has anyone tried the following: (1) Create a disk image, which only has the contents of the /boot directory and /etc/fstab. (2) /etc/fstab should specify the root file system over NFS (3) Boot the disk image in bhyve. The loader will parse /etc/fstab, and it will also load the kernel and boot it. When the kernel boots it will mount the root file system over NFS. For a real system running with a BIOS, PXE can be used for a lot of this: https://www.freebsd.org/doc/handbook/network-diskless.html The pxeldr populates some kernel environment variables which are then used to mount a root file system: https://svnweb.freebsd.org/base/head/sys/nfs/nfs_diskless.c?revision=273174&view=markup#l145 Has anyone tried manually specifying these variables via the "bhyveload -e" arguments, and forcing the VM to mount its root file system over NFS? This would be handy for very quickly test booting a new buildworld. -- Craig From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 6 22:06:05 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E20E7E46; Thu, 6 Nov 2014 22:06:05 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id A4704146; Thu, 6 Nov 2014 22:06:05 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id 65B11126D9; Fri, 7 Nov 2014 08:06:03 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BZM94399 (AUTH peterg@ptree32.com.au); Fri, 7 Nov 2014 08:06:02 +1000 Message-ID: <545BF0C8.8030902@freebsd.org> Date: Thu, 06 Nov 2014 14:06:00 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Craig Rodrigues Subject: Re: Booting a bhyve VM with NFS root? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 06 Nov 2014 22:06:06 -0000 Hi Craig, > Has anyone tried manually specifying these variables > via the "bhyveload -e" arguments, and forcing the VM to mount its root file > system over NFS? I tried something like this on bare metal a long while back: the issue there was getting the handle for the exported root area, though if you're able to allow NFSv2 mounts on the server (I wasn't), it looks like that info can be skipped. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Fri Nov 7 17:26:28 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF4DFA6C for ; Fri, 7 Nov 2014 17:26:28 +0000 (UTC) Received: from st11p02mm-asmtp001.mac.com (st11p02mm-asmtp001.mac.com [17.172.220.236]) (using TLSv1 with cipher DES-CBC3-SHA (112/168 bits)) (Client CN "smtp.me.com", Issuer "VeriSign Class 3 Extended Validation SSL SGC CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A647A23E for ; Fri, 7 Nov 2014 17:26:28 +0000 (UTC) Received: from [172.29.12.189] (unknown [66.129.239.12]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <0NEO0096QJ3VWN80@st11p02mm-asmtp001.mac.com> for virtualization@freebsd.org; Fri, 07 Nov 2014 17:26:21 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.28,0.0.0000 definitions=2014-11-07_08:2014-11-07,2014-11-07,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1408290000 definitions=main-1411070143 From: Marcel Moolenaar Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Subject: [current] bhyve under VMware borked? Message-id: <3054C397-B9F4-44A7-8D71-FF83CB058671@mac.com> Date: Fri, 07 Nov 2014 09:26:19 -0800 To: virtualization@freebsd.org MIME-version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) X-Mailer: Apple Mail (2.1990.1) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Nov 2014 17:26:28 -0000 All, With FreeBSD-current I can't load vmm.ko when running FreeBSD under VMware. I get: vmx_init: processor does not support desired exit controls module_register_init: MOD_LOAD (vmm, 0xffffffff81014130, 0) error 22 There's a distinct change between -stable and -current in this respect. -stable has a fallback that that -current doesn't have anymore. Any reason why the fallback was removed? Do we need PAT-related exit controls to make vmm work? Thanks, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-virtualization@FreeBSD.ORG Fri Nov 7 18:57:24 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2EA42FE4 for ; Fri, 7 Nov 2014 18:57:24 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id E6A3DD28 for ; Fri, 7 Nov 2014 18:57:23 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id A2A981279D; Sat, 8 Nov 2014 04:57:21 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BZN64352 (AUTH peterg@ptree32.com.au); Sat, 8 Nov 2014 04:57:20 +1000 Message-ID: <545D160E.7060208@freebsd.org> Date: Fri, 07 Nov 2014 10:57:18 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Marcel Moolenaar Subject: Re: [current] bhyve under VMware borked? References: <3054C397-B9F4-44A7-8D71-FF83CB058671@mac.com> In-Reply-To: <3054C397-B9F4-44A7-8D71-FF83CB058671@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Nov 2014 18:57:24 -0000 Hi Marcel, What version of VMWare and host are you using ? > Any reason why the fallback was removed? Do we need PAT-related > exit controls to make vmm work? I saw the problem with a beta version of Fusion 5. It went away with the release version, and we made the perhaps wrong assumption that it was no longer an issue. It's easy to put that change back. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Fri Nov 7 20:50:27 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5497864A; Fri, 7 Nov 2014 20:50:27 +0000 (UTC) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 344D8B65; Fri, 7 Nov 2014 20:50:26 +0000 (UTC) Received: from [172.29.12.189] ([66.129.239.12]) (authenticated bits=0) by mail.xcllnt.net (8.14.9/8.14.9) with ESMTP id sA7KoJuG090850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 Nov 2014 12:50:20 -0800 (PST) (envelope-from marcel@xcllnt.net) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: [current] bhyve under VMware borked? From: Marcel Moolenaar In-Reply-To: <545D160E.7060208@freebsd.org> Date: Fri, 7 Nov 2014 12:50:13 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3054C397-B9F4-44A7-8D71-FF83CB058671@mac.com> <545D160E.7060208@freebsd.org> To: Peter Grehan X-Mailer: Apple Mail (2.1990.1) Cc: virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Nov 2014 20:50:27 -0000 [Changing my email address...] > On Nov 7, 2014, at 10:57 AM, Peter Grehan wrote: >=20 > Hi Marcel, >=20 > What version of VMWare and host are you using ? This is VMware Fusion 6.0.5 (2209127) running on Mac OS X 10.10. >=20 >> Any reason why the fallback was removed? Do we need PAT-related >> exit controls to make vmm work? >=20 > I saw the problem with a beta version of Fusion 5. It went away with = the release version, and we made the perhaps wrong assumption that it = was no longer an issue. >=20 > It's easy to put that change back. Ok. If we don't depend on PAT-related exits, then I definitely would appreciate preserving the -stable behaviour. Maybe we should not check for the PAT-related exists in the first place? I mean if we don't need them or depend on them to be there at all... --=20 Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 8 00:37:54 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76876900 for ; Sat, 8 Nov 2014 00:37:54 +0000 (UTC) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E89F27D for ; Sat, 8 Nov 2014 00:37:54 +0000 (UTC) Received: by mail-pd0-f181.google.com with SMTP id y10so4219851pdj.26 for ; Fri, 07 Nov 2014 16:37:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=v73WPKiCfEph7/SdkU8c3KmqHG3puTXxdds/JyIPljg=; b=IWRwHqcJDav3scj/pT0iR22SVbFzt68Hxx0SyENgg05RZVJ4ju9MExAiC4klH4X3UY TN+L/uMWQpnSdpnfI2kSM0iOYHz4M9ZlhMLBVagOsmmKiWK61OFMPf8B3rZ8sRkYP3q6 SHO0JPYLNA0gVLju482mRewdN7dnxHJmfYlOXLy3RcHu/FFgmBGOKZEiWSD+DeoydDfZ YtTKTdKX3jS8yVfIFJYAc1eEazFN59F5dygIEcbKAgUraMBGkrQJz4J7IAGJVjKw7iMq BxfwjeQ+0CYAGUM5Z/VO0DpPz+AVFS5cZ6E1P2tOSJJqYkVKsdNLd/khJnwGMcU9e2Jr X8yA== X-Gm-Message-State: ALoCoQmSkMaq+1uDqym45FPJcIC3tLnlJGbmVH+oXbblRGd/ldB6ZIn0P6d8zOs9BxwGJkakRZFD X-Received: by 10.68.57.199 with SMTP id k7mr15835214pbq.80.1415406588393; Fri, 07 Nov 2014 16:29:48 -0800 (PST) Received: from Michaels-MacBook-Pro.local (c-98-246-202-204.hsd1.or.comcast.net. [98.246.202.204]) by mx.google.com with ESMTPSA id c1sm9843509pbu.23.2014.11.07.16.29.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Nov 2014 16:29:47 -0800 (PST) Message-ID: <545D63F9.3000501@callfortesting.org> Date: Fri, 07 Nov 2014 16:29:45 -0800 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Marcel Moolenaar , Peter Grehan Subject: Re: [current] bhyve under VMware borked? References: <3054C397-B9F4-44A7-8D71-FF83CB058671@mac.com> <545D160E.7060208@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 08 Nov 2014 00:37:54 -0000 On 11/7/14 12:50 PM, Marcel Moolenaar wrote: > This is VMware Fusion 6.0.5 (2209127) running on Mac OS X 10.10. Just in case: Have you selected "Enable hypervisor applications in this virtual machine" in the Processors: Advanced options settings? Michael From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 8 03:22:33 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF97A515; Sat, 8 Nov 2014 03:22:33 +0000 (UTC) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BCE6A3CC; Sat, 8 Nov 2014 03:22:33 +0000 (UTC) Received: from [10.157.22.46] (mobile-166-170-041-126.mycingular.net [166.170.41.126] (may be forged)) (authenticated bits=0) by mail.xcllnt.net (8.14.9/8.14.9) with ESMTP id sA83MOJa092032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 Nov 2014 19:22:28 -0800 (PST) (envelope-from marcel@xcllnt.net) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Marcel Moolenaar Mime-Version: 1.0 (1.0) Date: Fri, 7 Nov 2014 19:21:09 -0800 Message-Id: Subject: Re: [current] bhyve under VMware borked? References: <3054C397-B9F4-44A7-8D71-FF83CB058671@mac.com> <545D160E.7060208@freebsd.org> <545D63F9.3000501@callfortesting.org> In-Reply-To: <545D63F9.3000501@callfortesting.org> To: Michael Dexter X-Mailer: iPhone Mail (12B411) Cc: "virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 08 Nov 2014 03:22:34 -0000 >> On Nov 7, 2014, at 4:29 PM, Michael Dexter wr= ote: >>=20 >> On 11/7/14 12:50 PM, Marcel Moolenaar wrote: >> This is VMware Fusion 6.0.5 (2209127) running on Mac OS X 10.10. >=20 > Just in case: Have you selected "Enable hypervisor applications in this vi= rtual machine" in the Processors: Advanced options settings? >=20 > Michael Yes. Reverting the change Peter talked about fixed it for me. --=20 Marcel (mobile)= From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 8 17:57:21 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AFC629CE for ; Sat, 8 Nov 2014 17:57:21 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 718E1A0A for ; Sat, 8 Nov 2014 17:57:21 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id E9CC81248B; Sun, 9 Nov 2014 03:57:13 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local (c-67-161-27-37.hsd1.ca.comcast.net [67.161.27.37]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BZP03625 (AUTH peterg@ptree32.com.au); Sun, 9 Nov 2014 03:57:12 +1000 Message-ID: <545E5978.2010900@freebsd.org> Date: Sat, 08 Nov 2014 09:57:12 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Marcel Moolenaar Subject: Re: [current] bhyve under VMware borked? References: <3054C397-B9F4-44A7-8D71-FF83CB058671@mac.com> <545D160E.7060208@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 08 Nov 2014 17:57:21 -0000 Hi Marcel, >> What version of VMWare and host are you using ? > > This is VMware Fusion 6.0.5 (2209127) running on Mac OS X 10.10. Ok, looks like the problem still exists in the wild :( Fusion 7 doesn't have this issue so there's always the upgrade option :) > Ok. If we don't depend on PAT-related exits, then I definitely would > appreciate preserving the -stable behaviour. Maybe we should not check > for the PAT-related exists in the first place? I mean if we don't need > them or depend on them to be there at all... bhyve does depend on h/w save/restore of the PAT MSR, and this is the case for all bare metal that is supported. For the nested case, bhyve used to trap/emulate PAT MSR accesses and not propagate them to the host. I'll look at resurrecting that code. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 8 19:15:50 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 06C03CAB; Sat, 8 Nov 2014 19:15:50 +0000 (UTC) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B8DA012F; Sat, 8 Nov 2014 19:15:48 +0000 (UTC) Received: from [192.168.2.20] (atc.xcllnt.net [50.0.150.213]) (authenticated bits=0) by mail.xcllnt.net (8.14.9/8.14.9) with ESMTP id sA8JFlBx095201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Nov 2014 11:15:47 -0800 (PST) (envelope-from marcel@xcllnt.net) Content-Type: multipart/mixed; boundary="Apple-Mail=_1431B85A-15BD-4EA8-83C5-6E64D4F7312B" Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: [current] bhyve under VMware borked? From: Marcel Moolenaar In-Reply-To: <545E5978.2010900@freebsd.org> Date: Sat, 8 Nov 2014 11:15:47 -0800 Message-Id: <67DF3123-2654-44F7-BF54-E758843DF354@xcllnt.net> References: <3054C397-B9F4-44A7-8D71-FF83CB058671@mac.com> <545D160E.7060208@freebsd.org> <545E5978.2010900@freebsd.org> To: Peter Grehan X-Mailer: Apple Mail (2.1990.1) Cc: virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 08 Nov 2014 19:15:50 -0000 --Apple-Mail=_1431B85A-15BD-4EA8-83C5-6E64D4F7312B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 > On Nov 8, 2014, at 9:57 AM, Peter Grehan wrote: >=20 > Fusion 7 doesn't have this issue so there's always the upgrade option = :) Good to know. >> Ok. If we don't depend on PAT-related exits, then I definitely would >> appreciate preserving the -stable behaviour. Maybe we should not = check >> for the PAT-related exists in the first place? I mean if we don't = need >> them or depend on them to be there at all... >=20 > bhyve does depend on h/w save/restore of the PAT MSR, and this is the = case for all bare metal that is supported. >=20 > For the nested case, bhyve used to trap/emulate PAT MSR accesses and = not propagate them to the host. I'll look at resurrecting that code. That would be great. As I said: stable/10 works just fine, BTW: Can you review the attached patch that moves disk support from bhyveload and bhyve into a new library called libvdsk. Once there, I plan to add support for VM image formats like vmdk, vhd, qcow, etc. For now, it's just moving the barebones support into the libary. Thanks, --=20 Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_1431B85A-15BD-4EA8-83C5-6E64D4F7312B Content-Disposition: attachment; filename=libvdsk.diff Content-Type: application/octet-stream; name="libvdsk.diff" Content-Transfer-Encoding: 7bit Index: lib/Makefile =================================================================== --- lib/Makefile (revision 274256) +++ lib/Makefile (working copy) @@ -105,6 +105,7 @@ ${_libusbhid} \ ${_libusb} \ libutil \ + libvdsk \ ${_libvgl} \ ${_libvmmapi} \ libwrap \ Index: lib/libvdsk/Makefile =================================================================== --- lib/libvdsk/Makefile (revision 0) +++ lib/libvdsk/Makefile (working copy) @@ -0,0 +1,7 @@ +# $FreeBSD$ + +LIB= vdsk +SRCS= vdsk.c +INCS= vdsk.h + +.include Property changes on: lib/libvdsk/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: lib/libvdsk/vdsk.c =================================================================== --- lib/libvdsk/vdsk.c (revision 0) +++ lib/libvdsk/vdsk.c (working copy) @@ -0,0 +1,150 @@ +/*- + * Copyright (c) 2014 Marcel Moolenaar + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "vdsk_int.h" + +static struct vdsk * +vdsk_deref(vdskctx ctx) +{ + struct vdsk *vdsk = ctx; + + return (vdsk - 1); +} + +vdskctx +vdsk_open(const char *path, int flags, size_t size) +{ + struct stat sb; + struct vdsk *vdsk; + + size += sizeof(struct vdsk); + vdsk = malloc(size); + if (vdsk == NULL) + return (NULL); + + vdsk->fd = open(path, flags); + if (vdsk->fd == -1) { + free(vdsk); + return (NULL); + } + + if (fstat(vdsk->fd, &sb) == -1) { + close(vdsk->fd); + free(vdsk); + return (NULL); + } + + if (S_ISCHR(sb.st_mode)) { + if (ioctl(vdsk->fd, DIOCGMEDIASIZE, &vdsk->capacity) < 0 || + ioctl(vdsk->fd, DIOCGSECTORSIZE, &vdsk->sectorsize) < 0) { + close(vdsk->fd); + free(vdsk); + return (NULL); + } + } else { + vdsk->capacity = sb.st_size; + vdsk->sectorsize = DEV_BSIZE; + } + return (vdsk + 1); +} + +int +vdsk_close(vdskctx ctx) +{ + struct vdsk *vdsk = vdsk_deref(ctx); + + close(vdsk->fd); + free(vdsk); + return (0); +} + +off_t +vdsk_capacity(vdskctx ctx) +{ + struct vdsk *vdsk = vdsk_deref(ctx); + + return (vdsk->capacity); +} + +int +vdsk_sectorsize(vdskctx ctx) +{ + struct vdsk *vdsk = vdsk_deref(ctx); + + return (vdsk->sectorsize); +} + +ssize_t +vdsk_read(vdskctx ctx, void *buf, size_t nbytes, off_t offset) +{ + struct vdsk *vdsk = vdsk_deref(ctx); + ssize_t res; + + res = pread(vdsk->fd, buf, nbytes, offset); + return (res); +} + +ssize_t +vdsk_readv(vdskctx ctx, const struct iovec *iov, int iovcnt, off_t offset) +{ + struct vdsk *vdsk = vdsk_deref(ctx); + ssize_t res; + + res = preadv(vdsk->fd, iov, iovcnt, offset); + return (res); +} + +ssize_t +vdsk_writev(vdskctx ctx, const struct iovec *iov, int iovcnt, off_t offset) +{ + struct vdsk *vdsk = vdsk_deref(ctx); + ssize_t res; + + res = pwritev(vdsk->fd, iov, iovcnt, offset); + return (res); +} + +int +vdsk_flush(vdskctx ctx __unused) +{ + + return (0); +} + Property changes on: lib/libvdsk/vdsk.c ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: lib/libvdsk/vdsk.h =================================================================== --- lib/libvdsk/vdsk.h (revision 0) +++ lib/libvdsk/vdsk.h (working copy) @@ -0,0 +1,50 @@ +/*- + * Copyright (c) 2014 Marcel Moolenaar + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef __VDSK_H__ +#define __VDSK_H__ + +#include +#include +#include + +typedef void *vdskctx; + +vdskctx vdsk_open(const char *, int, size_t); +int vdsk_close(vdskctx); + +off_t vdsk_capacity(vdskctx); +int vdsk_sectorsize(vdskctx); + +ssize_t vdsk_read(vdskctx, void *, size_t, off_t); +ssize_t vdsk_readv(vdskctx, const struct iovec *, int, off_t); +ssize_t vdsk_writev(vdskctx, const struct iovec *, int, off_t); + +int vdsk_flush(vdskctx); + +#endif /* __VDSK_H__ */ Property changes on: lib/libvdsk/vdsk.h ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: lib/libvdsk/vdsk_int.h =================================================================== --- lib/libvdsk/vdsk_int.h (revision 0) +++ lib/libvdsk/vdsk_int.h (working copy) @@ -0,0 +1,38 @@ +/*- + * Copyright (c) 2014 Marcel Moolenaar + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef __VDSK_INT_H__ +#define __VDSK_INT_H__ + +struct vdsk { + int fd; + int sectorsize; + off_t capacity; +}; + +#endif /* __VDSK_INT_H__ */ Property changes on: lib/libvdsk/vdsk_int.h ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: share/mk/bsd.libnames.mk =================================================================== --- share/mk/bsd.libnames.mk (revision 274256) +++ share/mk/bsd.libnames.mk (working copy) @@ -150,6 +150,7 @@ LIBULOG?= ${DESTDIR}${LIBDIR}/libulog.a LIBUTIL?= ${DESTDIR}${LIBDIR}/libutil.a LIBUUTIL?= ${DESTDIR}${LIBDIR}/libuutil.a +LIBVDSK?= ${DESTDIR}${LIBDIR}/libvdsk.a LIBVGL?= ${DESTDIR}${LIBDIR}/libvgl.a LIBVMMAPI?= ${DESTDIR}${LIBDIR}/libvmmapi.a LIBWIND?= ${DESTDIR}${LIBDIR}/libwind.a Index: usr.sbin/bhyve/Makefile =================================================================== --- usr.sbin/bhyve/Makefile (revision 274256) +++ usr.sbin/bhyve/Makefile (working copy) @@ -43,8 +43,8 @@ .PATH: ${.CURDIR}/../../sys/amd64/vmm SRCS+= vmm_instruction_emul.c -DPADD= ${LIBVMMAPI} ${LIBMD} ${LIBUTIL} ${LIBPTHREAD} -LDADD= -lvmmapi -lmd -lutil -lpthread +DPADD= ${LIBVDSK} ${LIBVMMAPI} ${LIBMD} ${LIBUTIL} ${LIBPTHREAD} +LDADD= -lvdsk -lvmmapi -lmd -lutil -lpthread WARNS?= 2 Index: usr.sbin/bhyve/block_if.c =================================================================== --- usr.sbin/bhyve/block_if.c (revision 274256) +++ usr.sbin/bhyve/block_if.c (working copy) @@ -45,6 +45,7 @@ #include #include #include +#include #include @@ -79,10 +80,7 @@ struct blockif_ctxt { int bc_magic; - int bc_fd; int bc_rdonly; - off_t bc_size; - int bc_sectsz; pthread_t bc_btid; pthread_mutex_t bc_mtx; pthread_cond_t bc_cond; @@ -176,18 +174,17 @@ switch (be->be_op) { case BOP_READ: - if (preadv(bc->bc_fd, br->br_iov, br->br_iovcnt, - br->br_offset) < 0) + if (vdsk_readv(bc, br->br_iov, br->br_iovcnt, + br->br_offset) < 0) err = errno; break; case BOP_WRITE: - if (bc->bc_rdonly) - err = EROFS; - else if (pwritev(bc->bc_fd, br->br_iov, br->br_iovcnt, - br->br_offset) < 0) + if (vdsk_writev(bc, br->br_iov, br->br_iovcnt, + br->br_offset) < 0) err = errno; break; case BOP_FLUSH: + err = vdsk_flush(bc); break; default: err = EINVAL; @@ -267,9 +264,7 @@ char tname[MAXCOMLEN + 1]; char *nopt, *xopts; struct blockif_ctxt *bc; - struct stat sbuf; - off_t size; - int extra, fd, i, sectsz; + int extra, i; int nocache, sync, ro; pthread_once(&blockif_once, blockif_init); @@ -300,51 +295,20 @@ if (sync) extra |= O_SYNC; - fd = open(nopt, (ro ? O_RDONLY : O_RDWR) | extra); - if (fd < 0 && !ro) { + bc = vdsk_open(nopt, (ro ? O_RDONLY : O_RDWR) | extra, sizeof(*bc)); + if (bc == NULL && !ro) { /* Attempt a r/w fail with a r/o open */ - fd = open(nopt, O_RDONLY | extra); + bc = vdsk_open(nopt, O_RDONLY | extra, sizeof(*bc)); ro = 1; } - if (fd < 0) { + if (bc == NULL) { perror("Could not open backing file"); return (NULL); } - if (fstat(fd, &sbuf) < 0) { - perror("Could not stat backing file"); - close(fd); - return (NULL); - } - - /* - * Deal with raw devices - */ - size = sbuf.st_size; - sectsz = DEV_BSIZE; - if (S_ISCHR(sbuf.st_mode)) { - if (ioctl(fd, DIOCGMEDIASIZE, &size) < 0 || - ioctl(fd, DIOCGSECTORSIZE, §sz)) { - perror("Could not fetch dev blk/sector size"); - close(fd); - return (NULL); - } - assert(size != 0); - assert(sectsz != 0); - } - - bc = calloc(1, sizeof(struct blockif_ctxt)); - if (bc == NULL) { - close(fd); - return (NULL); - } - bc->bc_magic = BLOCKIF_SIG; - bc->bc_fd = fd; bc->bc_rdonly = ro; - bc->bc_size = size; - bc->bc_sectsz = sectsz; pthread_mutex_init(&bc->bc_mtx, NULL); pthread_cond_init(&bc->bc_cond, NULL); TAILQ_INIT(&bc->bc_freeq); @@ -521,8 +485,7 @@ * Release resources */ bc->bc_magic = 0; - close(bc->bc_fd); - free(bc); + vdsk_close(bc); return (0); } @@ -541,7 +504,7 @@ assert(bc->bc_magic == BLOCKIF_SIG); - sectors = bc->bc_size / bc->bc_sectsz; + sectors = vdsk_capacity(bc) / vdsk_sectorsize(bc); /* Clamp the size to the largest possible with CHS */ if (sectors > 65535UL*16*255) @@ -584,7 +547,7 @@ { assert(bc->bc_magic == BLOCKIF_SIG); - return (bc->bc_size); + return (vdsk_capacity(bc)); } int @@ -592,7 +555,7 @@ { assert(bc->bc_magic == BLOCKIF_SIG); - return (bc->bc_sectsz); + return (vdsk_sectorsize(bc)); } int Index: usr.sbin/bhyve/xmsr.c =================================================================== --- usr.sbin/bhyve/xmsr.c (revision 274256) +++ usr.sbin/bhyve/xmsr.c (working copy) @@ -49,6 +49,9 @@ emulate_wrmsr(struct vmctx *ctx, int vcpu, uint32_t num, uint64_t val) { + if (num == MSR_PAT) + return 0; + if (cpu_vendor_intel) { switch (num) { case 0xd04: /* Sandy Bridge uncore PMCs */ Index: usr.sbin/bhyveload/Makefile =================================================================== --- usr.sbin/bhyveload/Makefile (revision 274256) +++ usr.sbin/bhyveload/Makefile (working copy) @@ -4,8 +4,8 @@ SRCS= bhyveload.c MAN= bhyveload.8 -DPADD+= ${LIBVMMAPI} ${LIBUTIL} -LDADD+= -lvmmapi -lutil +DPADD+= ${LIBVDSK} ${LIBVMMAPI} ${LIBUTIL} +LDADD+= -lvdsk -lvmmapi -lutil WARNS?= 3 Index: usr.sbin/bhyveload/bhyveload.c =================================================================== --- usr.sbin/bhyveload/bhyveload.c (revision 274256) +++ usr.sbin/bhyveload/bhyveload.c (working copy) @@ -79,7 +79,7 @@ #include #include #include - +#include #include #include "userboot.h" @@ -92,7 +92,7 @@ static char *host_base; static struct termios term, oldterm; -static int disk_fd[NDISKS]; +static vdskctx disk[NDISKS]; static int ndisks; static int consin_fd, consout_fd; @@ -290,9 +290,9 @@ { ssize_t n; - if (unit < 0 || unit >= ndisks ) + if (unit < 0 || unit >= ndisks) return (EIO); - n = pread(disk_fd[unit], to, size, from); + n = vdsk_read(disk[unit], to, size, from); if (n < 0) return (errno); *resid = size - n; @@ -302,7 +302,6 @@ static int cb_diskioctl(void *arg, int unit, u_long cmd, void *data) { - struct stat sb; if (unit < 0 || unit >= ndisks) return (EBADF); @@ -309,13 +308,10 @@ switch (cmd) { case DIOCGSECTORSIZE: - *(u_int *)data = 512; + *(u_int *)data = vdsk_sectorsize(disk[unit]); break; case DIOCGMEDIASIZE: - if (fstat(disk_fd[unit], &sb) == 0) - *(off_t *)data = sb.st_size; - else - return (ENOTTY); + *(off_t *)data = vdsk_capacity(disk[unit]); break; default: return (ENOTTY); @@ -607,21 +603,17 @@ static int disk_open(char *path) { - int err, fd; + vdskctx vdsk; - if (ndisks > NDISKS) + if (ndisks >= NDISKS) return (ERANGE); - err = 0; - fd = open(path, O_RDONLY); + vdsk = vdsk_open(path, O_RDONLY, 0); + if (vdsk == NULL) + return (errno); - if (fd > 0) { - disk_fd[ndisks] = fd; - ndisks++; - } else - err = errno; - - return (err); + disk[ndisks++] = vdsk; + return (0); } static void --Apple-Mail=_1431B85A-15BD-4EA8-83C5-6E64D4F7312B--