Jump to content

Jagadguru

Members
  • Posts

    101
  • Joined

  • Last visited

Posts posted by Jagadguru

  1. Does the virtual memory balloon device work in a MacOS VM?

     

    I notice when memory in the VM fills up there is no error thrown, but the entire Unraid server crashes.

     

    This happened once when I wrote a program that allocated memory without limit and once when I tried to open a 2.7G file in Wireshark.

  2. It happens right at the point the control is handed over to the OS.  It is not a kernel panic I checked for that many times. 

    Hey, you helped me find the solution!
    I turned off the watchdog timer in config.plist and now it just booted 9/10 times without hiccup. The one time it didn't boot was a hang with all cores on 100%

    I guess my VM was just booting too slow and timing out. 

    Thanks for pointing me to the debug options. 

  3. I just successfully converted my Macinabox Catalina daily driver VM from Clover to Opencore, because my VM was crashing at the very beginning of  boot most of the time. 

     

    I used https://github.com/Leoyzen/KVM-Opencore. Thank you @Leoyzen! I just replaced the EFI folder with the one on this repository.

     

    Then I used the guide https://khronokernel-2.gitbook.io/opencore-vanilla-desktop-guide/post-install/post-install/iservices to get iMessage working.

     

    The last snag I ran into was after following that guide to the "T" my VM would no longer connect to the network. That was fixed temporarily by using vmxnet3 for a virtual Ethernet NIC.

     

    The boot problem is exactly the same under Opencore. I've read that under Opencore you no longer have to use a patched OVMF, but I'm not sure how to convert that. Tried just changing 

     <loader readonly='yes' type='pflash'>/mnt/user/domains/MacinaboxCatalina/ovmf/OVMF_CODE.fd</loader>
        <nvram>/mnt/user/domains/MacinaboxCatalina/ovmf/OVMF_VARS.fd</nvram>

    to

    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
        <nvram>/mnt/user/domains/MacinaboxCatalina/ovmf/OVMF_VARS.fd</nvram>

    does not help. But overall the VM is 99% functional.

    • Like 1
  4. @steveBBB, domain is tainted error can be safely ignored. I just means you're running a configuration or some component that is not officially supported by the maintainers of either KVM or QEMU. That means that if you ever need to contact them to report a bug or get help, you would need to adjust your configuration such that it is purely running their supported code and not "tainted" or they will not try to fix it, because they don't support that use case or component added.

  5. Solved by changing  the line export XAUTHORITY=~/.Xauthority to 

    export XAUTHORITY=/var/run/slim.auth

    The login screen is not the right resolution, so I can't see the username/password box, but hey it's pretty good. The session is in the right resolution.

  6. Hi Guys,

     

    System info in my signature. I'm having the strange problem that performance in my Windows VM goes to utter stuttering when and only when I turn my monitor off (and then back on). Performance is great until I do that. This VM is only for productivity, no gaming. Restarting the VM does not help. The only way to bring performance back to normal it to RESTART THE WHOLE "SERVER"

     

    My MacOS VM works great always on the same GPU's passed through.

     

    Is this some kind of graphics reset problem?

     

    Have tried with nvidia driver and windows driver. Have tried with Q35 and i440fx machine types.

     

    Also, There are dmesg errors:

     

    Apr 4 17:53:08 Tower kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
    Apr 4 17:53:08 Tower kernel: CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.19.107-Unraid #1
    Apr 4 17:53:08 Tower kernel: Hardware name: Dell Inc. OptiPlex 9020/06X1TJ, BIOS A18 03/13/2017
    Apr 4 17:53:08 Tower kernel: Call Trace:
    Apr 4 17:53:08 Tower kernel: <IRQ>
    Apr 4 17:53:08 Tower kernel: dump_stack+0x67/0x83
    Apr 4 17:53:08 Tower kernel: __report_bad_irq+0x30/0xa5
    Apr 4 17:53:08 Tower kernel: note_interrupt+0x1d8/0x229
    Apr 4 17:53:08 Tower kernel: handle_irq_event_percpu+0x4f/0x6f
    Apr 4 17:53:08 Tower kernel: handle_irq_event+0x34/0x51
    Apr 4 17:53:08 Tower kernel: handle_fasteoi_irq+0x92/0xfc
    Apr 4 17:53:08 Tower kernel: handle_irq+0x1c/0x1f
    Apr 4 17:53:08 Tower kernel: do_IRQ+0x46/0xd0
    Apr 4 17:53:08 Tower kernel: common_interrupt+0xf/0xf
    Apr 4 17:53:08 Tower kernel: </IRQ>
    Apr 4 17:53:08 Tower kernel: RIP: 0010:cpuidle_enter_state+0xe8/0x141
    Apr 4 17:53:08 Tower kernel: Code: ff 45 84 f6 74 1d 9c 58 0f 1f 44 00 00 0f ba e0 09 73 09 0f 0b fa 66 0f 1f 44 00 00 31 ff e8 7a 8d bb ff fb 66 0f 1f 44 00 00 <48> 2b 2c 24 b8 ff ff ff 7f 48 b9 ff ff ff ff f3 01 00 00 48 39 cd
    Apr 4 17:53:08 Tower kernel: RSP: 0018:ffffc900031b3e98 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffdc
    Apr 4 17:53:08 Tower kernel: RAX: ffff88881e91fac0 RBX: ffff88881e92a300 RCX: 000000000000001f
    Apr 4 17:53:08 Tower kernel: RDX: 0000000000000000 RSI: 0000000026e0b25e RDI: 0000000000000000
    Apr 4 17:53:08 Tower kernel: RBP: 0000a02a208fd374 R08: 0000a02a208fd374 R09: 0000000000000001
    Apr 4 17:53:08 Tower kernel: R10: 0000000000000000 R11: 071c71c71c71c71c R12: 0000000000000001
    Apr 4 17:53:08 Tower kernel: R13: ffffffff81e5b120 R14: 0000000000000000 R15: ffffffff81e5b198
    Apr 4 17:53:08 Tower kernel: ? cpuidle_enter_state+0xbf/0x141
    Apr 4 17:53:08 Tower kernel: do_idle+0x17e/0x1fc
    Apr 4 17:53:08 Tower kernel: cpu_startup_entry+0x6a/0x6c
    Apr 4 17:53:08 Tower kernel: start_secondary+0x197/0x1b2
    Apr 4 17:53:08 Tower kernel: secondary_startup_64+0xa4/0xb0
    Apr 4 17:53:08 Tower kernel: handlers:
    Apr 4 17:53:08 Tower kernel: [<00000000a8447878>] usb_hcd_irq
    Apr 4 17:53:08 Tower kernel: [<00000000b4f21068>] vfio_intx_handler

  7. Hi all,

     

    I know this is kind of a niche thing and doesn't qualify for a feature request.

     

    I'm trying to get unRIAD to start the X server with a specific resolution or set the res. by script after start. I have been digging into the startup scripts for X and slim the windows manager unRIAD uses.
    Here is my go file:

     

    #set display reslolution for a decent update speed
    
    cp /boot/config/X/.Xauthority /root/
    
    export DISPLAY=:0.0
    export XAUTHORITY=~/.Xauthority
    
    
    xhost +
    
    
    xrandr -display :0.0 -s 5


    I also wrote a script to change the resolution on array start:

     

    #!/bin/bash
    
    telnet localhost
    
    touch ~/.Xauthority
    
    export DISPLAY=:0.0
    export XAUTHORITY=~/.Xauthority
    
    xhost +
    
    echo "xrandr -display :0.0 -s 5" | at NOW + 2 min
    
    xauth info
    
    xhost +si:localuser:root
    
    xauth info
    
    xrandr -display :0.0 -s 5
    
    sleep 10
    
    xrandr -display :0.0 -q

    This results in a "protocol error". I think it is because there is no entry in .Xauthority for localhost and I don't know how to generate one automatically. if I run xhost + from remote over ssh, the entry is added and everything is good. But localhost doesn't have the authority  to run xhost + by itself.I know there are unnecessary bits in the script, but I just threw them in for testing.

     

    I'm assuming there are a couple of different ways to go about this.

     

  8. No. 

     

    On further investigation the GUI Xorg process is pinned on 100% of one thread of one core whenever anything is clicked.

    1454753574_ScreenShot2019-11-11at8_38_50PM.thumb.png.c9bd700f089fafa7592e6ae1106475e6.png

     

    On still further investigation the problem is Firefox. with Firefox closed, it runs fast.

     

    Ok I've narrowed it down to the fact that Firefox is using very little memory 0.1%, whereas on my other machine it uses 1.2%. The total memory is the same on both machines.

     

    Is there any way to allocate more of the memory pool to Firefox?

×
×
  • Create New...