Changes between Initial Version and Version 7 of Ticket #16677
- Timestamp:
- Apr 21, 2017 8:03:38 AM (7 years ago)
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) devices → A 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. 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 in virtualbox 5.1.18 !r114002 (currently latest available) on Arch Linux 64bit, host OS. 6 2 Basically, 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. 7 3 … … 20 16 ---- 21 17 Steps 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'!) 23 19 24 20 However 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... … … 31 27 {{{ 32 28 aHR0cHM6Ly93d3cuYXJjaGxpbnV4Lm9yZy9yZWxlbmcvcmVsZWFzZXMvMjAxNy4wMy4wMS8= 33 34 29 }}} 35 30 … … 38 33 {{{ 39 34 aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL29wZW4/aWQ9MEI2UC05VXlKRmp6S1ZsWkhUa1E0YUZWbGRUUQ== 40 41 35 }}} 42 36 … … 45 39 {{{ 46 40 f426866ca632a35a3eeae8e4080cff25ec8da614 archlinux-2017.03.01-dual.iso 47 48 }}} 49 50 2. get my VM 41 }}} 42 43 2. get my VM 51 44 the 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') 52 45 … … 58 51 {{{ 59 52 aHR0cHM6Ly93d3cuZHJvcGJveC5jb20vc2gvaHFiMGIwNDB4aTYyMDN2L0FBRE50RVF5Z0tGU1duNnpRaDNZS1VVcmE/ZGw9MA== 60 61 53 }}} 62 54 … … 65 57 {{{ 66 58 aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL2RyaXZlL2ZvbGRlcnMvMEI2UC05VXlKRmp6S1Rrc3lZM0pZWlhSbU1Xcz91c3A9c2hhcmluZw== 67 68 59 }}} 69 60 … … 84 75 57742f80911f72186fe6de168e310da84e9d6f39c5683b3f7669abfdf57708f1965b923d5b7462d4af82dc75ddd83ea5cbbcef27330b833f8dabe7da7e5a0d9d ./arch3.vbox 85 76 1e752ad68de113d41999591d105798acaff130716ec81f88325fc9474e160e761eef305fd87885bdf500f1e400e3ec31f32c43c4b5a924304f4027133611e880 ./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) 92 82 ^ 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) 94 84 ^ 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 iso85 6. start, Boot from CD/iso, you see grub "Boot Arch Linux (x86_64)", press Enter to boot from the iso 96 86 (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. 98 88 99 89 info: … … 162 152 ---- 163 153 164 8. how to hang (boot session 3 is most interesting, below)154 8. how to hang (boot session 3 is most interesting, below) 165 155 166 156 … … 210 200 {{{ 211 201 dd if=/dev/sda of=/dev/null bs=512 skip=42215 count=2 212 213 202 }}} 214 203 … … 299 288 300 289 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 install290 - 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 303 292 304 293 … … 326 315 327 316 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) 329 318 $ VBoxManage clonehd --format VDI arch3.vdi /tmp/cloned.vdi 330 319 (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' 332 321 c) boot from HDD(it boots from iso, at grub menu choose second option which is: 'Boot existing OS'); 333 322 Don'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. … … 336 325 337 326 338 a)if you didn't clone the vdi339 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) 341 330 342 331 way1&2 commons: 343 332 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'): 345 334 346 335 info: … … 518 507 519 508 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 509 virtualbox 5.1.18 !r114002 on Arch Linux 64bit 510 511 512 513 Potentially relevant tickets: #15281, #13022 514