VirtualBox

Changes between Initial Version and Version 7 of Ticket #16677


Ignore:
Timestamp:
Apr 21, 2017 8:03:38 AM (7 years ago)
Author:
Frank Mehnert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16677

    • Property Summary A reliable way to hang AioMgr0-N when 'fs readahead'(hdparm -a) is on (and is 256(KiB)) but only when 'Use Host I/O Cache' is disabled, for IDE(iso) and SATA(vdi) devicesA reliable way to hang AioMgr0-N under certain conditions
  • Ticket #16677 – Description

    initial v7  
    1 A reliable way to hang AioMgr0-N when 'fs readahead'(hdparm -a) is on (and is 256(KiB)) but only when 'Use Host I/O Cache' is disabled
    2 
    3 
    4 
    5 in virtualbox 5.1.18 r114002 (currently latest available) on Arch Linux 64bit, host OS.
     1A reliable way to hang AioMgr0-N when 'fs readahead'(hdparm -a) is on (and is 256(KiB)) but only when 'Use Host I/O Cache' is disabled in virtualbox 5.1.18 !r114002 (currently latest available) on Arch Linux 64bit, host OS.
    62Basically, reading from guest SATA HDD and/or IDE CD will hang AioMgr0-N(until killed) on host OS and guest OS will fail to read/boot etc.
    73
     
    2016----
    2117Steps to reproduce this issue on a guest HDD/vdi (as opposed to a guest CD/IDE/iso which is in the 'next section'):
    22 1. get archlinux-2017.03.01-dual.iso  (or any current/latest iso, BUT then the dd repro will most likely not work at the same 'skip'!)
     18 1. get archlinux-2017.03.01-dual.iso  (or any current/latest iso, BUT then the dd repro will most likely not work at the same 'skip'!)
    2319
    2420However according to this comment from frank https://www.virtualbox.org/ticket/15281#comment:8 , I shouldn't be posting any such links here, but then reproducing this(with accuracy) is going to be really hard without them, so I'm going to be obscuring them with base64, hopefully that's a good compromise between not posting them and posting them...
     
    3127{{{
    3228aHR0cHM6Ly93d3cuYXJjaGxpbnV4Lm9yZy9yZWxlbmcvcmVsZWFzZXMvMjAxNy4wMy4wMS8=
    33 
    3429}}}
    3530
     
    3833{{{
    3934aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL29wZW4/aWQ9MEI2UC05VXlKRmp6S1ZsWkhUa1E0YUZWbGRUUQ==
    40 
    4135}}}
    4236
     
    4539{{{
    4640f426866ca632a35a3eeae8e4080cff25ec8da614  archlinux-2017.03.01-dual.iso
    47 
    48 }}}
    49 
    50 2. get my VM
     41}}}
     42
     43 2. get my VM
    5144the reproduction steps only work with my VM with that specific vdi file; if that vdi gets cloned(even if to same format: vdi) it will not reproduce anymore! The IDE CD repro. steps will still work and make it hang reliably though (see 'next section')
    5245
     
    5851{{{
    5952aHR0cHM6Ly93d3cuZHJvcGJveC5jb20vc2gvaHFiMGIwNDB4aTYyMDN2L0FBRE50RVF5Z0tGU1duNnpRaDNZS1VVcmE/ZGw9MA==
    60 
    6153}}}
    6254
     
    6557{{{
    6658aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL2RyaXZlL2ZvbGRlcnMvMEI2UC05VXlKRmp6S1Rrc3lZM0pZWlhSbU1Xcz91c3A9c2hhcmluZw==
    67 
    6859}}}
    6960
     
    847557742f80911f72186fe6de168e310da84e9d6f39c5683b3f7669abfdf57708f1965b923d5b7462d4af82dc75ddd83ea5cbbcef27330b833f8dabe7da7e5a0d9d  ./arch3.vbox
    85761e752ad68de113d41999591d105798acaff130716ec81f88325fc9474e160e761eef305fd87885bdf500f1e400e3ec31f32c43c4b5a924304f4027133611e880  ./arch3.vdi
    86 
    87 }}}
    88 
    89 
    90 3. TODO: "import" the .vbox somehow in the VirtualBox UI! (export/import wouldn't have worked because it clones my vdi; and imports it as vmdk)
    91 4. ensure 'Controller: IDE' has 'Use Host I/O Cache' enabled (it does by default when creating new VM)
     77}}}
     78
     79
     80 3. TODO: "import" the .vbox somehow in the VirtualBox UI! (export/import wouldn't have worked because it clones my vdi; and imports it as vmdk)
     81 4. ensure 'Controller: IDE' has 'Use Host I/O Cache' enabled (it does by default when creating new VM)
    9282^ this means CD access won't hang
    93 5. ensure 'Controller: SATA' has 'Use Host I/O Cache' disabled (it's disabled by default when creating new VM)
     83 5. ensure 'Controller: SATA' has 'Use Host I/O Cache' disabled (it's disabled by default when creating new VM)
    9484^ this means HDD access will hang, below.
    95 6. start, Boot from CD/iso, you see grub "Boot Arch Linux (x86_64)", press Enter to boot from the iso
     85 6. start, Boot from CD/iso, you see grub "Boot Arch Linux (x86_64)", press Enter to boot from the iso
    9686(do not boot HDD's OS, it will hang during boot sequence)
    97 7. you get to the root prompt, auto logged in.
     87 7. you get to the root prompt, auto logged in.
    9888
    9989info:
     
    162152----
    163153
    164 8. how to hang (boot session 3 is most interesting, below)
     154 8. how to hang (boot session 3 is most interesting, below)
    165155
    166156
     
    210200{{{
    211201dd if=/dev/sda of=/dev/null bs=512 skip=42215 count=2
    212 
    213202}}}
    214203
     
    299288
    300289
    301 - for the VM's IDE CD drive: I cannot boot from the ArchLinux or Manjaro iso (it will hang similarily)
    302 - for the VM's SATA HDD drive: cannot boot existing arch linux install
     290 - for the VM's IDE CD drive: I cannot boot from the ArchLinux or Manjaro iso (it will hang similarily)
     291 - for the VM's SATA HDD drive: cannot boot existing arch linux install
    303292
    304293
     
    326315
    327316
    328 a) to make HDD not hang AioMgr, clone it first (this magically gets rid of any AioMgr0-N hangs for some reason)
     317 a. to make HDD not hang AioMgr, clone it first (this magically gets rid of any AioMgr0-N hangs for some reason)
    329318$ VBoxManage clonehd --format VDI arch3.vdi /tmp/cloned.vdi
    330319(obvious: to clone, first remove arch3.vdi from the VM, clone, then add cloned.vdi to the VM)
    331 b) set both IDE and SATA to have disabled 'Use Host I/O Cache'
     320 b. set both IDE and SATA to have disabled 'Use Host I/O Cache'
    332321c) boot from HDD(it boots from iso, at grub menu choose second option which is: 'Boot existing OS');
    333322Don't boot iso's OS because it hangs instantly at  Loading boot/x86_64/vmlinuz...  and hangs AioMgr1-N with 99.9% cpu usage until you kill PID of AioMgr1-N which closes that VM's window.
     
    336325
    337326
    338 a) if you didn't clone the vdi
    339 b) set only IDE(where iso is) on disbled 'Use Host I/O Cache', but let SATA(where vdi is) on enabled 'Use Host I/O Cache'
    340 c) boot, it will boot from iso, choose 'Boot existing OS' to boot from HDD(vdi)
     327 a. if you didn't clone the vdi
     328 b. set only IDE(where iso is) on disbled 'Use Host I/O Cache', but let SATA(where vdi is) on enabled 'Use Host I/O Cache'
     329 c. boot, it will boot from iso, choose 'Boot existing OS' to boot from HDD(vdi)
    341330
    342331way1&2 commons:
    343332
    344 d) at root prompt(you have to login as 'root', password is 'a'):
     333 d. at root prompt(you have to login as 'root', password is 'a'):
    345334
    346335info:
     
    518507
    519508
    520 virtualbox 5.1.18 r114002 on Arch Linux 64bit
    521 
    522 
    523 
    524 Potentially relevant tickets:
    525 
    526 
    527 https://www.virtualbox.org/ticket/15281
    528 
    529 
    530 https://www.virtualbox.org/ticket/13022
    531 
     509virtualbox 5.1.18 !r114002 on Arch Linux 64bit
     510
     511
     512
     513Potentially relevant tickets: #15281, #13022
     514

© 2023 Oracle
ContactPrivacy policyTerms of Use