From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Date: Fri, 3 Dec 2021 12:04:05 +0100 From: Konstantin Lepikhov To: devel-distro@lists.altlinux.org Message-ID: Mail-Followup-To: devel-distro@lists.altlinux.org References: <88494e69-2602-4c8f-a8a1-879425ae3ff4@ya.ru> <499e2651-c1d7-eff1-bb7f-5c8f33525df0@ya.ru> <97aac25d-a7f5-aaec-a19e-3973be7b8c27@ya.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operation-System: ALT Sisyphus Sisyphus (unstable) (sisyphus) 5.10.0-lks-wks-alt13 User-Agent: Mutt/2.1.1.0.3.g6c0f75cca (2021-07-12) Subject: Re: [devel-distro] Q: virt-install vs vm/builder qcow2 X-BeenThere: devel-distro@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Distributions development List-Id: Distributions development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2021 11:04:09 -0000 Archived-At: List-Archive: Hi Антон! On 12/03/2021, at 05:54:16 PM you wrote: > 03.12.2021 17:41, Konstantin Lepikhov пишет: > [...] > > Меня смущает тот факт, что с этими qcow2 virsh console не работает совсем, > > я даже не вижу сообщений от grub при начальной загрузке. При этом для > > fedora все работает как нужно. > > > > Конфиг grub, возможно, c GRUB_TERMINAL_OUTPUT='gfxterm' нет, GRUB_UI там не задействован и gfxterm не копируется. Пока получается следущее: [lakostis@lks ~]$ sudo qemu-img create -f qcow2 -F qcow2 -b /var/lib/libvirt/images/cloud-systemd-20211203-x86_64.qcow2 /var/lib/libvirt/images/test-vm.qcow2 Formatting '/var/lib/libvirt/images/test-vm.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2095054848 backing_file=/var/lib/libvirt/images/cloud-systemd-20211203-x86_64.qcow2 backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16 [lakostis@lks ~]$ sudo chown lakostis /var/lib/libvirt/images/test-vm.qcow2 [lakostis@lks ~]$ virt-install --name test-vm --os-variant fedora31 --disk /var/lib/libvirt/images/test-vm.qcow2 --import --vcpus=2 --memory=2048 --network=default Starting install... Running graphical console command: virt-viewer --connect qemu:///session --wait test-vm (virt-viewer:2296515): GSpice-WARNING **: 11:54:08.156: Warning no automount-inhibiting implementation available (virt-viewer:2296515): Gtk-WARNING **: 11:54:22.511: VirtViewerDisplaySpice 0x55d126901a50 reported min size 200 and natural size 64 in get_preferred_height(); natural size must be >= min size (virt-viewer:2296515): Gtk-WARNING **: 11:54:22.511: VirtViewerDisplaySpice 0x55d126901a50 reported min size 320 and natural size 64 in get_preferred_width(); natural size must be >= min size (тут я вижу консоль с grub внутри virt-viewer'а Domain creation completed. [lakostis@lks ~]$ virsh console test-vm Connected to domain 'test-vm' Escape character is ^] (Ctrl + ]) localhost login: [lakostis@lks ~]$ virsh destroy test-vm Domain 'test-vm' destroyed [lakostis@lks ~]$ virsh undefine test-vm Domain 'test-vm' has been undefined [lakostis@lks ~]$ virt-install --name test-vm --os-variant fedora31 --disk /var/lib/libvirt/images/test-vm.qcow2 --import --vcpus=2 --memory=2048 --network=default --graphics none Starting install... Running text console command: virsh --connect qemu:///session console test-vm Connected to domain 'test-vm' Escape character is ^] (Ctrl + ]) (тут должна появиться текстовая консоль grub но ничего не происходит и висит) -- WBR et al.