From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 12 Dec 2019 19:21:43 +0300 From: Vitaly Chikunov To: ALT Linux Team development discussions Message-ID: <20191212162143.z7nhct3owbcm5f4t@altlinux.org> Mail-Followup-To: ALT Linux Team development discussions References: <20191013212947.2ecbhr6377allvz4@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191013212947.2ecbhr6377allvz4@altlinux.org> User-Agent: NeoMutt/20171215-106-ac61c7 Subject: Re: [devel] [I] rpm-build-vm: vm-run (update 1.3) X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2019 16:21:44 -0000 Archived-At: List-Archive: List-Post: Добавил, чтоб по умолчанию были все ядра и MemAvailable памяти. Так же поддержка share_network=1. Демо: $ hsh-install iproute2 telnet $ share_network=1 hsh-shell --mountpoints=/proc,/dev/kvm builder@x86_64:/.in$ vm-run root@x86_64:/.in# nproc 32 root@x86_64:/.in# free -h total used free shared buff/cache available Mem: 13Gi 78Mi 13Gi 0B 14Mi 12Gi root@x86_64:/.in# telnet yandex.ru 80 Trying 77.88.55.88... Connected to yandex.ru. Escape character is '^]'. ... Есть возможность выбрать ядро если заинсталлировать его вручную перед инсталлом rpm-build-vm. (Пока) обязательно _перед_, иначе не будет initrd. $ hsh-install kernel-image-std-def kernel-image-rt $ hsh-install rpm-build-vm <13>Dec 12 16:17:41 rpmi: rpm-build-vm-1.2-alt1 1576165647 installed $ hsh-shell --mountpoints=/proc,/dev/kvm builder@x86_64:/.in$ ls -la /boot/initrd* -rw-r--r-- 1 rooter rooter 13334528 Dec 12 16:17 /boot/initrd-4.19.59-rt-alt8.rt24.img -rw-r--r-- 1 rooter rooter 12400128 Dec 12 16:17 /boot/initrd-4.19.88-std-def-alt1.img -rw-r--r-- 1 rooter rooter 12431872 Dec 12 16:17 /boot/initrd-5.3.15-un-def-alt1.img builder@x86_64:/.in$ vm-run --kernel=rt root@x86_64:/.in# uname -a Linux (none) 4.19.59-rt-alt8.rt24 #1 SMP PREEMPT RT Sun Nov 24 02:02:59 UTC 2019 x86_64 GNU/Linux