From nobody Sun Apr 28 11:24:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1578395368; cv=none; d=zohomail.com; s=zohoarc; b=jSQdFt/L+cmg+eMu8XQfNyPETSiQVLegc7Qs42uJbAayM4SHRImZXYCrN3ISOoZLsB3ScLXT3i15DZc8OIppTmJxlCMCVg10S6jMsvlspWWfpjyPdDHRV57jOQHxoyXI3kopZ9k5HAUek7dfngAI8lFaQR3vgV9debXCFjv54lg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578395368; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=sA3AKp/6RBJMQy91vTsbyRYE4HKBgNhl96KYM+z6uUk=; b=P8ZnjnWvy61oWFIIPVLZ/GHpP3RcbyEOteN1/YmxukJ46XDBIpecyF4xTNXJK0gDOjkX3bOlv8FcyvKeo/5UFZnLoOkCfx4L6opU4yUoHYI3AHS/Lf4/x54mtB6iyjA+VnYwJzIoN1u+EjtJmzKB0fr80P2ntsdLQyS/M72XoKs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1578395368406444.47026300731477; Tue, 7 Jan 2020 03:09:28 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-285-KlP94gNfNbeyqWKk6BwvWQ-1; Tue, 07 Jan 2020 06:09:25 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 31EC910054E3; Tue, 7 Jan 2020 11:09:19 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F14F05C21B; Tue, 7 Jan 2020 11:09:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id BFD7A1809567; Tue, 7 Jan 2020 11:09:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 007B9BnP016720 for ; Tue, 7 Jan 2020 06:09:11 -0500 Received: by smtp.corp.redhat.com (Postfix) id 5151D84FE2; Tue, 7 Jan 2020 11:09:11 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-61.ams2.redhat.com [10.36.112.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id 91C4F85F1E; Tue, 7 Jan 2020 11:09:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578395367; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=sA3AKp/6RBJMQy91vTsbyRYE4HKBgNhl96KYM+z6uUk=; b=N3yXwVLf5SHOZ3TrGqcBlIXlYbDdqxbKrhJaMR8jy9krygQ9e5nmteYnoRA20oikT36Rri 0Sz3qxLxtHNdEcNxSQop0doKlTcVTzw0Gl9/7H1+G1Y8PHULOVYX7DWD6KVVHEQtkdnQ14 NWJM6EJ7OwLvNkAl0d6FAJfwzoRWLS0= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Tue, 7 Jan 2020 11:09:00 +0000 Message-Id: <20200107110900.3374339-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH] guests: add more detailed docs on deploying FreeBSD X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: KlP94gNfNbeyqWKk6BwvWQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Provide instructions on how to download & deploy a working FreeBSD install that's suitable for CI, as there are several gotchas not mentioned in the current docs. Signed-off-by: Daniel P. Berrang=C3=A9 --- guests/README.markdown | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/guests/README.markdown b/guests/README.markdown index 7e63540..d76beb1 100644 --- a/guests/README.markdown +++ b/guests/README.markdown @@ -137,6 +137,26 @@ FreeBSD Installation of FreeBSD guests must be performed manually; alternatively, the official qcow2 images can be used to quickly bring up such guests. =20 + $ MAJOR=3D11 + $ MINOR=3D3 + $ VER=3D$MAJOR.$MINOR-RELEASE + $ cd /var/lib/libvirt/images + $ wget -O libvirt-freebsd-$MAJOR.qcow2.xz \ + https://download.freebsd.org/ftp/releases/VM-IMAGES/$VER/amd64/Lates= t/FreeBSD-$VER-amd64.qcow2.xz + $ unxz libvirt-freebsd-$MAJOR.qcow2.xz + $ virt-install \ + --import \ + --name libvirt-freebsd-$MAJOR \ + --vcpus 2 \ + --graphics vnc \ + --noautoconsole \ + --console pty \ + --sound none \ + --rng device=3D/dev/urandom,model=3Dvirtio \ + --memory 2000 \ + --os-variant freebsd$MAJOR.$MINOR \ + --file /var/lib/libvirt/images/libvirt-freebsd-$MAJOR.qcow2 + Some manual tweaking will be needed, in particular: =20 * `/etc/ssh/sshd_config` must contain the `PermitRootLogin yes` directive; @@ -145,6 +165,17 @@ Some manual tweaking will be needed, in particular: =20 * the root password must be manually set to "root" (without quotes). =20 +The default qcow2 images are only 4GB in size which will be too small +to be useful. To enlarge them do + + $ virsh blockresize libvirt-freebsd-$MAJOR \ + /var/lib/libvirt/images/libvirt-freebsd-$MAJOR.qcow2 20G + +Then inside the guest, as root, enlarge the partition & filesystem + + # gpart resize -i 3 -a 4k -s 39845761 vtbd0 + # service growfs onestart + Once these steps have been performed, FreeBSD guests can be managed just like all other guests. =20 --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list