<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36935</bug_id>
          
          <creation_ts>2019-06-21 14:39:35 +0300</creation_ts>
          <short_desc>Не грузится livecd в qemu</short_desc>
          <delta_ts>2019-06-26 11:31:15 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Regular</product>
          <component>mate</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan A. Melnikov">iv</reporter>
          <assigned_to name="Антон Мидюков">antohami</assigned_to>
          <cc>mike</cc>
    
    <cc>shaba</cc>
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>182651</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2019-06-21 14:39:35 +0300</bug_when>
    <thetext>Хост -- свежий Сизиф с un-def, x86_64; 

$ sha1sum regular-mate-latest-*
a68e440172c823139c8bb753dd422d6ca67085b0  regular-mate-latest-i586.iso
967893f5464e99d8140d7131c73339e1b99a758a  regular-mate-latest-x86_64.iso

Я ожидал, что запустив

qemu-kvm regular-mate-latest-x86_64.iso

я получу виртуалку, в которой мне удастся загрузится в Live CD. Однако вместо этого я получаю kernel panic. Вот логи, спасённые при помощи -serial stdio и добавления console=ttyS0 в командную строку ядра:

[    0.224409] /initrd.image: incomplete write (-28 != 62210934)
[    0.277071] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.278102] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.46-std-def-alt1 #1
[    0.279060] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.1-alt1 04/01/2014
[    0.280030] Call Trace:
[    0.280362]  dump_stack+0x72/0x8c
[    0.280771]  panic+0xf4/0x265
[    0.281134]  mount_block_root+0x28f/0x2b3
[    0.281652]  ? do_early_param+0x8e/0x8e
[    0.282083]  prepare_namespace+0x165/0x19b
[    0.282533]  kernel_init_freeable+0x21e/0x22e
[    0.283034]  ? rest_init+0xaa/0xaa
[    0.283455]  kernel_init+0xa/0x109
[    0.283836]  ret_from_fork+0x35/0x40
[    0.284601] Kernel Offset: disabled
[    0.285177] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

В VirtualBox из репозиториев образы работают.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182655</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2019-06-21 19:37:58 +0300</bug_when>
    <thetext>Укажи фиксированный размер памяти достаточного объёма: -m 350 или больше. Вот такой минимум, оказывается, для загрузки лайва нынче.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182656</commentid>
    <comment_count>2</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2019-06-21 20:00:43 +0300</bug_when>
    <thetext>К слову, я запускаю вот так:
qemu-system-x86_64 -enable-kvm -vga virtio -hda 1.qcow2 -m 2048  -boot d -cdrom regular-mate-latest-x86_64.iso

И с EFI так:
qemu-system-x86_64 -enable-kvm -vga virtio -hda 1.qcow2 -m 2048  -boot d -drive if=pflash,format=raw,file=OVMF_CODE.fd -cdrom regular-mate-latest-x86_64.iso

В обязательном порядке все сборки проверяю с установкой.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182714</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2019-06-26 11:31:05 +0300</bug_when>
    <thetext>Я так и знал, что я просто qemu готовить не умею. Записал сюда, поскольку искал где-то там рецептов и не нашёл: https://www.altlinux.org/Regular#Запуск_LiveCD_в_QEMU</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>