From owner-freebsd-virtualization@FreeBSD.ORG Tue Mar 4 20:49:02 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E690A92; Tue, 4 Mar 2014 20:49:02 +0000 (UTC) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1766E8E7; Tue, 4 Mar 2014 20:49:01 +0000 (UTC) Received: by mail-la0-f41.google.com with SMTP id gl10so50974lab.14 for ; Tue, 04 Mar 2014 12:49:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=Z8P4BDrIhh9r1xUoV/0iARqfWwchpxciPoSgTl1OINU=; b=YjY3uQUoG4iVPuKAdawUdDl6YKb8SaIim/4vrwTFwOFYwKWDjX9zZURinX5bYqw6z1 +bgvQMbPUTtj8DRbVk8d6PndD6QVIVN5/vtdoar5yMMzG21Z+n/Bpav03P4u4MeAfS1N JBn2cIqnxX3Hkwkjza9VLqtrieuDIDAMAvz3Yk+0SOMxCVQYRpQsuqCbvQam9AEFNNP+ aBAxyzvFhMklmfouIskk7tEaikc4oKSkvYAM6yR1ehE4WAQGwYlO2MtbfeSojzFt3+Nh UJ8Nbz3MfyFLUMmgQdctTs0UDL3w1wy6wKbOxpWIOlD5dMOuQAJ0Z5q/42htSOU5lEOM fLnQ== MIME-Version: 1.0 X-Received: by 10.112.14.1 with SMTP id l1mr769754lbc.39.1393966140069; Tue, 04 Mar 2014 12:49:00 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.30.211 with HTTP; Tue, 4 Mar 2014 12:48:59 -0800 (PST) Date: Tue, 4 Mar 2014 12:48:59 -0800 X-Google-Sender-Auth: 5rZCECGGu-6T2itWYahnxTFrIag Message-ID: Subject: Problem with ZFS userboot changes r262331 and VM with mixed partitions From: Craig Rodrigues To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 Cc: Xin Li , "jenkins-admin@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2014 20:49:03 -0000 Hi, I encountered problems with the new changes to userboot to boot ZFS. About a month ago, I created a FreeBSD 10 VM with the following layout: => 34 419430333 md0 GPT (200G) 34 128 1 freebsd-boot (64K) 162 2097152 2 freebsd-ufs (1.0G) 2097314 8388608 3 freebsd-swap (4.0G) 10485922 408944444 4 freebsd-zfs (195G) 419430366 1 - free - (512B) The FreeBSD root file system is on p4, which is ZFS. On the root file system, I have a symlink: /boot -> /bootdir /bootdir mounts p2 which is UFS. So in this scenario, the kernel lives on UFS. When I did this about a month ago, during the BHyve boot process, (1) userboot loaded the kernel from p2 (UFS) (2) The kernel booted, loaded zfs.ko, and then proceeded to mount p4 where the root file system lived (ZFS) After r262331, when I try to boot the BHyve VM (1) I can see p4 from the loader prompt (2) The kernel doesn't load (3) If I try to load /boot/kernel/kernel from the loader prompt, I get: ZFS: i/o error - all block copies unavailable I don't fully understand all this logic. Is there a bug that can be fixed here? -- Craig