From owner-freebsd-virtualization@freebsd.org Sun Jul 31 12:19:09 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5469FBA2850 for ; Sun, 31 Jul 2016 12:19:09 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 2D282144A for ; Sun, 31 Jul 2016 12:19:08 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 63F5320369 for ; Sun, 31 Jul 2016 08:19:01 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sun, 31 Jul 2016 08:19:01 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=zyxst.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=WcG psooap5TQS8SCuJJGZMYP3X0=; b=HS2MziLqoIcBrG7k13QYeSwHUGNJqRd9DX1 22VT1b9VHA1Y5lB4UikZa23X1MAdM4iCEzjBbyI1Nrh/721kYcy7kbv+klwP72qY 3gfW91/ZXma+MdULk8HQC4zTYIloiD/KZJXVt+9rAT37olj4LRNIO/PEZ0hnoIvy VBYrUfW4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=WcGpsooap5TQS8SCuJJGZMYP3X0=; b=QgT0Y YBCkQKbLwAemsEeus1+xoRp9u3eooLlzOPJe+2FK0GuXTh/5OOp1cxaDNUDZg/iB mfdzteh/UX/tFmV3qd28/lwgOrcOmXWfwNlc0/LaZKhsd/LGa+nskykHm/RM9u38 PdDnpf4nY8PZWWIRlURF1YOft4xvAHxQdSiaH4= X-Sasl-enc: kCjoAIfzTi3NL77iQvUG9gisXcbCXhYJRjkSyTj66c3Q 1469967541 Received: from pumpkin.growveg.org (potato.growveg.org [82.70.91.102]) by mail.messagingengine.com (Postfix) with ESMTPA id E6AE0CCD88 for ; Sun, 31 Jul 2016 08:19:00 -0400 (EDT) To: freebsd-virtualization@freebsd.org From: tech-lists Subject: problems virtualizing ubuntu server 16.04 X-Enigmail-Draft-Status: N1110 Message-ID: <12e01dca-65b0-d6fb-0854-65c0201b3398@zyxst.net> Date: Sun, 31 Jul 2016 13:18:58 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2016 12:19:09 -0000 Hi, I prepare device.map and load grub the usual way: grub-bhyve -m ./device.map -r cd0 -M 4096M ubtest1604 and get a screen up that says: Install Ubuntu Server Install MAAS Region Controller Install MAAS Rack Controller Check disc for defects Rescue a broken system I select the first one and get this error: error: invalid magic number. error: you need to load the kernel first. Press any key to continue... ...and any key dumps me back to the same screen. I have to open another term and kill the process in order to exit this screen. For curiosity I tried all the others as well, same error. What am I doing wrong? Is ubuntu 16.04 too new for bhyve? freebsd host is 10.1-RELEASE #0 r275428 grub is grub2-bhyve-0.40 ports are at r419340 thanks, -- J. From owner-freebsd-virtualization@freebsd.org Sun Jul 31 17:27:43 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40EC5BA98DE for ; Sun, 31 Jul 2016 17:27:43 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 04AFD165A for ; Sun, 31 Jul 2016 17:27:42 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 2FB4020AC12B for ; Mon, 1 Aug 2016 03:27:26 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 278322804D8 for ; Mon, 1 Aug 2016 03:27:26 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iaHkBVaKAciA for ; Mon, 1 Aug 2016 03:27:26 +1000 (AEST) Received: from [192.168.1.169] (c-50-131-190-8.hsd1.ca.comcast.net [50.131.190.8]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 460CC2804D7; Mon, 1 Aug 2016 03:27:23 +1000 (AEST) Subject: Re: Bhyve To: kumara rathnavel , freebsd-virtualization@freebsd.org References: From: Peter Grehan Message-ID: Date: Sun, 31 Jul 2016 10:27:28 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=c5Dpel1l c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=KizCzvWM+ZNP07iIuOu4gA==:17 a=N659UExz7-8A:10 a=7z1cN_iqozsA:10 a=Ns2tSlmEzMZskS1gC0kA:9 wl=host:3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2016 17:27:43 -0000 Hi Kumar, > I have just started developing something in FreeBSD. I have done few > changes in the memory part. Before that i just want to confirm that for the > guest machines for the system memory there is only one object used. If the > memory is greater than he lowmem remaining is allocated in highmem. The > memory between these two is used for MMIO which is a separate object. It isn't really an object but a hole in the address space. Any access to that region results in an EPT-violation exit from the VM, and a trip through the bhyve instruction emulation path. > When I did few changes FreeBSD vm booted fine. But when i tried windows it was > vm_run error and value is EFAULT. The EFAULT is because of the GPA that > belongs to the MMIO region and the exact value is 4276093104 and fails in > the function vm_handle_inst_emul. I would like to know why is this > different in both the cases. 4276093104 is 0xfee000b0, which is local APIC EOI register. There haven't been any issues with accessing this from Windows in the past - is this an earlier version than Vista ? (e.g. server 2k3) later, Peter. From owner-freebsd-virtualization@freebsd.org Mon Aug 1 15:49:04 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB8CDBAB833 for ; Mon, 1 Aug 2016 15:49:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1E86B1F21 for ; Mon, 1 Aug 2016 15:49:03 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA07088 for ; Mon, 01 Aug 2016 18:49:00 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1bUFSe-000KWz-K4 for freebsd-virtualization@freebsd.org; Mon, 01 Aug 2016 18:49:00 +0300 To: "freebsd-virtualization@freebsd.org" From: Andriy Gapon Subject: vtbd stuck i/o Message-ID: Date: Mon, 1 Aug 2016 18:47:40 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 01 Aug 2016 15:49:04 -0000 >From time to time I experience a problem where a FreeBSD guest which runs in a bhyve VM and uses virtio-blk disks gets stuck waiting for a disk I/O operation to complete. I tried to analyze one instance of them problem and discovered the vtblk in a state where there was one request (a flush) in vtblk_req_ready, nothing in vtblk_bioq and one apparently completed but unprocessed request in vtblk_vq (which I discoved by manually following the steps in virtqueue_dequeue). It seemed like perhaps an interrupt was not generated or lost somehow. I will appreciate any help with either analyzing this problem or adding some diagnostic code for future analysis. It's not super easy to reproduce the problem, but it occurs once in a while. Some data from my debugging session: (kgdb) p *(struct vtblk_softc *)$26->d_drv1 $27 = { vtblk_dev = 0xfffff800036a3000, vtblk_mtx = { lock_object = { lo_name = 0xfffff800031f9440 "vtblk2", lo_flags = 16973824, lo_data = 0, lo_witness = 0xfffffe0000b94d00 }, mtx_lock = 4 }, vtblk_features = 268437060, vtblk_flags = 1, vtblk_vq = 0xfffff80003899000, vtblk_sglist = 0xfffff8000386a800, vtblk_disk = 0xfffff800038ae400, vtblk_bioq = { queue = { tqh_first = 0x0, tqh_last = 0xfffff8000389d150 }, last_offset = 42949672960, insert_point = 0x0 }, vtblk_req_free = { tqh_first = 0xfffff8000387dac0, tqh_last = 0xfffff8000387ea20 }, vtblk_req_ready = { tqh_first = 0xfffff8000387db00, tqh_last = 0xfffff8000387db20 }, vtblk_req_ordered = 0x0, vtblk_max_nsegs = 35, vtblk_request_count = 64, vtblk_write_cache = VTBLK_CACHE_WRITEBACK, vtblk_dump_queue = { tqh_first = 0x0, tqh_last = 0xfffff8000389d1a8 }, vtblk_dump_request = { vbr_hdr = { type = 0, ioprio = 0, sector = 0 }, vbr_bp = 0x0, vbr_ack = 0 '\000', vbr_link = { tqe_next = 0x0, tqe_prev = 0x0 } } } (kgdb) p *$27.vtblk_vq $30 = { vq_dev = 0xfffff800036a3b00, vq_name = "vtblk2 request", '\000' , vq_queue_index = 0, vq_nentries = 64, vq_flags = 1, vq_alignment = 4096, vq_ring_size = 8192, vq_ring_mem = 0xfffffe003c687000, vq_max_indirect_size = 35, vq_indirect_mem_size = 560, vq_intrhand = 0xffffffff80888d02 , vq_intrhand_arg = 0xfffff8000389d100, vq_ring = { num = 64, desc = 0xfffffe003c687000, avail = 0xfffffe003c687400, used = 0xfffffe003c688000 }, vq_free_cnt = 63, vq_queued_cnt = 0, vq_desc_head_idx = 2, vq_used_cons_idx = 55297, vq_descx = 0xfffff80003899080 } (kgdb) p *$27.vtblk_req_ready.tqh_first $34 = { vbr_hdr = { type = 2147483652, ioprio = 1, sector = 0 }, vbr_bp = 0xfffff800038d8d38, vbr_ack = 255 '\377', vbr_link = { tqe_next = 0x0, tqe_prev = 0xfffff8000389d180 } } (kgdb) p/x 2147483652 $35 = 0x80000004 (kgdb) p *$34.vbr_bp $36 = { bio_cmd = 5, bio_flags = 8, bio_cflags = 0, bio_pflags = 0, bio_dev = 0x0, bio_disk = 0xfffff800038ae400, bio_offset = 42949672960, bio_bcount = 0, bio_data = 0x0, bio_ma = 0x0, bio_ma_offset = 0, bio_ma_n = 0, bio_error = 0, bio_resid = 0, bio_done = 0xffffffff80949672 , bio_driver1 = 0x0, bio_driver2 = 0x0, bio_caller1 = 0x0, bio_caller2 = 0x0, bio_queue = { tqe_next = 0x0, tqe_prev = 0xfffff8000389d150 }, ... bio_from = 0x0, bio_to = 0x0, bio_length = 0, bio_completed = 0, bio_children = 0, bio_inbed = 0, bio_parent = 0xfffff800081de8d0, bio_t0 = { sec = 23228, frac = 3207008011652053160 }, bio_task = 0x0, bio_task_arg = 0x0, bio_classifier1 = 0x0, bio_classifier2 = 0x0, bio_pblkno = 0 } (kgdb) p $50.vq_ring.used->idx $51 = 55298 (kgdb) p *$50.vq_ring.used $52 = { flags = 0, idx = 55298, ring = 0xfffffe003c688004 } (kgdb) p (55297 + 1) & 63 $53 = 2 (kgdb) p $50.vq_ring.used->ring[2] $54 = { id = 10, len = 1 } (kgdb) p $50.vq_descx[10] $55 = { cookie = 0xfffff8000387db80, indirect = 0xfffff80003895400, indirect_paddr = 59331584, ndescs = 1 } (kgdb) p *(struct vtblk_request *)$55.cookie $57 = { vbr_hdr = { type = 1, ioprio = 1, sector = 32562128 }, vbr_bp = 0xfffff800061492f0, vbr_ack = 0 '\000', vbr_link = { tqe_next = 0x0, tqe_prev = 0x0 } } (kgdb) p *$57.vbr_bp $58 = { bio_cmd = 2, bio_flags = 0, bio_cflags = 0, bio_pflags = 0, bio_dev = 0x0, bio_disk = 0xfffff800038ae400, bio_offset = 16671809536, bio_bcount = 90112, bio_data = 0xfffffe001c268000 "", bio_ma = 0x0, bio_ma_offset = 0, bio_ma_n = 0, bio_error = 0, bio_resid = 0, bio_done = 0xffffffff80949672 , bio_driver1 = 0x0, bio_driver2 = 0x0, bio_caller1 = 0x0, bio_caller2 = 0x0, bio_queue = { tqe_next = 0x0, tqe_prev = 0xfffff8000389d150 }, bio_attribute = 0x0, bio_zone = { ... }, bio_from = 0x0, bio_to = 0x0, bio_length = 90112, bio_completed = 0, bio_children = 0, bio_inbed = 0, bio_parent = 0xfffff80003b8b8d0, bio_t0 = { sec = 23228, frac = 3190990625700496616 }, bio_task = 0x0, bio_task_arg = 0x0, bio_classifier1 = 0x0, bio_classifier2 = 0x0, bio_pblkno = 32562128 } -- Andriy Gapon From owner-freebsd-virtualization@freebsd.org Mon Aug 1 19:13:11 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93DE1BAB824; Mon, 1 Aug 2016 19:13:11 +0000 (UTC) (envelope-from akshay1994.leo@gmail.com) Received: from mail-it0-x242.google.com (mail-it0-x242.google.com [IPv6:2607:f8b0:4001:c0b::242]) (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 53EB31F8C; Mon, 1 Aug 2016 19:13:11 +0000 (UTC) (envelope-from akshay1994.leo@gmail.com) Received: by mail-it0-x242.google.com with SMTP id j124so12533380ith.3; Mon, 01 Aug 2016 12:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc; bh=nQE7a2RcDWwZnj9yaQ5ddCk4pqBSGeLExtA/Ce47RDI=; b=UsCvjD5nqz+s+DxhZSp9sXpuF5nSz7xO4djXV1zm8txXLpHjZ8bri+1+UCWyJN6ED0 eS4rfYUFjmuwxKKqNlmY6fh74y+cbUwHUMSD6QXCmD2Bp9DYVIO5hGSaEcv79bN56BLm HA1Jb3G/6oznQC44udiMZj0GQjpjFZx7dUs/WbUI5yFQbv4sAIP9iiDpX/P7AdnL+BwU DBXn0A8JFNaCwxzKK99cQTw/+4PuIkYokNPykLCLnuI9qxwjAZCOdVTTfGtSwu8PVWFk mgwlrAVLolrkaD8ljR5giKULrQpgXbm0RZhVafQAL2BN9lL/8IvsDnovOj+bdN0r8kWA vWKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=nQE7a2RcDWwZnj9yaQ5ddCk4pqBSGeLExtA/Ce47RDI=; b=daU18xGzjQFGRFLY7eaWRXGnPbogrANojgwJR/Rbpy0tUD36U4PcN9c3yONnjzul34 agqxoRCVK5Ch2KIKN/MTEFvj7MlWB2rT/3I0eAL7hdRcbaR+oCk6z7KcMLd+cje8wPI4 QCliCLRYSFxGuLLf+t83YNWSARHWk37X/+LDoBExjaRwi60O+FTP7eQiA12TMkUNWhEh DBATT4AXg9WXdX14RvmaSkvsFlpmwfdJsLPWRPGQB9NCasSC0fODmuLCG0Q+SYVEmD3b REHMUwrMtkih3sh88GOyNSRIsWPfHnzpOMsWxc7wAzS4HnYWNCgFoYsOnsoEehBptxAz t8Rw== X-Gm-Message-State: AEkoouuBA9NqXdHeifmO7UDgYSqojMRLGnoLReTIKw328JrecjR0bnOwr41Yp6SqneVUaO4vNHV2uNyftUrM3A== X-Received: by 10.36.48.149 with SMTP id q143mr60885901itq.48.1470078790436; Mon, 01 Aug 2016 12:13:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.20.85 with HTTP; Mon, 1 Aug 2016 12:12:49 -0700 (PDT) From: Akshay Jaggi Date: Tue, 2 Aug 2016 00:42:49 +0530 Message-ID: Subject: Call for Testing : Grant Table User-space Device To: freebsd-virtualization@freebsd.org, freebsd-xen@freebsd.org, xen-devel@lists.xen.org Cc: Pedro Giffuni , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Content-Type: multipart/mixed; boundary=001a1140b16018b2e40539076444 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 01 Aug 2016 19:13:11 -0000 --001a1140b16018b2e40539076444 Content-Type: text/plain; charset=UTF-8 Hello Everyone, I am one of the students selected under FreeBSD for Google Summer of Code this year. My project was to implement a user-space grant table device for FreeBSD and add the appropriate bindings for the device in Xen, to enable the qdisk backends. (More details: http://akshayjaggi.me/blog/gsoc-freebsd-xen-progress-report/) The code is right out the oven and cooked enough for testing now, and I would be glad if some of the community member would want to give it a try. Instructions for applying the patches: 1) Apply *freebsd_final_flash.patch* to /usr/src on FreeBSD. Buildkernel and Installkernel. 2) Add *xen_freebsd.patch* to /usr/ports/sysutils/xen-tools/files/, and bind it to be applied in /usr/ports/sysutils/xen-tools/Makefile. Make and Make install. Reboot and play! Change the backendtype to qdisk in the domain configuration files, and test. :) Meanwhile, I am working on getting my work pushed into FreeBSD, and once the gntdev device is ready on FreeBSD, I'll push the necessary bindings in Xen. Happy Testing! Cheers and Regards, Akshay Jaggi --001a1140b16018b2e40539076444 Content-Type: application/octet-stream; name="freebsd_final_flash.patch" Content-Disposition: attachment; filename="freebsd_final_flash.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ircetg1k0 ZGlmZiAtLWdpdCBhL3N5cy9jb25mL2ZpbGVzIGIvc3lzL2NvbmYvZmlsZXMKaW5kZXggN2I3ZGJl Yi4uMmEwZWVmNCAxMDA2NDQKLS0tIGEvc3lzL2NvbmYvZmlsZXMKKysrIGIvc3lzL2NvbmYvZmls ZXMKQEAgLTI5NzMsNiArMjk3Myw3IEBAIGRldi94ZW4veGVuc3RvcmUveGVuc3RvcmVfZGV2LmMJ b3B0aW9uYWwgeGVuaHZtCiBkZXYveGVuL3hlbnN0b3JlL3hlbnN0b3JlZF9kZXYuYwlvcHRpb25h bCB4ZW5odm0KIGRldi94ZW4vZXZ0Y2huL2V2dGNobl9kZXYuYwlvcHRpb25hbCB4ZW5odm0KIGRl di94ZW4vcHJpdmNtZC9wcml2Y21kLmMJb3B0aW9uYWwgeGVuaHZtCitkZXYve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yZWYg KmdyZWZfc3RhcnQ7CisJc3RydWN0IGdudGRldl9nbWFwICpnbWFwX3N0YXJ0OworCXN0cnVjdCBw ZXJfdXNlcl9kYXRhICpwcml2X3VzZXI7CisKKwllcnJvciA9IGRldmZzX2dldF9jZGV2cHJpdigo dm9pZCoqKSAmcHJpdl91c2VyKTsKKwlpZiAoZXJyb3IgIT0gMCkKKwkJcmV0dXJuIChFSU5WQUwp OworCisJY291bnQgPSBPRkZfVE9fSURYKHNpemUpOworCisJZ3JlZl9zdGFydCA9IGdudGRldl9m aW5kX2dyZWZzKHByaXZfdXNlciwgKm9mZnNldCwgY291bnQpOworCWlmIChncmVmX3N0YXJ0KSB7 CisJCWVycm9yID0gbW1hcF9ncmVmKHByaXZfdXNlciwgZ3JlZl9zdGFydCwgY291bnQsIHNpemUs IG9iamVjdCk7CisJCXJldHVybiAoZXJyb3IpOworCX0KKworCWdtYXBfc3RhcnQgPSBnbnRkZXZf ZmluZF9nbWFwKHByaXZfdXNlciwgKm9mZnNldCwgY291bnQpOworCWlmIChnbWFwX3N0YXJ0KSB7 CisJCWVycm9yID0gbW1hcF9nbWFwKHByaXZfdXNlciwgZ21hcF9zdGFydCwgb2Zmc2V0LCBzaXpl LCBvYmplY3QsCisJCSAgICBucHJvdCk7CisJCXJldHVybiAoZXJyb3IpOworCX0KKworCXJldHVy biAoRUlOVkFMKTsKK30KKworLyotLS0tLS0tLS0tLS0tLS0tLS0gUHJpdmF0ZSBEZXZpY2UgQXR0 YWNobWVudCBGdW5jdGlvbnMgIC0tLS0tLS0tLS0tLS0tLS0tLS0tKi8KK3N0YXRpYyB2b2lkCitn bnRkZXZfaWRlbnRpZnkoZHJpdmVyX3QgKmRyaXZlciwgZGV2aWNlX3QgcGFyZW50KQoreworCisJ S0FTU0VSVCgoeGVuX2RvbWFpbigpKSwKKwkgICAgKCJUcnlpbmcgdG8gYXR0YWNoIGdudGRldiBk ZXZpY2Ugb24gbm9uIFhlbiBkb21haW4iKSk7CisKKwlpZiAoQlVTX0FERF9DSElMRChwYXJlbnQs IDAsICJnbnRkZXYiLCAwKSA9PSBOVUxMKQorCQlwYW5pYygidW5hYmxlIHRvIGF0dGFjaCBnbnRk ZXYgdXNlci1zcGFjZSBkZXZpY2UiKTsKK30KKworc3RhdGljIGludAorZ250ZGV2X3Byb2JlKGRl dmljZV90IGRldikKK3sKKworCWdudGRldl9kZXYgPSBkZXY7CisJZGV2aWNlX3NldF9kZXNjKGRl diwgIlhlbiBncmFudC10YWJsZSB1c2VyLXNwYWNlIGRldmljZSIpOworCXJldHVybiAoQlVTX1BS T0JFX05PV0lMRENBUkQpOworfQorCitzdGF0aWMgaW50CitnbnRkZXZfYXR0YWNoKGRldmljZV90 IGRldikKK3sKKworCW1ha2VfZGV2X2NyZWRmKE1BS0VERVZfRVRFUk5BTCwgJmdudGRldl9kZXZz dywgMCwgTlVMTCwgVUlEX1JPT1QsCisJICAgIEdJRF9XSEVFTCwgMDYwMCwgInhlbi9nbnRkZXYi KTsKKwlyZXR1cm4gKDApOworfQorCisvKi0tLS0tLS0tLS0tLS0tLS0tLS0tIFByaXZhdGUgRGV2 aWNlIEF0dGFjaG1lbnQgRGF0YSAgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0qLworc3RhdGljIGRl dmljZV9tZXRob2RfdCBnbnRkZXZfbWV0aG9kc1tdID0geworCURFVk1FVEhPRChkZXZpY2VfaWRl bnRpZnksIGdudGRldl9pZGVudGlmeSksCisJREVWTUVUSE9EKGRldmljZV9wcm9iZSwgZ250ZGV2 X3Byb2JlKSwKKwlERVZNRVRIT0QoZGV2aWNlX2F0dGFjaCwgZ250ZGV2X2F0dGFjaCksCisJREVW TUVUSE9EX0VORAorfTsKKworc3RhdGljIGRyaXZlcl90IGdudGRldl9kcml2ZXIgPSB7CisJImdu dGRldiIsCisJZ250ZGV2X21ldGhvZHMsCisJMCwKK307CisKK2RldmNsYXNzX3QgZ250ZGV2X2Rl dmNsYXNzOworCitEUklWRVJfTU9EVUxF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kJCVwKKwlf SU9XKCdFJywgNCwgc3RydWN0IGlvY3RsX2dudGRldl91bm1hcF9ncmFudF9yZWYpCitzdHJ1Y3Qg aW9jdGxfZ250ZGV2X3VubWFwX2dyYW50X3JlZiB7CisgICAgLyogSU4gcGFyYW1ldGVycyAqLwor ICAgIHVpbnQ2NF90IGluZGV4OworICAgIHVpbnQzMl90IGNvdW50OworfTsKKworI2RlZmluZSBJ T0NUTF9HTlRERVZfR0VUX09GRlNFVF9GT1JfVkFERFIJCQkJXAorCV9JT1dSKCdFJywgNSwgc3Ry dWN0IGlvY3RsX2dudGRldl9nZXRfb2Zmc2V0X2Zvcl92YWRkcikKK3N0cnVjdCBpb2N0bF9nbnRk ZXZfZ2V0X29mZnNldF9mb3JfdmFkZHIgeworICAgIC8qIElOIHBhcmFtZXRlcnMgKi8KKyAgICB1 aW50NjRfdCB2YWRkcjsKKyAgICAvKiBPVVQgcGFyYW1ldGVycyAqLworICAgIHVpbnQ2NF90IG9m ZnNldDsKKyAgICB1aW50MzJfdCBjb3VudDsKK307CisKKyNkZWZpbmUgSU9DVExfR05UREVWX1NF VF9NQVhfR1JBTlRTCQkJCQlcCisJX0lPVygnRScsIDYsIHN0cnVjdCBpb2N0bF9nbnRkZXZfc2V0 X21heF9ncmFudHMpCitzdHJ1Y3QgaW9jdGxfZ250ZGV2X3NldF9tYXhfZ3JhbnRzIHsKKyAgICAv KiBJTiBwYXJhbWV0ZXJzICovCisgICAgdWludDMyX3QgY291bnQ7Cit9OworCisjZW5kaWYgLyog X19YRU5fR05UREVWX0hfXyAqLwo= --001a1140b16018b2e40539076444 Content-Type: application/octet-stream; name="xen_freebsd.patch" Content-Disposition: attachment; filename="xen_freebsd.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ircetg271 ZGlmZiAtLWdpdCBhL3Rvb2xzL2luY2x1ZGUveGVuLXN5cy9GcmVlQlNEL2dudGRldi5oIGIvdG9v bHMvaW5jbHVkZS94ZW4tc3lzL0ZyZWVCU0Q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KSAoKCh1bnNpZ25lZCBsb25nKShfeCkrKDFVTDw8KF93KSktMSkgJiB+KCgx VUw8PChfdykpLTEpKQorCisjZGVmaW5lIEdURVJST1IoX2wsIF9mLi4uKSB4dGxfbG9nKF9sLCBY VExfRVJST1IsIGVycm5vLCAiZ250dGFiIiwgX2YpCisjZGVmaW5lIEdTRVJST1IoX2wsIF9mLi4u KSB4dGxfbG9nKF9sLCBYVExfRVJST1IsIGVycm5vLCAiZ250c2hyIiwgX2YpCisKKyNkZWZpbmUg UEFHRV9TSElGVCAgICAgICAgICAgMTIKKyNkZWZpbmUgUEFHRV9TSVpFICAgICAgICAgICAgKDFV TCA8PCBQQUdFX1NISUZUKQorI2RlZmluZSBQQUdFX01BU0sgICAgICAgICAgICAofihQQUdFX1NJ WkUtMSkpCisKKyNpZm5kZWYgT19DTE9FWEVDCisjZGVmaW5lIE9fQ0xPRVhFQyAwCisjZW5kaWYK KworaW50IG9zZGVwX2dudHRhYl9vcGVuKHhlbmdudHRhYl9oYW5kbGUgKnhndCkKK3sKKyAgICBp bnQgZmQgPSBvcGVuKERFVlhFTiAiZ250ZGV2IiwgT19SRFdSfE9fQ0xPRVhFQyk7CisgICAgaWYg KCBmZCA9PSAtMSApCisgICAgICAgIHJldHVybiAtMTsKKyAgICB4Z3QtPmZkID0gZmQ7CisgICAg cmV0dXJuIDA7Cit9CisKK2ludCBvc2RlcF9nbnR0YWJfY2xvc2UoeGVuZ250dGFiX2hhbmRsZSAq eGd0KQoreworICAgIGlmICggeGd0LT5mZCA9PSAtMSApCisgICAgICAgIHJldHVybiAwOworCisg ICAgcmV0dXJuIGNsb3NlKHhndC0+ZmQpOworfQorCitpbnQgb3NkZXBfZ250dGFiX3NldF9tYXhf Z3JhbnRzKHhlbmdudHRhYl9oYW5kbGUgKnhndCwgdWludDMyX3QgY291bnQpCit7CisgICAgaW50 IGZkID0geGd0LT5mZCwgcmM7CisgICAgc3RydWN0IGlvY3RsX2dudGRldl9zZXRfbWF4X2dyYW50 cyBtYXhfZ3JhbnRzID0geyAuY291bnQgPSBjb3VudCB9OworCisgICAgcmMgPSBpb2N0bChmZCwg SU9DVExfR05UREVWX1NFVF9NQVhfR1JBTlRTLCAmbWF4X2dyYW50cyk7CisgICAgaWYgKHJjKSB7 CisgICAgICAgIC8qCisgICAgICAgICAqIEZyZWVCU0Qga2VybmVsIGRvZXNuJ3QgaW1wbGVtZW50 IHRoaXMgSU9DVEwsCisgICAgICAgICAqIHNvIGlnbm9yZSB0aGUgcmVzdWx0aW5nIHNwZWNpZmlj IGZhaWx1cmUsIGlmIGFueS4KKyAgICAgICAgICovCisgICAgICAgIGlmIChlcnJubyA9PSBFTk9U VFkpCisgICAgICAgICAgICByYyA9IDA7CisgICAgICAgIGVsc2UKKyAgICAgICAgICAgIEdURVJS T1IoeGd0LT5sb2dnZXIsICJpb2N0bCBTRVRfTUFYX0dSQU5UUyBmYWlsZWQiKTsKKyAgICB9CisK KyAgICByZXR1cm4gcmM7Cit9CisKK3ZvaWQgKm9zZGVwX2dudHRhYl9ncmFudF9tYXAoeGVuZ250 dGFiX2hhbmRsZSAqeGd0LAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1aW50MzJfdCBj b3VudCwgaW50IGZsYWdzLCBpbnQgcHJvdCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg dWludDMyX3QgKmRvbWlkcywgdWludDMyX3QgKnJlZnMsCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIHVpbnQzMl90IG5vdGlmeV9vZmZzZXQsCisgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIGV2dGNobl9wb3J0X3Qgbm90aWZ5X3BvcnQpCit7CisgICAgaW50IGZkID0geGd0LT5mZDsK KyAgICBzdHJ1Y3QgaW9jdGxfZ250ZGV2X21hcF9ncmFudF9yZWYgKm1hcDsKKyAgICB1bnNpZ25l ZCBpbnQgbWFwX3NpemUgPSBST1VORFVQKChzaXplb2YoKm1hcCkgKyAoY291bnQgLSAxKSAqCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaXplb2Yoc3RydWN0IGlvY3RsX2du dGRldl9tYXBfZ3JhbnRfcmVmKSksCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBQQUdFX1NISUZUKTsKKyAgICB2b2lkICphZGRyID0gTlVMTDsKKyAgICBpbnQgZG9taWRzX3N0 cmlkZSA9IDE7CisgICAgaW50IGk7CisKKyAgICBpZiAoZmxhZ3MgJiBYRU5HTlRUQUJfR1JBTlRf TUFQX1NJTkdMRV9ET01BSU4pCisgICAgICAgIGRvbWlkc19zdHJpZGUgPSAwOworCisgICAgaWYg KCBtYXBfc2l6ZSA8PSBQQUdFX1NJWkUgKQorICAgICAgICBtYXAgPSBhbGxvY2Eoc2l6ZW9mKCpt YXApICsKKyAgICAgICAgICAgICAgICAgICAgIChjb3VudCAtIDEpICogc2l6ZW9mKHN0cnVjdCBp b2N0bF9nbnRkZXZfbWFwX2dyYW50X3JlZikpOworICAgIGVsc2UKKyAgICB7CisgICAgICAgIG1h cCA9IG1tYXAoTlVMTCwgbWFwX3NpemUsIFBST1RfUkVBRCB8IFBST1RfV1JJVEUsCisgICAgICAg ICAgICAgICAgICAgTUFQX1BSSVZBVEUgfCBNQVBfQU5PTiwgLTEsIDApOworICAgICAgICBpZiAo IG1hcCA9PSBNQVBfRkFJTEVEICkKKyAgICAgICAgeworICAgICAgICAgICAgR1RFUlJPUih4Z3Qt PmxvZ2dlciwgIm1tYXAgb2YgbWFwIGZhaWxlZCIpOworICAgICAgICAgICAgcmV0dXJuIE5VTEw7 CisgICAgICAgIH0KKyAgICB9CisKKyAgICBmb3IgKCBpID0gMDsgaSA8IGNvdW50OyBpKysgKQor ICAgIHsKKyAgICAgICAgbWFwLT5yZWZzW2ldLmRvbWlkID0gZG9taWRzW2kgKiBkb21pZHNfc3Ry aWRlXTsKKyAgICAgICAgbWFwLT5yZWZzW2ldLnJlZiA9IHJlZnNbaV07CisgICAgfQorCisgICAg bWFwLT5jb3VudCA9IGNvdW50OworCisgICAgaWYgKCBpb2N0bChmZCwgSU9DVExfR05UREVWX01B UF9HUkFOVF9SRUYsIG1hcCkgKSB7CisgICAgICAgIEdURVJST1IoeGd0LT5sb2dnZXIsICJpb2N0 bCBNQVBfR1JBTlRfUkVGIGZhaWxlZCIpOworICAgICAgICBnb3RvIG91dDsKKyAgICB9CisKKyBy ZXRyeToKKyAgICBhZGRyID0gbW1hcChOVUxMLCBQQUdFX1NJWkUgKiBjb3VudCwgcHJvdCwgTUFQ X1NIQVJFRCwgZmQsCisgICAgICAgICAgICAgICAgbWFwLT5pbmRleCk7CisKKyAgICBpZiAoYWRk ciA9PSBNQVBfRkFJTEVEICYmIGVycm5vID09IEVBR0FJTikKKyAgICB7CisgICAgICAgIC8qCisg ICAgICAgICAqIFRoZSBncmFudCBoeXBlcmNhbGwgY2FuIHJldHVybiBFQUdBSU4gaWYgdGhlIGdy YW50ZWQgcGFnZQorICAgICAgICAgKiBpcyBzd2FwcGVkIG91dC4gU2luY2UgdGhlIHBhZ2luZyBk YWVtb24gbWF5IGJlIGluIHRoZSBzYW1lCisgICAgICAgICAqIGRvbWFpbiwgdGhlIGh5cGVyY2Fs bCBjYW5ub3QgYmxvY2sgd2l0aG91dCBjYXVzaW5nIGEKKyAgICAgICAgICogZGVhZGxvY2suCisg ICAgICAgICAqCisgICAgICAgICAqIEJlY2F1c2UgdGhlcmUgYXJlIG5vIG5vdGlmaWNhdGlvbnMg d2hlbiB0aGUgcGFnZSBpcyBzd2FwcGVkCisgICAgICAgICAqIGluLCB3YWl0IGEgYml0IGJlZm9y ZSByZXRyeWluZywgYW5kIGhvcGUgdGhhdCB0aGUgcGFnZSB3aWxsCisgICAgICAgICAqIGFycml2 ZSBldmVudHVhbGx5LgorICAgICAgICAgKi8KKyAgICAgICAgdXNsZWVwKDEwMDApOworICAgICAg ICBnb3RvIHJldHJ5OworICAgIH0KKworICAgIGlmIChhZGRyICE9IE1BUF9GQUlMRUQpCisgICAg eworICAgICAgICBpbnQgcnYgPSAwOworICAgICAgICBzdHJ1Y3QgaW9jdGxfZ250ZGV2X3VubWFw X25vdGlmeSBub3RpZnk7CisgICAgICAgIG5vdGlmeS5pbmRleCA9IG1hcC0+aW5kZXg7CisgICAg ICAgIG5vdGlmeS5hY3Rpb24gPSAwOworICAgICAgICBpZiAobm90aWZ5X29mZnNldCA8IFBBR0Vf U0laRSAqIGNvdW50KSB7CisgICAgICAgICAgICBub3RpZnkuaW5kZXggKz0gbm90aWZ5X29mZnNl dDsKKyAgICAgICAgICAgIG5vdGlmeS5hY3Rpb24gfD0gVU5NQVBfTk9USUZZX0NMRUFSX0JZVEU7 CisgICAgICAgIH0KKyAgICAgICAgaWYgKG5vdGlmeV9wb3J0ICE9IC0xKSB7CisgICAgICAgICAg ICBub3RpZnkuZXZlbnRfY2hhbm5lbF9wb3J0ID0gbm90aWZ5X3BvcnQ7CisgICAgICAgICAgICBu b3RpZnkuYWN0aW9uIHw9IFVOTUFQX05PVElGWV9TRU5EX0VWRU5UOworICAgICAgICB9CisgICAg ICAgIGlmIChub3RpZnkuYWN0aW9uKQorICAgICAgICAgICAgcnYgPSBpb2N0bChmZCwgSU9DVExf R05UREVWX1NFVF9VTk1BUF9OT1RJRlksICZub3RpZnkpOworICAgICAgICBpZiAocnYpIHsKKyAg ICAgICAgICAgIEdURVJST1IoeGd0LT5sb2dnZXIsICJpb2N0bCBTRVRfVU5NQVBfTk9USUZZIGZh aWxlZCIpOworICAgICAgICAgICAgbXVubWFwKGFkZHIsIGNvdW50ICogUEFHRV9TSVpFKTsKKyAg ICAgICAgICAgIGFkZHIgPSBNQVBfRkFJTEVEOworICAgICAgICB9CisgICAgfQorCisgICAgaWYg KGFkZHIgPT0gTUFQX0ZBSUxFRCkKKyAgICB7CisgICAgICAgIGludCBzYXZlZF9lcnJubyA9IGVy cm5vOworICAgICAgICBzdHJ1Y3QgaW9jdGxfZ250ZGV2X3VubWFwX2dyYW50X3JlZiB1bm1hcF9n cmFudDsKKworICAgICAgICAvKiBVbm1hcCB0aGUgZHJpdmVyIHNsb3RzIHVzZWQgdG8gc3RvcmUg dGhlIGdyYW50IGluZm9ybWF0aW9uLiAqLworICAgICAgICBHVEVSUk9SKHhndC0+bG9nZ2VyLCAi bW1hcCBmYWlsZWQiKTsKKyAgICAgICAgdW5tYXBfZ3JhbnQuaW5kZXggPSBtYXAtPmluZGV4Owor ICAgICAgICB1bm1hcF9ncmFudC5jb3VudCA9IGNvdW50OworICAgICAgICBpb2N0bChmZCwgSU9D VExfR05UREVWX1VOTUFQX0dSQU5UX1JFRiwgJnVubWFwX2dyYW50KTsKKyAgICAgICAgZXJybm8g PSBzYXZlZF9lcnJubzsKKyAgICAgICAgYWRkciA9IE5VTEw7CisgICAgfQorCisgb3V0OgorICAg IGlmICggbWFwX3NpemUgPiBQQUdFX1NJWkUgKQorICAgICAgICBtdW5tYXAobWFwLCBtYXBfc2l6 ZSk7CisKKyAgICByZXR1cm4gYWRkcjsKK30KKworaW50IG9zZGVwX2dudHRhYl91bm1hcCh4ZW5n bnR0YWJfaGFuZGxlICp4Z3QsCisgICAgICAgICAgICAgICAgICAgICAgIHZvaWQgKnN0YXJ0X2Fk ZHJlc3MsCisgICAgICAgICAgICAgICAgICAgICAgIHVpbnQzMl90IGNvdW50KQoreworICAgIGlu dCBmZCA9IHhndC0+ZmQ7CisgICAgc3RydWN0IGlvY3RsX2dudGRldl9nZXRfb2Zmc2V0X2Zvcl92 YWRkciBnZXRfb2Zmc2V0OworICAgIHN0cnVjdCBpb2N0bF9nbnRkZXZfdW5tYXBfZ3JhbnRfcmVm IHVubWFwX2dyYW50OworICAgIGludCByYzsKKworICAgIGlmICggc3RhcnRfYWRkcmVzcyA9PSBO VUxMICkKKyAgICB7CisgICAgICAgIGVycm5vID0gRUlOVkFMOworICAgICAgICByZXR1cm4gLTE7 CisgICAgfQorCisgICAgLyogRmlyc3QsIGl0IGlzIG5lY2Vzc2FyeSB0byBnZXQgdGhlIG9mZnNl dCB3aGljaCB3YXMgaW5pdGlhbGx5IHVzZWQgdG8KKyAgICAgKiBtbWFwKCkgdGhlIHBhZ2VzLgor ICAgICAqLworICAgIGdldF9vZmZzZXQudmFkZHIgPSAodW5zaWduZWQgbG9uZylzdGFydF9hZGRy ZXNzOworICAgIGlmICggKHJjID0gaW9jdGwoZmQsIElPQ1RMX0dOVERFVl9HRVRfT0ZGU0VUX0ZP Ul9WQUREUiwKKyAgICAgICAgICAgICAgICAgICAgICZnZXRfb2Zmc2V0KSkgKQorICAgICAgICBy ZXR1cm4gcmM7CisKKyAgICBpZiAoIGdldF9vZmZzZXQuY291bnQgIT0gY291bnQgKQorICAgIHsK KyAgICAgICAgZXJybm8gPSBFSU5WQUw7CisgICAgICAgIHJldHVybiAtMTsKKyAgICB9CisKKyAg ICAvKiBOZXh0LCB1bm1hcCB0aGUgbWVtb3J5LiAqLworICAgIGlmICggKHJjID0gbXVubWFwKHN0 YXJ0X2FkZHJlc3MsIGNvdW50ICogUEFHRV9TSVpFKSkgKQorICAgICAgICByZXR1cm4gcmM7CisK KyAgICAvKiBGaW5hbGx5LCB1bm1hcCB0aGUgZHJpdmVyIHNsb3RzIHVzZWQgdG8gc3RvcmUgdGhl IGdyYW50IGluZm9ybWF0aW9uLiAqLworICAgIHVubWFwX2dyYW50LmluZGV4ID0gZ2V0X29mZnNl dC5vZmZzZXQ7CisgICAgdW5tYXBfZ3JhbnQuY291bnQgPSBjb3VudDsKKyAgICBpZiAoIChyYyA9 IGlvY3RsKGZkLCBJT0NUTF9HTlRERVZfVU5NQVBfR1JBTlRfUkVGLCAmdW5tYXBfZ3JhbnQpKSAp CisgICAgICAgIHJldHVybiByYzsKKworICAgIHJldHVybiAwOworfQorCitpbnQgb3NkZXBfZ250 c2hyX29wZW4oeGVuZ250c2hyX2hhbmRsZSAqeGdzKQoreworICAgIGludCBmZCA9IG9wZW4oREVW WEVOICJnbnRkZXYiLCBPX1JEV1IpOworICAgIGlmICggZmQgPT0gLTEgKQorICAgICAgICByZXR1 cm4gLTE7CisgICAgeGdzLT5mZCA9IGZkOworICAgIHJldHVybiAwOworfQorCitpbnQgb3NkZXBf Z250c2hyX2Nsb3NlKHhlbmdudHNocl9oYW5kbGUgKnhncykKK3sKKyAgICBpZiAoIHhncy0+ZmQg PT0gLTEgKQorICAgICAgICByZXR1cm4gMDsKKworICAgIHJldHVybiBjbG9zZSh4Z3MtPmZkKTsK K30KKwordm9pZCAqb3NkZXBfZ250c2hyX3NoYXJlX3BhZ2VzKHhlbmdudHNocl9oYW5kbGUgKnhn cywKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1aW50MzJfdCBkb21pZCwgaW50IGNv dW50LAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVpbnQzMl90ICpyZWZzLCBpbnQg d3JpdGFibGUsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdWludDMyX3Qgbm90aWZ5 X29mZnNldCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBldnRjaG5fcG9ydF90IG5v dGlmeV9wb3J0KQoreworICAgIHN0cnVjdCBpb2N0bF9nbnRkZXZfYWxsb2NfZ3JlZiAqZ3JlZl9p bmZvID0gTlVMTDsKKyAgICBzdHJ1Y3QgaW9jdGxfZ250ZGV2X3VubWFwX25vdGlmeSBub3RpZnk7 CisgICAgc3RydWN0IGlvY3RsX2dudGRldl9kZWFsbG9jX2dyZWYgZ3JlZl9kcm9wOworICAgIGlu dCBmZCA9IHhncy0+ZmQ7CisgICAgaW50IGVycjsKKyAgICB2b2lkICphcmVhID0gTlVMTDsKKyAg ICBncmVmX2luZm8gPSBtYWxsb2Moc2l6ZW9mKCpncmVmX2luZm8pICsgY291bnQgKiBzaXplb2Yo dWludDMyX3QpKTsKKyAgICBpZiAoIWdyZWZfaW5mbykKKyAgICAgICAgcmV0dXJuIE5VTEw7Cisg ICAgZ3JlZl9pbmZvLT5kb21pZCA9IGRvbWlkOworICAgIGdyZWZfaW5mby0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CisgKiBM b2NhbCB2YXJpYWJsZXM6CisgKiBtb2RlOiBDCisgKiBjLWZpbGUtc3R5bGU6ICJCU0QiCisgKiBj LWJhc2ljLW9mZnNldDogNAorICogdGFiLXdpZHRoOiA0CisgKiBpbmRlbnQtdGFicy1tb2RlOiBu aWwKKyAqIEVuZDoKKyAqLwo= --001a1140b16018b2e40539076444-- From owner-freebsd-virtualization@freebsd.org Tue Aug 2 14:06:36 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3CBA0BACF7B for ; Tue, 2 Aug 2016 14:06:36 +0000 (UTC) (envelope-from peterricq@host.hankwhitedesign.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2460F1BCF for ; Tue, 2 Aug 2016 14:06:36 +0000 (UTC) (envelope-from peterricq@host.hankwhitedesign.com) Received: by mailman.ysv.freebsd.org (Postfix) id 201F6BACF7A; Tue, 2 Aug 2016 14:06:36 +0000 (UTC) Delivered-To: virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1FBBEBACF79 for ; Tue, 2 Aug 2016 14:06:36 +0000 (UTC) (envelope-from peterricq@host.hankwhitedesign.com) Received: from host.hankwhitedesign.com (host.hankwhitedesign.com [192.138.18.176]) (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 013611BCE for ; Tue, 2 Aug 2016 14:06:35 +0000 (UTC) (envelope-from peterricq@host.hankwhitedesign.com) Received: from peterricq by host.hankwhitedesign.com with local (Exim 4.87) (envelope-from ) id 1bUa4a-0002NK-DG for virtualization@freebsd.org; Tue, 02 Aug 2016 08:49:32 -0500 To: virtualization@freebsd.org Subject: Shipment delivery problem #000876875 X-PHP-Script: peterricq.com/post.php for 209.68.5.138 Date: Tue, 2 Aug 2016 08:49:32 -0500 From: "FedEx 2Day A.M." Reply-To: "FedEx 2Day A.M." Message-ID: <07a6ca73186915b9a2bad998316d23e4@peterricq.com> X-Priority: 3 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.hankwhitedesign.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [502 32007] / [47 12] X-AntiAbuse: Sender Address Domain - host.hankwhitedesign.com X-Get-Message-Sender-Via: host.hankwhitedesign.com: authenticated_id: peterricq/from_h X-Authenticated-Sender: host.hankwhitedesign.com: tyrone.barry@peterricq.com X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 02 Aug 2016 14:06:36 -0000 Dear Customer, Your parcel has arrived at July 31. Courier was unable to deliver the parcel to you. Please, download Delivery Label attached to this email. Yours sincerely, Tyrone Barry, Sr. Support Agent. From owner-freebsd-virtualization@freebsd.org Wed Aug 3 04:44:49 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76747BABDD6 for ; Wed, 3 Aug 2016 04:44:49 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 3ACF61F0D for ; Wed, 3 Aug 2016 04:44:48 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 3B11620A40DC for ; Wed, 3 Aug 2016 14:44:32 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 35B87280A98 for ; Wed, 3 Aug 2016 14:44:32 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id l5LaKdz2oTIa for ; Wed, 3 Aug 2016 14:44:32 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (c-67-180-92-13.hsd1.ca.comcast.net [67.180.92.13]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 886D3280995; Wed, 3 Aug 2016 14:44:29 +1000 (AEST) Subject: Re: problems virtualizing ubuntu server 16.04 To: tech-lists References: <12e01dca-65b0-d6fb-0854-65c0201b3398@zyxst.net> Cc: freebsd-virtualization@freebsd.org From: Peter Grehan Message-ID: <0fc44739-2601-7386-cc07-8f993b1884e3@freebsd.org> Date: Tue, 2 Aug 2016 21:44:36 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <12e01dca-65b0-d6fb-0854-65c0201b3398@zyxst.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=c5Dpel1l c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=5eVCmCvhg37cu/pjidAGzw==:17 a=N659UExz7-8A:10 a=7z1cN_iqozsA:10 a=bpUBJ_tFabCisBQj2GIA:9 wl=host:3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 03 Aug 2016 04:44:49 -0000 Hi, I was able to install 16.04 server from the official ISO in bhyve on both a 10.1-RELEASE and CURRENT host without issues. > I select the first one and get this error: > > error: invalid magic number. > error: you need to load the kernel first. That looks like grub wasn't able to find the linux kernel. A simple check would be hit 'c' at the grub menu and then have a look around the filesystem from the grub prompt to see if the vmlinuz file is present. later, Peter. From owner-freebsd-virtualization@freebsd.org Wed Aug 3 11:48:01 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62056BACDB9 for ; Wed, 3 Aug 2016 11:48:01 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 38F3118AC for ; Wed, 3 Aug 2016 11:48:00 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1A06620476 for ; Wed, 3 Aug 2016 07:47:59 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 03 Aug 2016 07:47:59 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=zyxst.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=HI1Zc80Di9gUR0wH07bfl+s24fE=; b=APbDzw rysYyzKpgmjVen+L3Z8ODmteNdrNOcGeWfEmxgNekqjH+X+eIVI0NcWlR66cQemF zTZe82fg3WiGj6zJbU3quGuuxrVJ9kdutjZ1kVDaMFWmHmxuWfw2iZfkKsHV1bYg CTnSN3MdpXMiZC0Pvl9O1T9QWIrcKgnPqu/30= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=HI1Zc80Di9gUR0w H07bfl+s24fE=; b=c6wsvLOPj7FHnzkxorl3+xAzPi32M894yZyBhiy2fLSZVed BlfTJvu3OARtTqWImiYx5ECctgFnIU/we/8M64+GcBQf/C6qFTyB4TChz4Gbd7+n uazs51W/NetDwmJ/xA5Lp/4NkyTPkft/Q7ctONxFe2zZrBfvmdr1coT/ujM8= X-Sasl-enc: wRtA5WOTYmrfuRPL8NB1xcPWUUQi28wIcXrCgWgeEqcl 1470224878 Received: from pumpkin.growveg.org (potato.growveg.org [82.70.91.102]) by mail.messagingengine.com (Postfix) with ESMTPA id 9D646CCDA7 for ; Wed, 3 Aug 2016 07:47:58 -0400 (EDT) Subject: Re: problems virtualizing ubuntu server 16.04 References: <12e01dca-65b0-d6fb-0854-65c0201b3398@zyxst.net> <0fc44739-2601-7386-cc07-8f993b1884e3@freebsd.org> To: freebsd-virtualization@freebsd.org From: tech-lists Message-ID: Date: Wed, 3 Aug 2016 12:47:52 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <0fc44739-2601-7386-cc07-8f993b1884e3@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 03 Aug 2016 11:48:01 -0000 On 03/08/2016 05:44, Peter Grehan wrote: > Hi, > > I was able to install 16.04 server from the official ISO in bhyve on > both a 10.1-RELEASE and CURRENT host without issues. > >> I select the first one and get this error: >> >> error: invalid magic number. >> error: you need to load the kernel first. > > That looks like grub wasn't able to find the linux kernel. A simple > check would be hit 'c' at the grub menu and then have a look around the > filesystem from the grub prompt to see if the vmlinuz file is present. it caught me by surprise as in 14.04 the kernel was found. Anyway, I followed your suggestion. See if you can spot my mistake: grub> ls (cd0) Device cd0: Filesystem type iso9660 - Label `Ubuntu-Server 16.04.1 LTS arm64' - Last modification time 2016-07-19 21:29:23 Tuesday, UUID 2016-07-19-21-29-23-00 - Total size 1243168 sectors grub> *bangs head on desk repeatedly* -- J. From owner-freebsd-virtualization@freebsd.org Wed Aug 3 12:34:28 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2876BBAA7DF for ; Wed, 3 Aug 2016 12:34:28 +0000 (UTC) (envelope-from nbe@renzel.net) Received: from nijmegen.renzel.net (mx1.renzel.net [195.243.213.130]) by mx1.freebsd.org (Postfix) with ESMTP id E571B1B37 for ; Wed, 3 Aug 2016 12:34:27 +0000 (UTC) (envelope-from nbe@renzel.net) Received: from dublin.vkf.isb.de.renzel.net (unknown [10.0.0.80]) by nijmegen.renzel.net (smtpd) with ESMTP id B0A8A1414817 for ; Wed, 3 Aug 2016 14:31:20 +0200 (CEST) Received: from asbach.renzel.net (unknown [172.18.96.1]) by dublin.vkf.isb.de.renzel.net (Postfix) with ESMTP id A4473AD104 for ; Wed, 3 Aug 2016 14:31:20 +0200 (CEST) From: Nils Beyer To: freebsd-virtualization@freebsd.org Subject: bhyve: "Failed to emulate instruction 0x4c (...)" using "Core i5 6200U"... Date: Wed, 03 Aug 2016 14:31:20 +0200 Message-ID: <1882952.cFmKm56hu3@asbach.renzel.net> Organization: VKF Renzel GmbH User-Agent: KMail/4.14.10 (FreeBSD/11.0-BETA1; KDE/4.14.10; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Virus-Scanned: clamav-milter 0.98 at nijmegen.renzel.net X-Virus-Status: Clean X-Spam-Status: No, score=-8.0 required=7.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on nijmegen.renzel.net X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 03 Aug 2016 12:34:28 -0000 Hi, booting Windows 10 DVD ISO in a bhyve VM generates an abort trap: ============================================================================== Failed to emulate instruction [0x4c 0x8b 0x3c 0xc8 0x41 0x39 0x7f 0x08 0x76 0x5f 0x49 0x8b 0x0f 0x44 0x8b] at 0x10009bc1 Abort trap (core dumped) ============================================================================== Host-CPU: Core i5 6200U (Skylake) OS: FreeBSD 11.0-BETA3 #12 r303475M Windows probably tries to access some fancy Skylake features. Is there a way to fake my simulated CPU so that it gets detected as an Ivybridge? My current command: ============================================================================== bhyve \ -c 2 \ -s 3,ahci-cd,/root/windows10x64.iso -s 4,ahci-hd,/dev/zvol/zroot/windows10 \ -s 5,virtio-net,tap0 \ -s 11,fbuf,tcp=192.168.10.251:5900,w=1024,h=768 \ -s 20,xhci,tablet \ -s 31,lpc \ -l bootrom,/mnt/vmm/iso/BHYVE_UEFI_20160526.fd \ -m 2G -H -w \ windows10 ============================================================================== Thanks in advance and regards, Nils From owner-freebsd-virtualization@freebsd.org Wed Aug 3 13:16:15 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C55C8BAC389 for ; Wed, 3 Aug 2016 13:16:15 +0000 (UTC) (envelope-from nbe@renzel.net) Received: from nijmegen.renzel.net (mx1.renzel.net [195.243.213.130]) by mx1.freebsd.org (Postfix) with ESMTP id 8E7DF18DA for ; Wed, 3 Aug 2016 13:16:15 +0000 (UTC) (envelope-from nbe@renzel.net) Received: from dublin.vkf.isb.de.renzel.net (unknown [10.0.0.80]) by nijmegen.renzel.net (smtpd) with ESMTP id 8CEAB141482E for ; Wed, 3 Aug 2016 15:16:12 +0200 (CEST) Received: from asbach.renzel.net (unknown [172.18.96.1]) by dublin.vkf.isb.de.renzel.net (Postfix) with ESMTP id 81595AD68F for ; Wed, 3 Aug 2016 15:16:12 +0200 (CEST) Content-Type: text/plain; charset="ISO-8859-1" From: Nils Beyer Organization: VKF Renzel GmbH Date: Wed, 03 Aug 2016 15:16:12 +0200 User-Agent: KNode/4.14.10 Content-Transfer-Encoding: 7Bit Subject: Re: bhyve: "Failed to emulate instruction 0x4c (...)" using "Core i5 6200U"... To: freebsd-virtualization@freebsd.org References: <1882952.cFmKm56hu3@asbach.renzel.net> Lines: 22 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.98 at nijmegen.renzel.net X-Virus-Status: Clean X-Spam-Status: No, score=-7.5 required=7.0 tests=ALL_TRUSTED,BAYES_00, MISSING_MID autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on nijmegen.renzel.net X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 03 Aug 2016 13:16:15 -0000 I wrote: > Windows probably tries to access some fancy Skylake features. Is there a > way to fake my simulated CPU so that it gets detected as an Ivybridge? Ok, it happens on my Ivybridge Core i3-3110M, too. So, I wanted to look when it exactly crashes using VNC. Becuase I'm stupid, I've forgotten the "wait"-option in the "fbuf"-statement and because I'm slow I need some seconds to connect via VNC. Because the VM is already running, it skips DVD boot and jumps to our WDS boot enviornemnt. And that's where the abort trap is generated. Using the "wait"-option I'm able to jump into the DVD installer at the right time. And it's working well. Sorry for the noise... Regards, Nils From owner-freebsd-virtualization@freebsd.org Thu Aug 4 11:04:21 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D625ABAE933 for ; Thu, 4 Aug 2016 11:04:21 +0000 (UTC) (envelope-from thefoor9@server.thefoodlyguide.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id BCA081C0C for ; Thu, 4 Aug 2016 11:04:21 +0000 (UTC) (envelope-from thefoor9@server.thefoodlyguide.com) Received: by mailman.ysv.freebsd.org (Postfix) id B7E55BAE932; Thu, 4 Aug 2016 11:04:21 +0000 (UTC) Delivered-To: virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B76D2BAE931 for ; Thu, 4 Aug 2016 11:04:21 +0000 (UTC) (envelope-from thefoor9@server.thefoodlyguide.com) Received: from server.thefoodlyguide.com (server.thefoodlyguide.com [162.214.24.223]) (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 9E9171C0B for ; Thu, 4 Aug 2016 11:04:21 +0000 (UTC) (envelope-from thefoor9@server.thefoodlyguide.com) Received: from thefoor9 by server.thefoodlyguide.com with local (Exim 4.87) (envelope-from ) id 1bVGRg-0004Yr-11 for virtualization@freebsd.org; Thu, 04 Aug 2016 11:04:12 +0000 To: virtualization@freebsd.org Subject: Shipment delivery problem #00922782 X-PHP-Script: thefoodlyguide.com/post.php for 109.237.216.67, 162.214.24.223 Date: Thu, 4 Aug 2016 05:04:12 -0600 From: "FedEx Standard Overnight" Reply-To: "FedEx Standard Overnight" Message-ID: X-Priority: 3 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.thefoodlyguide.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [500 500] / [47 12] X-AntiAbuse: Sender Address Domain - server.thefoodlyguide.com X-Get-Message-Sender-Via: server.thefoodlyguide.com: authenticated_id: thefoor9/from_h X-Authenticated-Sender: server.thefoodlyguide.com: bruce.sanders@thefoodlyguide.com X-Source: /usr/bin/php X-Source-Args: /usr/bin/php X-Source-Dir: thefoodlyguide.com:/public_html Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 04 Aug 2016 11:04:21 -0000 Dear Customer, We could not deliver your parcel. Delivery Label is attached to this email. Yours trully, Bruce Sanders, FedEx Operation Manager. From owner-freebsd-virtualization@freebsd.org Thu Aug 4 11:35:46 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8EBCBAE3CC for ; Thu, 4 Aug 2016 11:35:46 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 95CC9118E for ; Thu, 4 Aug 2016 11:35:46 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: by mailman.ysv.freebsd.org (Postfix) id 91AFEBAE3C9; Thu, 4 Aug 2016 11:35:46 +0000 (UTC) Delivered-To: virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F289BAE3C7 for ; Thu, 4 Aug 2016 11:35:46 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail.eeeit.de (mail.eeeit.de [37.120.160.187]) (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 4A7BA118C; Thu, 4 Aug 2016 11:35:45 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from localhost (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mike@reifenberger.com) by mail.eeeit.de (Postfix) with ESMTPSA id C40AD4BAC; Thu, 4 Aug 2016 13:28:10 +0200 (CEST) Received: from ppp-62-216-199-15.dynamic.mnet-online.de (ppp-62-216-199-15.dynamic.mnet-online.de [62.216.199.15]) by mail.eeeit.de (Horde Framework) with HTTPS; Thu, 04 Aug 2016 13:28:10 +0200 Date: Thu, 04 Aug 2016 13:28:10 +0200 Message-ID: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> From: Michael Reifenberger To: Peter Grehan , virtualization@freebsd.org Subject: Bhyve tests and findings User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 04 Aug 2016 11:35:46 -0000 Hi, after waiting for UEFI-GOP and using bhyve (with vm-bhyve as a convenient tool) an a new E3-1225 v5 based system, the following are my findings so far. (BTW: Currently my rational for running bhyve is twofold: - Run a Windows 8.1 or 10 instance for accessing different remote locations via different VPN solutions - Run Centos7/RHEL7 instances with SAP Systems on it ) But first a huge Thanks to all who worked on bhyve and made it usable in its current state. That alone is quite impressive. What works so far: - Windows 8, 8.1 and 10 installs and runs in graphical mode flawlessly. - Centos7 installs and runs too using the UEFI-GOP Image (Yeah, no more Grub fiddling :-) - I was able to graphically Restore/Reconfigure a Acronis Windows-Backup into a Bhyve instance using the Acronis Restore-CD (Converting a BIOS Win8.1 to UEFI Win8.1) What doesn't: - Only vnclient from FreeBSD can connect to the bhyve VNC Server. I havn't found any vncviewer running on Windows which where able to work (tried UltraVNC, RealVNC, ...) - in VNC only most basic Keys work most special characters like (*\@) (and of course no german localization) but at least a usual US-kbd would be helpful. (Is there a way to debug the keystrokes or duplicate a localized VNC kbd from some VNC server) - For the SAP-Systems it seems that only 4 disks get used when the disk type is virtio-blk. (Is this intentionally or a feature of vm-bhyve? How to provide more disks) - It seems to miss a way to add an ISO CD/DVD without booting from it automatically. Also ISO's seem to miss a hot-plug feature (f.e. for inserting driver CD's after installation. Some additional questions: - Can one over-provisioning/ballooning guest memory's ? - Is it (speed-wise) better to use ZFS-zvol's or files in regular ZFS-directories? - Are the virtio-blk or ahci-hd disks having the same overhead? - Can ahci-hd be used paravirtualized in Centos? Thanks in advance! All in all it looks quite promising! Greetings --- Mike Gruß --- Michael Reifenberger From owner-freebsd-virtualization@freebsd.org Thu Aug 4 12:09:42 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF302BAF2BB for ; Thu, 4 Aug 2016 12:09:42 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.userve.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A24B152D for ; Thu, 4 Aug 2016 12:09:41 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) by smtp-outbound.userve.net (8.15.1/8.15.1) with ESMTPS id u74C9YlP095642 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 4 Aug 2016 13:09:36 +0100 (BST) (envelope-from matt.churchyard@userve.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=userve.net; s=201508; t=1470312576; bh=0TlTDmvzbVNQ0PMAPCJZHNvybfovQ9wWQEgxFazfbqg=; h=From:To:Subject:Date:References; b=bcmWOC7iGzy1IygHBbiSkKrbtQxMlYMW7Gby+6Sqft3PPhprK84tUxfS1QNYScUMw EC8fICjVszvY/nq5thG+NbsjSVCcPGiUBMLVFBGH574nytn52n3Vsk5LKq+Rqi7tt2 Vh5x10ygtMe5yf4fC0qCfF4U+pBCPnc94eWKaf1Y= Received: from SERVER.ad.usd-group.com (192.168.0.1) by SERVER.ad.usd-group.com (192.168.0.1) with Microsoft SMTP Server (TLS) id 15.0.847.32; Thu, 4 Aug 2016 13:09:28 +0100 Received: from SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9]) by SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9%12]) with mapi id 15.00.0847.030; Thu, 4 Aug 2016 13:09:28 +0100 From: Matt Churchyard To: FreeBSD virtualization Subject: FW: Bhyve tests and findings Thread-Topic: Bhyve tests and findings Thread-Index: AQHR7kRdr3sAT9ONiUKmemTIvMbYHaA4rikwgAAHR9A= Date: Thu, 4 Aug 2016 12:09:28 +0000 Message-ID: References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.0.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 04 Aug 2016 12:09:42 -0000 KHNlbnQgdGhpcyB0byB0aGUgd3JvbmcgbGlzdC4uLikNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdl LS0tLS0NCkZyb206IE1hdHQgQ2h1cmNoeWFyZCANClNlbnQ6IDA0IEF1Z3VzdCAyMDE2IDEyOjU3 DQpUbzogJ01pY2hhZWwgUmVpZmVuYmVyZ2VyJw0KQ2M6IGZyZWVic2QtZnNAZnJlZWJzZC5vcmcN ClN1YmplY3Q6IFJFOiBCaHl2ZSB0ZXN0cyBhbmQgZmluZGluZ3MNCg0KPkhpLA0KPmFmdGVyIHdh aXRpbmcgZm9yIFVFRkktR09QIGFuZCB1c2luZyBiaHl2ZSAod2l0aCB2bS1iaHl2ZSBhcyBhIGNv bnZlbmllbnQgdG9vbCkgYW4gYSBuZXcgRTMtMTIyNSB2NSBiYXNlZCBzeXN0ZW0sIHRoZSBmb2xs b3dpbmcgYXJlIG15IGZpbmRpbmdzID5zbyBmYXIuDQo+KEJUVzoNCj4gICBDdXJyZW50bHkgbXkg cmF0aW9uYWwgZm9yIHJ1bm5pbmcgYmh5dmUgaXMgdHdvZm9sZDoNCj4gICAtIFJ1biBhIFdpbmRv d3MgOC4xIG9yIDEwIGluc3RhbmNlIGZvciBhY2Nlc3NpbmcgZGlmZmVyZW50IHJlbW90ZSBsb2Nh dGlvbnMgdmlhIGRpZmZlcmVudCBWUE4gc29sdXRpb25zDQo+ICAgLSBSdW4gQ2VudG9zNy9SSEVM NyBpbnN0YW5jZXMgd2l0aCBTQVAgU3lzdG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lvbnM6DQo+LSBDYW4gb25lIG92ZXItcHJvdmlzaW9uaW5nL2JhbGxvb25pbmcg Z3Vlc3QgbWVtb3J5J3MgPw0KPi0gSXMgaXQgKHNwZWVkLXdpc2UpIGJldHRlciB0byB1c2UgWkZT LXp2b2wncyBvciBmaWxlcyBpbiByZWd1bGFyIFpGUy1kaXJlY3Rvcmllcz8NCj4tIEFyZSB0aGUg dmlydGlvLWJsayBvciBhaGNpLWhkIGRpc2tzIGhhdmluZyB0aGUgc2FtZSBvdmVyaGVhZD8NCj4t IENhbiBhaGNpLWhkIGJlIHVzZWQgcGFyYXZpcnR1YWxpemVkIGluIENlbnRvcz8NCg0KVGhlc2Ug YXJlIHByb2JhYmx5IGFsbCBxdWVzdGlvbnMgZm9yIHRoZSBkZXZzLi4uDQoNCk1hdHQNCg0KPlRo YW5rcyBpbiBhZHZhbmNlIQ0KDQo+QWxsIGluIGFsbCBpdCBsb29rcyBxdWl0ZSBwcm9taXNpbmch DQoNCj5HcmVldGluZ3MNCj4tLS0NCk1pa2UNCj4NCj5HcnXDnw0KPi0tLQ0KPk1pY2hhZWwgUmVp ZmVuYmVyZ2VyDQoNCj5fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fXw0KPmZyZWVic2QtdmlydHVhbGl6YXRpb25AZnJlZWJzZC5vcmcgbWFpbGluZyBsaXN0IA0K Pmh0dHBzOi8vbGlzdHMuZnJlZWJzZC5vcmcvbWFpbG1hbi9saXN0aW5mby9mcmVlYnNkLXZpcnR1 YWxpemF0aW9uDQo+VG8gdW5zdWJzY3JpYmUsIHNlbmQgYW55IG1haWwgdG8gImZyZWVic2Qtdmly dHVhbGl6YXRpb24tdW5zdWJzY3JpYmVAZnJlZWJzZC5vcmciDQo= From owner-freebsd-virtualization@freebsd.org Thu Aug 4 16:54:39 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9BB9BAF8AA for ; Thu, 4 Aug 2016 16:54:39 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB141450 for ; Thu, 4 Aug 2016 16:54:39 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9F230BAF8A9; Thu, 4 Aug 2016 16:54:39 +0000 (UTC) Delivered-To: virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9ECB1BAF8A8 for ; Thu, 4 Aug 2016 16:54:39 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2E4E7144E for ; Thu, 4 Aug 2016 16:54:38 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 5018E20B4A16 for ; Fri, 5 Aug 2016 02:54:22 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 46A1C2810BC for ; Fri, 5 Aug 2016 02:54:22 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lKaAhDWLHZ_n for ; Fri, 5 Aug 2016 02:54:22 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (unknown [96.82.80.65]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id F40302804EA; Fri, 5 Aug 2016 02:54:19 +1000 (AEST) Subject: Re: Bhyve tests and findings To: Michael Reifenberger References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> Cc: virtualization@freebsd.org From: Peter Grehan Message-ID: <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> Date: Thu, 4 Aug 2016 09:54:26 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=YvxNfMQX c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=mwgbnDbW7alINpy3vhoKyg==:17 a=IkcTkHD0fZMA:10 a=7z1cN_iqozsA:10 a=2yesJX3k26Iqs5oXF38A:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 wl=host:3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 04 Aug 2016 16:54:39 -0000 Hi Mike, > - Windows 8, 8.1 and 10 installs and runs in graphical mode flawlessly. Have you had any issues with the XHCI mouse on 8/8.1 ? > - I was able to graphically Restore/Reconfigure a Acronis Windows-Backup > into a Bhyve instance > using the Acronis Restore-CD (Converting a BIOS Win8.1 to UEFI Win8.1) Very nice ! > - Only vnclient from FreeBSD can connect to the bhyve VNC Server. > I havn't found any vncviewer running on Windows which where able to > work (tried UltraVNC, RealVNC, ...) Some VNC clients refuse to connect when only null-auth is advertized by the server. There is a patch to bhyve to support VNC password-auth, which may fix the issue with these clients. > - in VNC only most basic Keys work most special characters like (*\@) > (and of course no german localization) > but at least a usual US-kbd would be helpful. > (Is there a way to debug the keystrokes or duplicate a localized VNC > kbd from some VNC server) Nothing outside of modifying the source, but it seems useful enough to add a parameter for this. > - For the SAP-Systems it seems that only 4 disks get used when the disk > type is virtio-blk. > (Is this intentionally or a feature of vm-bhyve? How to provide more > disks) I'll let Matt comment on that. There's no limitation with guests that support MSI interrupts for adapters. Unfortunately, Windows guests require legacy interrupts for the AHCI controller, which is where the restriction originates. > - It seems to miss a way to add an ISO CD/DVD without booting from it > automatically. There is work ongoing to support UEFI NVVARs, which mostly fix the boot-device selection issues. > Also ISO's seem to miss a hot-plug feature (f.e. for inserting driver > CD's after installation. Yes, also not there. > Some additional questions: > - Can one over-provisioning/ballooning guest memory's ? Over-provisioning is fine - bhyve guest memory is backed by swap by default. There is currently no balloon driver backend in bhyve. > - Is it (speed-wise) better to use ZFS-zvol's or files in regular > ZFS-directories? I think that is workload-dependent. > - Are the virtio-blk or ahci-hd disks having the same overhead? No - virtio-blk should be better. > - Can ahci-hd be used paravirtualized in Centos? Not quite sure what you mean here: virtio-blk is the paravirtualized disk interface, and it works fine with Centos. later, Peter. From owner-freebsd-virtualization@freebsd.org Thu Aug 4 18:57:06 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01847BAF17D for ; Thu, 4 Aug 2016 18:57:06 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id E0A0812F6 for ; Thu, 4 Aug 2016 18:57:05 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: by mailman.ysv.freebsd.org (Postfix) id DC490BAF17C; Thu, 4 Aug 2016 18:57:05 +0000 (UTC) Delivered-To: virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DBE7FBAF17B for ; Thu, 4 Aug 2016 18:57:05 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail.eeeit.de (mail.eeeit.de [37.120.160.187]) (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 7249A12F5; Thu, 4 Aug 2016 18:57:05 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from localhost (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mike@reifenberger.com) by mail.eeeit.de (Postfix) with ESMTPSA id 92DB84D70; Thu, 4 Aug 2016 20:57:02 +0200 (CEST) Received: from ppp-62-216-199-84.dynamic.mnet-online.de (ppp-62-216-199-84.dynamic.mnet-online.de [62.216.199.84]) by mail.eeeit.de (Horde Framework) with HTTPS; Thu, 04 Aug 2016 20:57:02 +0200 Date: Thu, 04 Aug 2016 20:57:02 +0200 Message-ID: <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> From: Michael Reifenberger To: Peter Grehan Cc: virtualization@freebsd.org Subject: Re: Bhyve tests and findings References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> In-Reply-To: <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 04 Aug 2016 18:57:06 -0000 Zitat von Peter Grehan : > Hi Mike, > >> - Windows 8, 8.1 and 10 installs and runs in graphical mode flawlessly. > > Have you had any issues with the XHCI mouse on 8/8.1 ? > >> - I was able to graphically Restore/Reconfigure a Acronis Windows-Backup >> into a Bhyve instance >> using the Acronis Restore-CD (Converting a BIOS Win8.1 to UEFI Win8.1) > > Very nice ! > >> - Only vnclient from FreeBSD can connect to the bhyve VNC Server. >> I havn't found any vncviewer running on Windows which where able to >> work (tried UltraVNC, RealVNC, ...) > > Some VNC clients refuse to connect when only null-auth is > advertized by the server. There is a patch to bhyve to support VNC > password-auth, which may fix the issue with these clients. > Yes, that sounds reasonable. >> - in VNC only most basic Keys work most special characters like (*\@) >> (and of course no german localization) >> but at least a usual US-kbd would be helpful. >> (Is there a way to debug the keystrokes or duplicate a localized VNC >> kbd from some VNC server) > > Nothing outside of modifying the source, but it seems useful enough > to add a parameter for this. > >> - For the SAP-Systems it seems that only 4 disks get used when the disk >> type is virtio-blk. >> (Is this intentionally or a feature of vm-bhyve? How to provide more >> disks) > > I'll let Matt comment on that. There's no limitation with guests > that support MSI interrupts for adapters. Unfortunately, Windows > guests require legacy interrupts for the AHCI controller, which is > where the restriction originates. > I'd like to use a 6 disks setup with Centos7. Centos7 on XEN PVM has no issue with supporting 6 paravirtulized disks. Thats the config (for vm-bhyve) where only the first 4 disks are used for the guest (Centos7): uefi="yes" cpu=1 memory=2G network0_type="virtio-net" network0_switch="public" disk0_name="root" disk0_type="virtio-blk" disk0_dev="zvol" disk1_name="swap" disk1_type="virtio-blk" disk1_dev="zvol" disk2_name="sapmnt" disk2_type="virtio-blk" disk2_dev="zvol" disk3_name="usrsap" disk3_type="virtio-blk" disk3_dev="zvol" disk4_name="db" disk4_type="virtio-blk" disk4_dev="zvol" disk5_name="log" disk5_type="virtio-blk" disk5_dev="zvol" graphics="yes" graphics_port="5903" graphics_listen="0.0.0.0" graphics_res="1600x900" graphics_wait="no" xhci_mouse="yes" >> - It seems to miss a way to add an ISO CD/DVD without booting from it >> automatically. > > There is work ongoing to support UEFI NVVARs, which mostly fix the > boot-device selection issues. > >> Also ISO's seem to miss a hot-plug feature (f.e. for inserting driver >> CD's after installation. > > Yes, also not there. > >> Some additional questions: >> - Can one over-provisioning/ballooning guest memory's ? > > Over-provisioning is fine - bhyve guest memory is backed by swap by > default. There is currently no balloon driver backend in bhyve. > >> - Is it (speed-wise) better to use ZFS-zvol's or files in regular >> ZFS-directories? > > I think that is workload-dependent. > >> - Are the virtio-blk or ahci-hd disks having the same overhead? > > No - virtio-blk should be better. > >> - Can ahci-hd be used paravirtualized in Centos? > > Not quite sure what you mean here: virtio-blk is the > paravirtualized disk interface, and it works fine with Centos. I mean: If I use ahci-hd in the bhyve config, is Centos7 smart enough to see/use para-virtual disks (/dev/vd*) or use AHCI-Disks /dev/sd*) Thanks! Greetings --- Mike Gruß --- Michael Reifenberger From owner-freebsd-virtualization@freebsd.org Fri Aug 5 01:31:09 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE455BAC696 for ; Fri, 5 Aug 2016 01:31:09 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 47FE51E79 for ; Fri, 5 Aug 2016 01:31:07 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39309083 for freebsd-virtualization@freebsd.org; Fri, 05 Aug 2016 07:30:52 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.14.9/8.14.9) with ESMTP id u751V5pK089159 for ; Fri, 5 Aug 2016 08:31:05 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.14.9/8.14.9/Submit) id u751V2kg089158 for freebsd-virtualization@freebsd.org; Fri, 5 Aug 2016 08:31:02 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 5 Aug 2016 08:31:02 +0700 From: Victor Sudakov To: freebsd-virtualization@freebsd.org Subject: Re: Bhyve tests and findings Message-ID: <20160805013102.GA88553@admin.sibptus.transneft.ru> References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 01:31:09 -0000 > > uefi="yes" > graphics="yes" Dear Colleagues, Can I enjoy and test all those nice "UEFI-GOP" features on a 10.3-RELEASE system, or do I have to install CURRENT for that? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-virtualization@freebsd.org Fri Aug 5 01:40:04 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCB50BAC8B2 for ; Fri, 5 Aug 2016 01:40:04 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 4583A12F5 for ; Fri, 5 Aug 2016 01:40:03 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39309086 for freebsd-virtualization@freebsd.org; Fri, 05 Aug 2016 07:39:48 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.14.9/8.14.9) with ESMTP id u751e21S089373 for ; Fri, 5 Aug 2016 08:40:02 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.14.9/8.14.9/Submit) id u751dxaP089357 for freebsd-virtualization@freebsd.org; Fri, 5 Aug 2016 08:39:59 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 5 Aug 2016 08:39:59 +0700 From: Victor Sudakov To: freebsd-virtualization@freebsd.org Subject: A couple of newbie questions Message-ID: <20160805013959.GB88553@admin.sibptus.transneft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 01:40:05 -0000 Colleagues, I like bhyve very much, and have sucessfully run FreeBSD and Ubuntu 16.04 server in FreeBSD 10.3 bhyve, with vm-bhyve as a shell. Now I am trying to boot Windows 7 but have not succeeded so far. However there are things I don't quite understand. A couple of questions, if you allow. 1. Why is it that for some guest systems, there are two stages: first bhyveload or grub2-bhyve and then bhyve itself. And for UEFI systems there is only one stage. Does it mean that eventually bhyveload and grub2-bhyve will become totally obsolete and the one-stage VM startup procedure will become the universal method? 2. All this fbuf/VNC stuff looks cool, but I don't quite understand. You can see the guest OS's console in VNC, like the Windows desktop, or only the UEFI shell, and then you have to access the guest OS via RDP/ssh etc ? TIA for explanations. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-virtualization@freebsd.org Fri Aug 5 03:16:05 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C956BAF9A3 for ; Fri, 5 Aug 2016 03:16:05 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id D38081D4D for ; Fri, 5 Aug 2016 03:16:03 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp14-2-4-72.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.4.72]) by ipmail04.adl6.internode.on.net with ESMTP; 05 Aug 2016 12:45:55 +0930 To: freebsd-virtualization@freebsd.org From: Shane Ambler Subject: bhyve in endless loop after filling host disk quota Message-ID: <57A404E9.4030504@ShaneWare.Biz> Date: Fri, 5 Aug 2016 12:45:53 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 03:16:05 -0000 Hey guys, I found a situation where a bhyve that is using a zvol as a single disk zpool can start an endless loop of errors when the host's parent zfs reaches it's quota while the zvol still has some free space. The solution was to increase the parent quota, but while the bhyve console outputs a continuous stream of errors it otherwise appears to be unresponsive and locked up. I started the bhyve using bhyve-rc so didn't have a visible console when it became unresponsive. The host is running stable/10 r299401 on a corei5 8GB with a 3 disk raidz zpool The bhyve was boot up from an 11-beta2 dvd then installed onto a single disk zpool using a geom zvol from the host. Once running I installed svn then checked out current (r303678) then built and installed current with a generic kernel that had the debug options removed. /usr/ports and distfiles are read from the host by nfs. After setting up poudriere and building some ports it seems a lot more disk space has been used than expected which has lead to a situation where the bhyve system is spewing out a continuous stream of error messages and is 99% unresponsive. I say 99% unresponsive as nginx inside the bhyve was able to serve the poudriere info and log files. The existing ssh session that started poudriere was unresponsive and I was unable to start a new ssh session. I could tmux into the bhyve console and see a stream of errors, I could see a login prompt between errors and entered a login and password but the login didn't happen until the bhyve was responsive again. The last port build completed about 5 hours ago so this would appear to have created an endless loop. I found the situation appears to have arisen from the fact that the zvol was given a size of 100G and it's parent zfs has a quota of 300G, with copies=2 and some other 20 to 30G disk images, the 300G has been met, while inside the bhyve it should be seeing a 100G disk with some free space. After adjusting the quota and regaining access, inside the bhyve the zpool reports ALLOC=32.8G FREE=62.7G so some extra disk usage is being used without being obvious. Some relevant host zvol info - copies 2 used 177G volsize 100G usedbysnapshots 35.6G usedbydataset 141G written 28.3G logicalused 86.6G logicalreferenced 68.0G volmode geom A sample of the errors - (with the last two numbers changing) vtbd0: hard error cmd=write 116882384-116882639 vtbd0: hard error cmd=write 116884960-116885215 vtbd0: hard error cmd=write 116885216-116885471 vtbd0: hard error cmd=write 116885472-116885727 vtbd0: hard error cmd=write 116885728-116885983 vtbd0: hard error cmd=write 60261136-60261151 vtbd0: hard error cmd=write 60261152-60261167 vtbd0: hard error cmd=write 60261168-60261183 vtbd0: hard error cmd=write 116882640-116882719 vtbd0: hard error cmd=write 116882720-116882735 -- FreeBSD - the place to B...Software Developing Shane Ambler From owner-freebsd-virtualization@freebsd.org Fri Aug 5 06:22:25 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9FA4CBAF0A7 for ; Fri, 5 Aug 2016 06:22:25 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "0x20.net", Issuer "StartCom Class 1 DV Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 667CB19A9 for ; Fri, 5 Aug 2016 06:22:25 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 0E36A6E0081; Fri, 5 Aug 2016 08:22:22 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id u756MLKG002606; Fri, 5 Aug 2016 08:22:21 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id u756MJxc002180; Fri, 5 Aug 2016 08:22:19 +0200 (CEST) (envelope-from lars) Date: Fri, 5 Aug 2016 08:22:19 +0200 From: Lars Engels To: Victor Sudakov Cc: freebsd-virtualization@freebsd.org Subject: Re: Bhyve tests and findings Message-ID: <20160805062219.GM148@e-new.0x20.net> References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> <20160805013102.GA88553@admin.sibptus.transneft.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Zqu75NDXmDJGUu04" Content-Disposition: inline In-Reply-To: <20160805013102.GA88553@admin.sibptus.transneft.ru> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p23 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 06:22:25 -0000 --Zqu75NDXmDJGUu04 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 05, 2016 at 08:31:02AM +0700, Victor Sudakov wrote: > >=20 > > uefi=3D"yes" > > graphics=3D"yes" >=20 > Dear Colleagues, >=20 > Can I enjoy and test all those nice "UEFI-GOP" features on a > 10.3-RELEASE system, or do I have to install CURRENT for that? AFAIK you can checkout usr.sbin/bhyve from the 11 branch and compile it on 10.3. --Zqu75NDXmDJGUu04 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJXpDCbXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tKVAH/iZEplv3mDZ2RME0RDJ0O8y+ qIg6NItPeYnVNzUCuH1SUUIFfKFd9jmDNwnPtgKeBaomsNzUSyPpMmhVZjL6JylK Nc0LAtZAtVZdLCAI7wtOyjOlJWBCCZRvBXTrS56qkFCzLVc725kf4ruJeOUVU+fG uRQJCkcnz0GygPiPK0+cE8ORF/6K6QtYUTRENXC/u7bi5eIghRhbtUvgbloXMxrQ 6MJOeT25FZiLBLGJxC/puRyNKg1tKQ7UiB+zbQxH/bNwT2MWd6vB0DX5Ik2exqE0 mqPqgWQc20nuy+ZyFmjNeZWDfnrRmDtKFBjVS9TQYDq8Vvg0Y12lMlV0OgyPkXk= =iTPI -----END PGP SIGNATURE----- --Zqu75NDXmDJGUu04-- From owner-freebsd-virtualization@freebsd.org Fri Aug 5 06:59:52 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C72B3BAFA50 for ; Fri, 5 Aug 2016 06:59:52 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3D2471C0A for ; Fri, 5 Aug 2016 06:59:50 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39309334; Fri, 05 Aug 2016 12:59:35 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.14.9/8.14.9) with ESMTP id u756xmcc098677; Fri, 5 Aug 2016 13:59:48 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.14.9/8.14.9/Submit) id u756xjXl098675; Fri, 5 Aug 2016 13:59:45 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 5 Aug 2016 13:59:45 +0700 From: Victor Sudakov To: Lars Engels Cc: freebsd-virtualization@freebsd.org Subject: Re: Bhyve tests and findings Message-ID: <20160805065945.GA98590@admin.sibptus.transneft.ru> References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> <20160805013102.GA88553@admin.sibptus.transneft.ru> <20160805062219.GM148@e-new.0x20.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160805062219.GM148@e-new.0x20.net> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 06:59:52 -0000 Lars Engels wrote: > > > > > > uefi="yes" > > > graphics="yes" > > > > Dear Colleagues, > > > > Can I enjoy and test all those nice "UEFI-GOP" features on a > > 10.3-RELEASE system, or do I have to install CURRENT for that? > > AFAIK you can checkout usr.sbin/bhyve from the 11 branch and compile it > on 10.3. I'm not sure how to compile something from a different branch without compiling the whole world. make what? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-virtualization@freebsd.org Fri Aug 5 07:04:23 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 461B3BAFC33 for ; Fri, 5 Aug 2016 07:04:23 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "0x20.net", Issuer "StartCom Class 1 DV Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F1A3B1173 for ; Fri, 5 Aug 2016 07:04:22 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id BCD0E6E0081; Fri, 5 Aug 2016 09:04:20 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id u7574K9h099071; Fri, 5 Aug 2016 09:04:20 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id u7574KEn098380; Fri, 5 Aug 2016 09:04:20 +0200 (CEST) (envelope-from lars) Date: Fri, 5 Aug 2016 09:04:20 +0200 From: Lars Engels To: Victor Sudakov Cc: Lars Engels , freebsd-virtualization@freebsd.org Subject: Re: Bhyve tests and findings Message-ID: <20160805070420.GN148@e-new.0x20.net> References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> <20160805013102.GA88553@admin.sibptus.transneft.ru> <20160805062219.GM148@e-new.0x20.net> <20160805065945.GA98590@admin.sibptus.transneft.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MgcI0aUO3vrRQI/Z" Content-Disposition: inline In-Reply-To: <20160805065945.GA98590@admin.sibptus.transneft.ru> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p23 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 07:04:23 -0000 --MgcI0aUO3vrRQI/Z Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 05, 2016 at 01:59:45PM +0700, Victor Sudakov wrote: > Lars Engels wrote: > > > >=20 > > > > uefi=3D"yes" > > > > graphics=3D"yes" > > >=20 > > > Dear Colleagues, > > >=20 > > > Can I enjoy and test all those nice "UEFI-GOP" features on a > > > 10.3-RELEASE system, or do I have to install CURRENT for that? > >=20 > > AFAIK you can checkout usr.sbin/bhyve from the 11 branch and compile it > > on 10.3. >=20 > I'm not sure how to compile something from a different branch without > compiling the whole world. make what? For bhyve it's easy. Check out the sources, go to usr.sbin/bhyve and run make depend; make obj; make; make install.=20 --MgcI0aUO3vrRQI/Z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJXpDp0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tQGIH/j/69FRfiwE+LzEbfTQJDDgy OUxQFafxftamkDYcerlJfk0v/juppwQdLYeR5OmPSi1E28mjK+joZHu0ATjUnDIc IRJUblzNzmf9bOLkWEbOvIYLuGrEksJE1xTtmffXibeopHp2kSn9vOHGUK+JmhrO pfROlN61ZP82BZApX5Zf1Xs4iapgBfH/J5nhxtgCS/RgfYfNMjPQ0Hmc71ZKfDc0 azUEYjFVyVOWUc+Tif1GcIxOL26zVxn9Qwyl+SYJUbdFwaspTIf9gW1s++YINour 5+KaGkEOqwWO9srS3JDNq619/83P0U481GvsKjbnrtnqPyvgI2rB5up6rwzKJSc= =4hcF -----END PGP SIGNATURE----- --MgcI0aUO3vrRQI/Z-- From owner-freebsd-virtualization@freebsd.org Fri Aug 5 08:00:23 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3DADBAF8C1 for ; Fri, 5 Aug 2016 08:00:22 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.userve.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8FF921880 for ; Fri, 5 Aug 2016 08:00:21 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) by smtp-outbound.userve.net (8.15.1/8.15.1) with ESMTPS id u7580Dtf069358 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 5 Aug 2016 09:00:13 +0100 (BST) (envelope-from matt.churchyard@userve.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=userve.net; s=201508; t=1470384014; bh=GPr/ZJ2AaIhEOLAUNRuqoauYSu5jdElx6f9XsWJLMCA=; h=From:To:Subject:Date:References:In-Reply-To; b=lgPCcwjELKoyxO83yyU8VxakWwvnQgJE4ksujoQZZeM0/QaaC4hdHd0je+3jnWfF3 0w/mA3IL8IzAu9tAtosM91z9drBfyd1BHTzBBWpLTfR0bKK74+Kz+XUscZ9iUqFABo DXnaaVGbwFaKgiPxl1vjqmxkfauNEvwjGhLaV2wY= Received: from SERVER.ad.usd-group.com (192.168.0.1) by SERVER.ad.usd-group.com (192.168.0.1) with Microsoft SMTP Server (TLS) id 15.0.847.32; Fri, 5 Aug 2016 09:00:07 +0100 Received: from SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9]) by SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9%12]) with mapi id 15.00.0847.030; Fri, 5 Aug 2016 09:00:07 +0100 From: Matt Churchyard To: Victor Sudakov , "freebsd-virtualization@freebsd.org" Subject: RE: Bhyve tests and findings Thread-Topic: Bhyve tests and findings Thread-Index: AQHR7kRdr3sAT9ONiUKmemTIvMbYHaA49GsAgAAiQQCAAG4VAIAAfPvA Date: Fri, 5 Aug 2016 08:00:07 +0000 Message-ID: <41e37f40673440698948fb88f5c57239@SERVER.ad.usd-group.com> References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> <20160805013102.GA88553@admin.sibptus.transneft.ru> In-Reply-To: <20160805013102.GA88553@admin.sibptus.transneft.ru> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.0.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 08:00:23 -0000 >=20 > uefi=3D"yes" > graphics=3D"yes" > Dear Colleagues, > Can I enjoy and test all those nice "UEFI-GOP" features on a 10.3-RELEASE= system, or do I have to install CURRENT for that? I believe you should also be able to use the 11 beta. Matt From owner-freebsd-virtualization@freebsd.org Fri Aug 5 08:22:54 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AD9CEBAFF9A for ; Fri, 5 Aug 2016 08:22:54 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.userve.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47E251813 for ; Fri, 5 Aug 2016 08:22:54 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) by smtp-outbound.userve.net (8.15.1/8.15.1) with ESMTPS id u758MlJV024484 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 5 Aug 2016 09:22:47 +0100 (BST) (envelope-from matt.churchyard@userve.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=userve.net; s=201508; t=1470385369; bh=UBbd7adAiV36lyk/eV1J8Wky2vTRmXcTCO6FIaAYz8Y=; h=From:To:Subject:Date:References:In-Reply-To; b=nPfSYyY1hzX+Wyg/Nl78eu/p4DRbcjC/jMTyKXWt2dZlaMnx28ezOoET110cCRTAp ivKAUoiIGEyiBbm7oKiAZAcjGmaqfrREmNBg7Ws5CJg3ngumvJHPe11h0swO4JX61D bwjSI3pH8K3gs6ShqDsZA21me34lSPLE7SvhA4qc= Received: from SERVER.ad.usd-group.com (192.168.0.1) by SERVER.ad.usd-group.com (192.168.0.1) with Microsoft SMTP Server (TLS) id 15.0.847.32; Fri, 5 Aug 2016 09:22:42 +0100 Received: from SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9]) by SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9%12]) with mapi id 15.00.0847.030; Fri, 5 Aug 2016 09:22:41 +0100 From: Matt Churchyard To: Victor Sudakov , "freebsd-virtualization@freebsd.org" Subject: RE: A couple of newbie questions Thread-Topic: A couple of newbie questions Thread-Index: AQHR7rpPT6M0ia2brUeMQ7dq7+Nn06A6AVmg Date: Fri, 5 Aug 2016 08:22:41 +0000 Message-ID: <1bbf6ac4afff44d5a73d2d4545a77c5d@SERVER.ad.usd-group.com> References: <20160805013959.GB88553@admin.sibptus.transneft.ru> In-Reply-To: <20160805013959.GB88553@admin.sibptus.transneft.ru> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.0.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 08:22:54 -0000 Colleagues, >I like bhyve very much, and have sucessfully run FreeBSD and Ubuntu >16.04 server in FreeBSD 10.3 bhyve, with vm-bhyve as a shell. >Now I am trying to boot Windows 7 but have not succeeded so far.=20 >However there are things I don't quite understand. A couple of questions, = if you allow. >1. Why is it that for some guest systems, there are two stages: first bhyv= eload or grub2-bhyve and then bhyve itself. And for UEFI systems there is >= only one stage. Does it mean that eventually bhyveload and grub2-bhyve wil= l become totally obsolete and the one-stage VM startup procedure >will beco= me the universal method? Originally the quickest and easiest way to get guests running on bhyve was = to load the guest into memory "manually", then run it. This started with ju= st bhyveload to load FreeBSD guests, then expanded to supporting various ot= her guests with grub-bhyve. UEFI was required to get Windows running (and m= akes bhyve act a bit more like other hypervisors) but took a lot of effort. UEFI does seem to be the best way to run most guests. Linux guests have alw= ays been a bit finicky unless they have grub2 installed, and the ability to= get remote access to the console makes things like a bhyve web frontend fe= asible. Bhyveload is still a pretty quick and useful way to run FreeBSD guests thou= gh, and I don't think that or grub-bhyve will go anywhere. >2. All this fbuf/VNC stuff looks cool, but I don't quite understand. You c= an see the guest OS's console in VNC, like the Windows desktop, or only >th= e UEFI shell, and then you have to access the guest OS via RDP/ssh etc ? With the frame buffer enabled you see the full guest OS in vnc, same as you= would in Virtualbox/VMWare/etc. Matt >TIA for explanations. >-- >Victor Sudakov, VAS4-RIPE, VAS47-RIPN >sip:sudakov@sibptus.tomsk.ru From owner-freebsd-virtualization@freebsd.org Fri Aug 5 08:46:48 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DA3DBAE42E for ; Fri, 5 Aug 2016 08:46:48 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 10210115C for ; Fri, 5 Aug 2016 08:46:48 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: by mailman.ysv.freebsd.org (Postfix) id 0BD05BAE42D; Fri, 5 Aug 2016 08:46:48 +0000 (UTC) Delivered-To: virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B6F6BAE42C for ; Fri, 5 Aug 2016 08:46:48 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.userve.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B419C115A; Fri, 5 Aug 2016 08:46:47 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) by smtp-outbound.userve.net (8.15.1/8.15.1) with ESMTPS id u758keF0072416 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 5 Aug 2016 09:46:40 +0100 (BST) (envelope-from matt.churchyard@userve.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=userve.net; s=201508; t=1470386801; bh=mnCly/FT7YztPvDUF+pd/RL/+K9oIWcIstvkQx/KEjo=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=k+IVx3VTzsUsSYoBa8lSv8sZfddL9b6IUrwUWqJzUeOJREyD7huXqxY92U70sXWZ/ 54Xlw5RYUGzDouxaYUWfh3Zl0ZJv2+8kd6Q2H0ltoU766jIW8JDmqRbYIAbh3NVNu+ ylGwNr/yJTv/SUKxVipP6xXH7VIONni/Pfdf6n08= Received: from SERVER.ad.usd-group.com (192.168.0.1) by SERVER.ad.usd-group.com (192.168.0.1) with Microsoft SMTP Server (TLS) id 15.0.847.32; Fri, 5 Aug 2016 09:46:34 +0100 Received: from SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9]) by SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9%12]) with mapi id 15.00.0847.030; Fri, 5 Aug 2016 09:46:34 +0100 From: Matt Churchyard To: Michael Reifenberger , Peter Grehan CC: "virtualization@freebsd.org" Subject: RE: Bhyve tests and findings Thread-Topic: Bhyve tests and findings Thread-Index: AQHR7kRdr3sAT9ONiUKmemTIvMbYHaA49GsAgAAiQQCAAPIA4A== Date: Fri, 5 Aug 2016 08:46:34 +0000 Message-ID: <282a992c2cd048c9872526d48e2eef14@SERVER.ad.usd-group.com> References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> In-Reply-To: <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.0.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 08:46:48 -0000 PiBaaXRhdCB2b24gUGV0ZXIgR3JlaGFuIDxncmVoYW5AZnJlZWJzZC5vcmc+Og0KDQo+IEhpIE1p a2UsDQo+DQo+PiAtIFdpbmRvd3MgOCwgOC4xIGFuZCAxMCBpbnN0YWxscyBhbmQgcnVucyBpbiBn cmFwaGljYWwgbW9kZSBmbGF3bGVzc2x5Lg0KPg0KPiAgSGF2ZSB5b3UgaGFkIGFueSBpc3N1ZXMg d2l0aCB0aGUgWEhDSSBtb3VzZSBvbiA4LzguMSA/DQo+DQo+PiAtIEkgd2FzIGFibGUgdG8gZ3Jh cGhpY2FsbHkgUmVzdG9yZS9SZWNvbmZpZ3VyZSBhIEFjcm9uaXMgDQo+PiBXaW5kb3dzLUJhY2t1 cCBpbnRvIGEgQmh5dmUgaW5zdGFuY2UgIHVzaW5nIHRoZSBBY3JvbmlzIFJlc3RvcmUtQ0QgDQo+ PiAoQ29udmVydGluZyBhIEJJT1MgV2luOC4xIH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dWxseSBoYWQgOCBkaXNrcyBpbiBX aW5kb3dzIHVzaW5nIGp1c3QgMSBwY2kgc2xvdC4gVGhpcyB3b24ndCBiZSBpbiAxMS4wIHVuZm9y dHVuYXRlbHkgKGFzIGZhciBhcyBJJ20gYXdhcmUpIGJ1dCBJIGhvcGUgaXQgZ2V0cyBtZXJnZWQg aW50byBhIGZ1dHVyZSAxMSByZWxlYXNlLg0KDQpNYXR0DQo= From owner-freebsd-virtualization@freebsd.org Fri Aug 5 09:04:22 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B3D02BAED8B for ; Fri, 5 Aug 2016 09:04:22 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 290401E69 for ; Fri, 5 Aug 2016 09:04:21 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39309441; Fri, 05 Aug 2016 15:04:05 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.14.9/8.14.9) with ESMTP id u7594I8t001856; Fri, 5 Aug 2016 16:04:18 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.14.9/8.14.9/Submit) id u7594FKo001854; Fri, 5 Aug 2016 16:04:15 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 5 Aug 2016 16:04:15 +0700 From: Victor Sudakov To: Lars Engels Cc: freebsd-virtualization@freebsd.org Subject: Re: Bhyve tests and findings Message-ID: <20160805090415.GA1457@admin.sibptus.transneft.ru> References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> <20160805013102.GA88553@admin.sibptus.transneft.ru> <20160805062219.GM148@e-new.0x20.net> <20160805065945.GA98590@admin.sibptus.transneft.ru> <20160805070420.GN148@e-new.0x20.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160805070420.GN148@e-new.0x20.net> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 09:04:22 -0000 Lars Engels wrote: > On Fri, Aug 05, 2016 at 01:59:45PM +0700, Victor Sudakov wrote: > > Lars Engels wrote: > > > > > > > > > > uefi="yes" > > > > > graphics="yes" > > > > > > > > Dear Colleagues, > > > > > > > > Can I enjoy and test all those nice "UEFI-GOP" features on a > > > > 10.3-RELEASE system, or do I have to install CURRENT for that? > > > > > > AFAIK you can checkout usr.sbin/bhyve from the 11 branch and compile it > > > on 10.3. > > > > I'm not sure how to compile something from a different branch without > > compiling the whole world. make what? > > For bhyve it's easy. Check out the sources, go to usr.sbin/bhyve and run > > make depend; make obj; make; make install. At least lib/libvmmapi should also be built and installed. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-virtualization@freebsd.org Fri Aug 5 14:57:36 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 119D2BAF79B for ; Fri, 5 Aug 2016 14:57:36 +0000 (UTC) (envelope-from jstarcher@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E88601D39 for ; Fri, 5 Aug 2016 14:57:35 +0000 (UTC) (envelope-from jstarcher@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id E46A1BAF79A; Fri, 5 Aug 2016 14:57:35 +0000 (UTC) Delivered-To: virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E40A8BAF799 for ; Fri, 5 Aug 2016 14:57:35 +0000 (UTC) (envelope-from jstarcher@gmail.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (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 ADF6D1D38 for ; Fri, 5 Aug 2016 14:57:35 +0000 (UTC) (envelope-from jstarcher@gmail.com) Received: by mail-io0-x236.google.com with SMTP id b62so301996835iod.3 for ; Fri, 05 Aug 2016 07:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=xUxBR4BGJ5dkmhaWaAQn/5vrvEw3dLFYW9+FynuypVI=; b=XaUyu/gXyllXMHZPqLmKNl5Qqj8qf8N/jNpR5cok7m+16+utf8eRBuiw3hiN98xcPb 402LCOr4RR4a0ELfjywES5cHo+RuQ2K2IfCtUnvgD5yIGy252JoAFg1Wub07uGJqzKCm CyN7sFTl4PR2uBKpsoN28vklOIUtPB9JzbhsPWtlxhRq9jXnTdAYfog1Wr4fHx9q2UDq mdpnEPLB/KfxErRQ5lmdL36zE2I9MYDHV11oY3EStIgJSAt+/iwtWF1S7hGsGra02+ha +HLojoxsYeXd/ON91eKBIKOWuH7StxQPnnPDtRD1uf4HkraJiSlGddt+br1gKh7YUX/4 DH4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xUxBR4BGJ5dkmhaWaAQn/5vrvEw3dLFYW9+FynuypVI=; b=Ixfz6T75paLr2gYd55/gNMUldCYp9mfsk8Y0Jwa8VJD9DJo+ELd+ayCg0aGQKQcIr9 p45yDutzwC/CSySwGkE9n9SKFBLIC611H9QmF1UTUvYlVmKuDWMGt05h0fV9IpyCGSGp wkmg7eYbFEpG8uRwwMr4coUZ4lAfI5AM0omM+Adtorm1Vaxnq7H6Lyf2BbJvuJQil9Jz qtbaRJnoPaLZGmxoZXlGHhz0JEYDtjeIOBLPVXRzNqaXB13v8hnVwPRx/qnu435TUaAo byyMeDOFZla/+3VG93FDkUP2lBHmOaYYwNany+2LSpJemNW4khRii57Wzf5HTdu1U/cj HW/Q== X-Gm-Message-State: AEkooutpoD0eu+A+BehQhLDTWX9o7+AB5zwTF2uxtipBPE0a73I3Kps0jtUCwzgbb1rl503MBQB+AGKaJOuLKQ== X-Received: by 10.107.8.140 with SMTP id h12mr83793802ioi.95.1470409054517; Fri, 05 Aug 2016 07:57:34 -0700 (PDT) MIME-Version: 1.0 From: Jordan Starcher Date: Fri, 05 Aug 2016 14:57:23 +0000 Message-ID: Subject: OS X Guest on Bhyve To: virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 14:57:36 -0000 Hi, I was wondering if anyone has had any luck running OS X as a guest on under bhyve? I can't find any info anywhere and was curious if it is feasible. Thanks, Jordan From owner-freebsd-virtualization@freebsd.org Fri Aug 5 15:09:09 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A731ABAFBE1 for ; Fri, 5 Aug 2016 15:09:09 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: from mail-yw0-x231.google.com (mail-yw0-x231.google.com [IPv6:2607:f8b0:4002:c05::231]) (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 65B9C150A for ; Fri, 5 Aug 2016 15:09:09 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: by mail-yw0-x231.google.com with SMTP id j12so268332870ywb.2 for ; Fri, 05 Aug 2016 08:09:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=H876PgXD9rJJkYvqJHWbP1clNbTbrBpM9S9vQj95LRw=; b=D88sull0D9tTDH49yVDocAp228cF6qVk2WddHiw3XXz549EgUiLxUcsar8G7i9CHJT 1wnrCUK3BQfHb+++loJZJVUj1qwtGrJuQD0D/5SPb5T8BNJ94nYL3TlV+Pfn3bnjSTHh Y3Ifb9jlG8WIn1xxoHahBzo16v1hVnAyxGrumi3leSk12OG5lW0aEwyZdE8pYuHSLoW6 dAXIHkO2mCLfSxqV+4vXCa6nG+I0FRCzgchE3au1d/fUX6LxLcGqOhHV1Twq2dL5dm/l X8VpeizBHKw4vKGxq8invUOZLeNs/kvDezE1OO82KmPcGv1BoHWVcmdv7WJgBTdY04OX slxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=H876PgXD9rJJkYvqJHWbP1clNbTbrBpM9S9vQj95LRw=; b=KbyRoYN1c8Sx8CnpmqvDRF+iMkTLW/2P8len5ru2pHY+qLi76VxX8rBUx6nP4ERQkv VjkRh8JbYqt2mqH6b8j5YSBmyQhqJWqUR/+CCrKgNEACgcgWkbGoimKpBpeq4M4SrwfD 59PnLR/g19bwWR+k+utufL933zvOzlKNXaFPaFZLaYHjO7Vq2ipUtgJncgLOiN/YGiou ffCfl3FKugw/bfn0H569d4LEBnxcOj4pnawwrm0o7CX+3pPHB1iMtG6EOY9cdEcDq8QW +2TeWREq4Akrjs6KBXzCbiziWuXQ//zYFtt8SFVpPK/C08eC9IWNEIsrV8eWmDOJ6Bzd wEZw== X-Gm-Message-State: AEkoouvRZL+MaMo08bIW64+UBXl5i/czeFVhndPnbmjXaSe2gpBeqgYlvvBabgJwdalRZNsGGnS9wRGOknrFyQ== X-Received: by 10.129.95.67 with SMTP id t64mr56415871ywb.204.1470409748530; Fri, 05 Aug 2016 08:09:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.196.196 with HTTP; Fri, 5 Aug 2016 08:09:08 -0700 (PDT) In-Reply-To: References: From: Trent Thompson Date: Fri, 5 Aug 2016 09:09:08 -0600 Message-ID: Subject: Re: OS X Guest on Bhyve To: Jordan Starcher , FreeBSD virtualization Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 15:09:09 -0000 Jordan, I've attempted this in the past, and got to an Apple boot screen [1] using the Clover "Hackintosh" bootloader and Mac OS X 10.11 El Capitan. However, depending on the drivers used [2], the instance will either "blow up" (crash), or just sit there and hang. After creating the Clover USB stick, I just use dd to write the image to a file and use that with the ahci-hd bhyve driver. I don't attach anything else, no serial, no network, or second hard drive yet. According to some Hackintosh people, we should try different Clover Drivers and "kexts," as well as booting into "verbose mode" so we can see how far the boot gets, and where it breaks. I also don't think I'm the only one working on this... Hope this information helps. -Trent (pr1ntf) [1] https://twitter.com/pr1ntf/status/750574003954352128 [2] https://twitter.com/pr1ntf/status/759734390310121472 From owner-freebsd-virtualization@freebsd.org Fri Aug 5 15:15:26 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE5ECBAFE8F for ; Fri, 5 Aug 2016 15:15:26 +0000 (UTC) (envelope-from corys@ixsystems.com) Received: from barracuda.ixsystems.com (barracuda.ixsystems.com [12.229.62.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.ixsystems.com", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D6541B20 for ; Fri, 5 Aug 2016 15:15:26 +0000 (UTC) (envelope-from corys@ixsystems.com) X-ASG-Debug-ID: 1470410125-08ca0410fd267710001-XWyayz Received: from zimbra.ixsystems.com ([10.246.0.20]) by barracuda.ixsystems.com with ESMTP id qouWkRQhbgaAy21B (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 05 Aug 2016 08:15:26 -0700 (PDT) X-Barracuda-Envelope-From: corys@ixsystems.com X-Barracuda-RBL-Trusted-Forwarder: 10.246.0.20 X-ASG-Whitelist: Client Received: from localhost (localhost [127.0.0.1]) by zimbra.ixsystems.com (Postfix) with ESMTP id E33C57E52DF; Fri, 5 Aug 2016 08:15:25 -0700 (PDT) Received: from zimbra.ixsystems.com ([127.0.0.1]) by localhost (zimbra.ixsystems.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Qs63132kNcRB; Fri, 5 Aug 2016 08:15:25 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.ixsystems.com (Postfix) with ESMTP id 7FCFD7E5566; Fri, 5 Aug 2016 08:15:25 -0700 (PDT) X-Virus-Scanned: amavisd-new at ixsystems.com Received: from zimbra.ixsystems.com ([127.0.0.1]) by localhost (zimbra.ixsystems.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Yq8XemMj-J4R; Fri, 5 Aug 2016 08:15:25 -0700 (PDT) Received: from zimbra.ixsystems.com (zimbra.ixsystems.com [10.246.0.20]) by zimbra.ixsystems.com (Postfix) with ESMTP id 654507E52DF; Fri, 5 Aug 2016 08:15:25 -0700 (PDT) Date: Fri, 5 Aug 2016 08:15:25 -0700 (PDT) To: Jordan Starcher , Trent Thompson , FreeBSD virtualization Message-ID: <12A9472526197CE3.CA09789D-007C-4273-8C4C-602CB5C7177F@mail.outlook.com> Subject: Re: OS X Guest on Bhyve X-Mailer: Outlook for iOS and Android X-ASG-Orig-Subj: Re: OS X Guest on Bhyve X-Mailer: Zimbra 8.6.0_GA_1153 (Outlook-iOS-Android/1.0(...197ce3) devip=52.37.55.163 ZPZB/63) From: Cory Smelosky MIME-Version: 1.0 X-Originating-IP: [10.246.0.30] In-Reply-To: References: Thread-Topic: OS X Guest on Bhyve Thread-Index: 3am6fyYXXrq41k7ggEXpcW7lNMDD1w== X-Barracuda-Connect: UNKNOWN[10.246.0.20] X-Barracuda-Start-Time: 1470410126 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://10.246.0.26:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ixsystems.com X-Barracuda-BRTS-Status: 1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 15:15:26 -0000 I am unaware of any drivers for virtio-net or the ne2k for OS X offhand, ho= wever if there ends up being an e1000 emilation you will be golden there. OS X should be happy with the AHCI device however. If I get bored this weekend I may take a crack at it - I'm betting it's App= leIntelCPUPowerManagement.kext related proving issues. On Fri, Aug 5, 2016 at 8:09 AM -0700, "Trent Thompson" wrote: Jordan, I've attempted this in the past, and got to an Apple boot screen [1] using the Clover "Hackintosh" bootloader and Mac OS X 10.11 El Capitan. However, depending on the drivers used [2], the instance will either "blow up" (crash), or just sit there and hang. After creating the Clover USB stick, I just use dd to write the image to a file and use that with the ahci-hd bhyve driver. I don't attach anything else, no serial, no network, or second hard drive yet. According to some Hackintosh people, we should try different Clover Drivers and "kexts," as well as booting into "verbose mode" so we can see how far the boot gets, and where it breaks. I also don't think I'm the only one working on this... Hope this information helps. -Trent (pr1ntf) [1] https://twitter.com/pr1ntf/status/750574003954352128 [2] https://twitter.com/pr1ntf/status/759734390310121472 _______________________________________________ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebs= d.org" From owner-freebsd-virtualization@freebsd.org Fri Aug 5 15:18:15 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D24BCBAFEF6 for ; Fri, 5 Aug 2016 15:18:15 +0000 (UTC) (envelope-from lists@chuckremes.com) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 94FEC1BF1 for ; Fri, 5 Aug 2016 15:18:15 +0000 (UTC) (envelope-from lists@chuckremes.com) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 35E14202C1 for ; Fri, 5 Aug 2016 11:18:14 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Fri, 05 Aug 2016 11:18:14 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=chuckremes.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=8OpYqbXCGQBXZKtSfuA6Es1hhVU=; b=hdzi+H czQYC/fBhER95gzNbdpmAKl53iEIjUm8uurw85F20J1YMUFsnCXcp7a5drXXCo3L vQ60x/8BkuiOOQI/RcViVeYpFzuC5xHEXfrJIlrxmhZMW9b2MxaQF1IlF+ZGJI6n wgM+vSdI7nngSt/Jrk39/0sgnuWod1fSLR6es= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=8OpYqbXCGQBXZKt SfuA6Es1hhVU=; b=rVsebsh9lHOfOjUEEwGFu1PsodtwoUnB3DQyV2mnZg8D+zt /0kb0dS2CcuLLhSq5tKmq3x2GTUXTl//OR9xa9LAzEgFhRO+E+RHQ5auzrPFKhQ6 PMuWsnPI12Gm4fgLaT1G11kHD0Zl2ly+U+Hu0SK7ZJWxrmQ8D2VJVXRSTaIc= X-Sasl-enc: T62Y42YqssaFVRrx52V6aDOVP2oQJ7a27x3Pe5piEMtt 1470410293 Received: from [192.168.1.245] (c-50-172-18-81.hsd1.il.comcast.net [50.172.18.81]) by mail.messagingengine.com (Postfix) with ESMTPA id D3D5CCCDA6 for ; Fri, 5 Aug 2016 11:18:13 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: OS X Guest on Bhyve From: Charles Remes In-Reply-To: <12A9472526197CE3.CA09789D-007C-4273-8C4C-602CB5C7177F@mail.outlook.com> Date: Fri, 5 Aug 2016 10:18:13 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <3171CA5F-87C7-4BC5-B851-486622C192F4@chuckremes.com> References: <12A9472526197CE3.CA09789D-007C-4273-8C4C-602CB5C7177F@mail.outlook.com> To: freebsd-virtualization@freebsd.org X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 15:18:15 -0000 There is a virtio-net driver but it=E2=80=99s likely out of date. See = here: https://github.com/pmj/virtio-net-osx The author periodically responds to opened issues but has stated they = don=E2=80=99t have time to continue work on it. This did work at one = point so it probably just needs some bit-rot repaired. > On Aug 5, 2016, at 10:15, Cory Smelosky wrote: >=20 > I am unaware of any drivers for virtio-net or the ne2k for OS X = offhand, however if there ends up being an e1000 emilation you will be = golden there. > OS X should be happy with the AHCI device however. >=20 > If I get bored this weekend I may take a crack at it - I'm betting = it's AppleIntelCPUPowerManagement.kext related proving issues. >=20 > On Fri, Aug 5, 2016 at 8:09 AM -0700, "Trent Thompson" = wrote: >=20 > Jordan, > I've attempted this in the past, and got to an Apple boot screen [1] = using > the Clover "Hackintosh" bootloader and Mac OS X 10.11 El Capitan. = However, > depending on the drivers used [2], the instance will either "blow up" > (crash), or just sit there and hang. After creating the Clover USB = stick, I > just use dd to write the image to a file and use that with the ahci-hd > bhyve driver. I don't attach anything else, no serial, no network, or > second hard drive yet. According to some Hackintosh people, we should = try > different Clover Drivers and "kexts," as well as booting into "verbose > mode" so we can see how far the boot gets, and where it breaks. >=20 > I also don't think I'm the only one working on this... >=20 > Hope this information helps. >=20 > -Trent (pr1ntf) >=20 > [1] https://twitter.com/pr1ntf/status/750574003954352128 > [2] https://twitter.com/pr1ntf/status/759734390310121472 > _______________________________________________ > 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" > _______________________________________________ > 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" From owner-freebsd-virtualization@freebsd.org Fri Aug 5 15:18:54 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1C29BAFF3A for ; Fri, 5 Aug 2016 15:18:54 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) 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 A5C251C57 for ; Fri, 5 Aug 2016 15:18:54 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt0-x235.google.com with SMTP id x25so175599758qtx.2 for ; Fri, 05 Aug 2016 08:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TEkmuiOLbz/M8YsvJs024bTeBOWmGQiYpNdY90cDHOE=; b=EGyLaZnxxWgeiy7qZ1IOE/d8QoLnhw6kK4UV4vTd2p8SzpF0L2E6IUFGbuujw3Dv0f Qbp8zRZjX3UyJbZsCiS6JAy+7oN4J+ui7qv4cj5Rl2rTbYoMTwqOYNskK+kAxJy9ZctQ oLHnqCl5bO7jUV+Xr0iD5B/s86RfyOVaJOT6sSpG65WAqc2ZHPt/A0SCGbNK5uqNzSFg iAxRG2x0EPgHzrNd2P8Sw95NoXRTIw7CiqQ3FFAExrAFVzVO9eHa+25Ftww/wIA3j96o +eLNySn/I3AAefJiqhM1Y5c7Tzu0tJ67KB3EfT6Dk0fyNkblhOxSb8vwOeFjxREBcccs D42w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TEkmuiOLbz/M8YsvJs024bTeBOWmGQiYpNdY90cDHOE=; b=AQFrWnvhzQCPq2rcV41zIZuiu6iHuqvTFudqoEOQAwRpRhJ/QOC2PgpmnDE6U/jh3I eTeY9hopFEEAPpBZ/aP8m8roWuTNbKBA6dcMJ/v+5ZZAlsWz1S9YfhI8pc9JT5+QNtCX AcKP299LIcrNJ3Hy22ydNr+Ol1nDjvGwEmGu7f1ZD1SZDt6UWlk1H0kB6VQlMTpb2aPW MkxUiGHwApeisiixkABAtpdQYp86vRTnfvtMtwT8FvPxW1DGw8xdM98AVR29lPTzm7zJ a+zd9WaKDYuKHIgzq/D/bNLnlNPL1qmcgY45InnG7aIBgoYOuIpxOjnoRUfp3ZSBvQla /Nlw== X-Gm-Message-State: AEkoous9LPozSHKl0wwflhE20K6KPpDT/kOYxb27rT3vHFeLO6dXS5whu0BpfTvGsY7j8TbX X-Received: by 10.200.44.143 with SMTP id 15mr13671903qtw.134.1470410333661; Fri, 05 Aug 2016 08:18:53 -0700 (PDT) Received: from mutt-hardenedbsd (pool-100-16-217-171.bltmmd.fios.verizon.net. [100.16.217.171]) by smtp.gmail.com with ESMTPSA id r29sm9804733qte.48.2016.08.05.08.18.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Aug 2016 08:18:52 -0700 (PDT) Date: Fri, 5 Aug 2016 11:18:50 -0400 From: Shawn Webb To: Cory Smelosky Cc: Jordan Starcher , Trent Thompson , FreeBSD virtualization Subject: Re: OS X Guest on Bhyve Message-ID: <20160805151850.GN7956@mutt-hardenedbsd> References: <12A9472526197CE3.CA09789D-007C-4273-8C4C-602CB5C7177F@mail.outlook.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Pjk796cY0SfIo9Z2" Content-Disposition: inline In-Reply-To: <12A9472526197CE3.CA09789D-007C-4273-8C4C-602CB5C7177F@mail.outlook.com> X-Operating-System: FreeBSD mutt-hardenedbsd 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 15:18:55 -0000 --Pjk796cY0SfIo9Z2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable If I remember right, bhyve on 12-CURRENT now supports e1000 emulation. Thanks, Shawn On Fri, Aug 05, 2016 at 08:15:25AM -0700, Cory Smelosky wrote: > I am unaware of any drivers for virtio-net or the ne2k for OS X offhand, = however if there ends up being an e1000 emilation you will be golden there. > OS X should be happy with the AHCI device however. >=20 > If I get bored this weekend I may take a crack at it - I'm betting it's A= ppleIntelCPUPowerManagement.kext related proving issues. >=20 > On Fri, Aug 5, 2016 at 8:09 AM -0700, "Trent Thompson" wrote: >=20 > Jordan, > I've attempted this in the past, and got to an Apple boot screen [1] using > the Clover "Hackintosh" bootloader and Mac OS X 10.11 El Capitan. However, > depending on the drivers used [2], the instance will either "blow up" > (crash), or just sit there and hang. After creating the Clover USB stick,= I > just use dd to write the image to a file and use that with the ahci-hd > bhyve driver. I don't attach anything else, no serial, no network, or > second hard drive yet. According to some Hackintosh people, we should try > different Clover Drivers and "kexts," as well as booting into "verbose > mode" so we can see how far the boot gets, and where it breaks. >=20 > I also don't think I'm the only one working on this... >=20 > Hope this information helps. >=20 > -Trent (pr1ntf) >=20 > [1] https://twitter.com/pr1ntf/status/750574003954352128 > [2] https://twitter.com/pr1ntf/status/759734390310121472 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org" > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org" --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --Pjk796cY0SfIo9Z2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXpK5YAAoJEGqEZY9SRW7uepUQAIEkfjNvuRaqt3EuR5vVHwr6 db2HPxOwq1SRa8mBvn6WgVzWlpcu8dmMV/i0QEChXKTiaw4zkYT4PIl2bDoIU7VN G3t0Mqc2McA/hIae5rtrR/C18vXqcCZpwegBavlvd0pG5rSvyUnx0JxcjMoWLa4y qI22HG5nCFQE+QF32nVNsbZoVchkI+5sraMUrqZDDqv86mLX3nm3Iajzcy2FszUK BLc8fBeD2ff0uUqDlBdIeQYxgniVrNLN+uPJwVMQad21joOkA/BdfQsMHW32wdK+ d5dhKxds5jeT73RpM4+TLdy94a0qOhjK6b8LVG/4SUzpzipdwt//Jjjr3Rb3gBVD NHtMHlgkidU5lxmIvFCuRT7YAf72DwhOp0sNxmF7bgZ7Sg+wbPbfjcOgiRZJAoy/ L9IOwkWKQuH0JGWCa5xmdsge6k1mDdDU/S+xzlLyzeZVfRKfIT9iRAy+k1zKhHKL LHw0Zl9J7uKXIPHHbwG0ENF6NOYqdqoKTIADoVbqiJJm0u/745zWqda7K8l7AZ5A gWf2SeXe+aS9qhAN0SS7KnDeK4UmyjFkrYdkLsgfhJELCApZGgKoHsKxdHP8Dshe 0gTWG7JEhMnu85YbSKaAln4xXSOV2PeMgCPG+9LKBj1Gbb75TucYnioOWd2Ncs2g kEVwDIIs1vEKPviKrijm =e2CH -----END PGP SIGNATURE----- --Pjk796cY0SfIo9Z2-- From owner-freebsd-virtualization@freebsd.org Fri Aug 5 15:48:49 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E134BB0858 for ; Fri, 5 Aug 2016 15:48:49 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 76EA61362 for ; Fri, 5 Aug 2016 15:48:49 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: by mailman.ysv.freebsd.org (Postfix) id 7299ABB0857; Fri, 5 Aug 2016 15:48:49 +0000 (UTC) Delivered-To: virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7238ABB0856 for ; Fri, 5 Aug 2016 15:48:49 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail.eeeit.de (mail.eeeit.de [37.120.160.187]) (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 047C31360; Fri, 5 Aug 2016 15:48:48 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from localhost (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mike@reifenberger.com) by mail.eeeit.de (Postfix) with ESMTPSA id 6870641F5; Fri, 5 Aug 2016 17:48:39 +0200 (CEST) Received: from ppp-62-216-199-84.dynamic.mnet-online.de (ppp-62-216-199-84.dynamic.mnet-online.de [62.216.199.84]) by mail.eeeit.de (Horde Framework) with HTTPS; Fri, 05 Aug 2016 17:48:39 +0200 Date: Fri, 05 Aug 2016 17:48:39 +0200 Message-ID: <20160805174839.Horde.c9blLf_kcl9ZRprZEOdH2Qx@mail.eeeit.de> From: Michael Reifenberger To: Matt Churchyard Cc: Peter Grehan , virtualization@freebsd.org Subject: Re: Bhyve tests and findings References: <20160804132810.Horde.PbxdxEormFX3MwsBMVBoRo7@mail.eeeit.de> <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> <282a992c2cd048c9872526d48e2eef14@SERVER.ad.usd-group.com> In-Reply-To: <282a992c2cd048c9872526d48e2eef14@SERVER.ad.usd-group.com> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 15:48:49 -0000 Zitat von Matt Churchyard : >> Zitat von Peter Grehan : > >> Hi Mike, >> >>> - Windows 8, 8.1 and 10 installs and runs in graphical mode flawlessly. >> >> Have you had any issues with the XHCI mouse on 8/8.1 ? >> >>> - I was able to graphically Restore/Reconfigure a Acronis >>> Windows-Backup into a Bhyve instance using the Acronis Restore-CD >>> (Converting a BIOS Win8.1 to UEFI Win8.1) >> >> Very nice ! >> >>> - Only vnclient from FreeBSD can connect to the bhyve VNC Server. >>> I havn't found any vncviewer running on Windows which where able to >>> work (tried UltraVNC, RealVNC, ...) >> >> Some VNC clients refuse to connect when only null-auth is advertized >> by the server. There is a patch to bhyve to support VNC password-auth, >> which may fix the issue with these clients. >> > >> Yes, that sounds reasonable. > >>> - in VNC only most basic Keys work most special characters like (*\@) >>> (and of course no german localization) but at least a usual US-kbd >>> would be helpful. >>> (Is there a way to debug the keystrokes or duplicate a localized VNC >>> kbd from some VNC server) >> >> Nothing outside of modifying the source, but it seems useful enough >> to add a parameter for this. >> >>> - For the SAP-Systems it seems that only 4 disks get used when the >>> disk type is virtio-blk. >>> (Is this intentionally or a feature of vm-bhyve? How to provide more >>> disks) >> >> I'll let Matt comment on that. There's no limitation with guests that >> support MSI interrupts for adapters. Unfortunately, Windows guests >> require legacy interrupts for the AHCI controller, which is where the >> restriction originates. >> > >> I'd like to use a 6 disks setup with Centos7. >> Centos7 on XEN PVM has no issue with supporting 6 paravirtulized disks. > >> Thats the config (for vm-bhyve) where only the first 4 disks are >> used for the guest (Centos7): > >> uefi="yes" >> cpu=1 >> memory=2G >> network0_type="virtio-net" >> network0_switch="public" >> disk0_name="root" >> disk0_type="virtio-blk" >> disk0_dev="zvol" >> disk1_name="swap" >> disk1_type="virtio-blk" >> disk1_dev="zvol" >> disk2_name="sapmnt" >> disk2_type="virtio-blk" >> disk2_dev="zvol" >> disk3_name="usrsap" >> disk3_type="virtio-blk" >> disk3_dev="zvol" >> disk4_name="db" >> disk4_type="virtio-blk" >> disk4_dev="zvol" >> disk5_name="log" >> disk5_type="virtio-blk" >> disk5_dev="zvol" >> graphics="yes" >> graphics_port="5903" >> graphics_listen="0.0.0.0" >> graphics_res="1600x900" >> graphics_wait="no" >> xhci_mouse="yes" > > Sorry I didn't actually spot that you were using my vm-bhyve code to > run the guest the first time. > > The UEFI code in vm-bhyve is currently limited to using slots 4/5/6 > for disks so you should only see 3... (I put a CD device on slot 3) > If you look in the /path/to/guest/vm-bhyve.log log file you'll > probably see something like "ending disks as disk2 due to UEFI > limitations". > > I've never been 100% on which guests have the limitation and which > don't, so in UEFI mode I played it safe and just used the 3 slots. > If you run the guest with the grub loader instead of UEFI you should > get all the disks. > > If you want, you can comment out the limitation in the vm-bhyve > source and see if the guest will pick up the extra disks. It's the 4 > lines after the "can't go past slot 6" comment around line 364 of > lib/vm-run. If it works it may be worth me adding a configuration > option to toggle this limit. > Cool! Commenting out: ... # stop at slot 6 on uefi # if [ ${_slot} -ge 7 ]; then # util::log "guest" "${_name}" "ending disks at disk${_num} due to UEFI firmware limitations" # break # fi ... Gives me all disks in Centos7: [ 0.755083] ahci 0000:00:03.0: version 3.0 [ 0.759512] ahci 0000:00:03.0: irq 25 for MSI/MSI-X [ 0.759548] ahci 0000:00:03.0: SSS flag set, parallel bus scan disabled [ 0.759661] ahci 0000:00:03.0: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x1 impl SATA mode [ 0.759663] ahci 0000:00:03.0: flags: 64bit ncq sntf ilck stag pm led clo pio slum part sxs apst [ 0.767612] scsi host0: ahci [ 0.774675] scsi host1: ahci [ 0.783392] virtio-pci 0000:00:04.0: irq 26 for MSI/MSI-X [ 0.783407] virtio-pci 0000:00:04.0: irq 27 for MSI/MSI-X [ 0.784850] vda: vda1 vda2 vda3 vda4 [ 0.785013] virtio-pci 0000:00:05.0: irq 28 for MSI/MSI-X [ 0.785027] virtio-pci 0000:00:05.0: irq 29 for MSI/MSI-X [ 0.785609] vdb: unknown partition table [ 0.785725] virtio-pci 0000:00:06.0: irq 30 for MSI/MSI-X [ 0.785739] virtio-pci 0000:00:06.0: irq 31 for MSI/MSI-X [ 0.786817] vdc: unknown partition table [ 0.786925] virtio-pci 0000:00:07.0: irq 32 for MSI/MSI-X [ 0.786939] virtio-pci 0000:00:07.0: irq 33 for MSI/MSI-X [ 0.790069] virtio-pci 0000:00:0a.0: irq 34 for MSI/MSI-X [ 0.790083] virtio-pci 0000:00:0a.0: irq 35 for MSI/MSI-X [ 0.790097] virtio-pci 0000:00:0a.0: irq 36 for MSI/MSI-X [ 0.790895] vdd: unknown partition table [ 0.791026] virtio-pci 0000:00:08.0: irq 37 for MSI/MSI-X [ 0.791040] virtio-pci 0000:00:08.0: irq 38 for MSI/MSI-X [ 0.792815] vde: unknown partition table [ 0.792927] virtio-pci 0000:00:09.0: irq 39 for MSI/MSI-X [ 0.792942] virtio-pci 0000:00:09.0: irq 40 for MSI/MSI-X [ 0.795286] vdf: unknown partition table So it seems to work for UEFI / Centos7. Greetings --- Mike Gruß --- Michael Reifenberger From owner-freebsd-virtualization@freebsd.org Fri Aug 5 16:48:14 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A3FEBB06C2 for ; Fri, 5 Aug 2016 16:48:14 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (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 4B2441B1A for ; Fri, 5 Aug 2016 16:48:14 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: by mail-yb0-x236.google.com with SMTP id g133so16598369ybf.2 for ; Fri, 05 Aug 2016 09:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mrmkSv8DJJHPcLQhMYcxYMMrYQspiGp3t1vcOScQ7ls=; b=nWU5vpoLIpMUx1z0hsl6UQb0rjr4sEG32iPfbqAR56UCOn5002owWBajDj1tqg+UgG adwBjVEEU1SlJOOZr6Idepl0A7D3b3mvHU9gxlF/KvKhoLtBMl1rgBfpU+c7XEsrTUxK 6KKRZO8LqV507SpSwqG0I8axLtnCiZNZ8P5yT9q5vbHJiXf93OMEAtDOjx6AIPUNyvmX wlIV6mKRMPOSvdkiUu0FrBOe7gL4OfvpsahroU/WR3Qpdol3RFYcV849DsSJMZFEcv5S M8TllSBfUcGky9WgRFcBrcqCrDKkm0wQ25aS6xUUnJaoRCH/vAFVNLmXjTvttthsGEaD XiiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=mrmkSv8DJJHPcLQhMYcxYMMrYQspiGp3t1vcOScQ7ls=; b=l0//kUm+nOwa4y5Q5VxO48EH6CoM4HrhJAEntu0t/EwqVhk+CbIGFyOGXfKUTFPqjB W/BvJGJ0+Yf9uxPoOiPgg52kTSDGqNPVuYwN4Cy+MVW1kTlJYmHR/NgOLqHFA7mrSQQo USYO8ShjugNNoZNJw6Cn/f2/7e+g40gpldB+YvH7C1gWYg8DlKufyon30pykE+huyJxy k1a0vnE2toiV7UBDWXMnWeAXl2hpNszZv/1ohZ+ZuO7oYiKFURb/ROoHBAWUvdy6ltQi g/JoDerG21y99N2S7v4NNtUzw1AKyGG2tvJ+h67cLNMEX/c7urkpk/9gYdybj3IBrkt5 HuSw== X-Gm-Message-State: AEkoousK1/bbFQ3bqqcnpbiX1FwnyBOIjNado738iIthyywZZFlbUJipNYEitUJCObbLN4Bsi7b+zWPBZB38Gw== X-Received: by 10.37.4.79 with SMTP id 76mr13819699ybe.80.1470415693361; Fri, 05 Aug 2016 09:48:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.196.196 with HTTP; Fri, 5 Aug 2016 09:48:12 -0700 (PDT) In-Reply-To: References: From: Trent Thompson Date: Fri, 5 Aug 2016 10:48:12 -0600 Message-ID: Subject: Re: OS X Guest on Bhyve To: Jordan Starcher , FreeBSD virtualization Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 05 Aug 2016 16:48:14 -0000 Jordan, I almost forgot one important detail, giving the bhyve instance anything less than 8 gigs of RAM will cause bhyve to exit upon attempting to boot. You must give it at least 8G. -Trent