Jump to content

Exlife

Members
  • Posts

    63
  • Joined

  • Last visited

Posts posted by Exlife

  1. On 8/24/2022 at 11:36 PM, dlandon said:

    Go to the Libvirt Hotplug USB page and click on the device to be attached and attach it.  Then click on the 'USB Devices' to show the list of devices and get a screen shot of that whole page and post it here.

    I can't find button  'USB Devices'

    Spoiler

    11111111.thumb.jpg.7d9250188bf19e818370e825fa6a5f3a.jpg

     

    You about it ?

    Spoiler

    2222222.thumb.jpg.1f6a23cc971248a599a7f0db845f6dbb.jpg

     

  2. You did not understand me. I have been successfully using VM for half a year already, more than 10 VMs. To change the configuration (mouse, keyboard, cpu, ram), I change the xml profile of the vm in notepad. The helper script works for me only once, if I use it again, I get a black screen

    PS: Good avatar 😃 i like Dexter )

  3. Greetings. I noticed one thing. When I run the helper script for the first time to make changes to the xml - everything is fine. But when I change the xml, add memory, bark or whatever, then run the helper script, I get a black screen. At the moment I'm just manually editing the xml.

    Maybe I'm doing something wrong? 

    my actions are: 1) make changes to the VM 2) In the helper script I change the vm name 3) run the helper script

     

  4. 13 hours ago, ghost82 said:

    As a server or a client?

    As a client to connect to windows, app store has microsoft remote desktop app (to connect to windows rdp).

    As a server, just enable in system preferences -> sharing -> remote management and then use any vnc client to connect to the mac (standard port 5900).

    Server. i need to connect to mac from windows.

    This(VNC) will work in my LAN(wifi) ? OR it use my internet traffic

  5. 1 hour ago, ghost82 said:

    This is not explained in details and what it has to do with macinabox :D

     

    At the same time and each vm with its gpu?

     

    So, specify what you want to achieve clearly, in a new discussion.

    All VM have gpu( i have 4 gpu).

    I just need to watch what is happening on the VM.

    I think  remote desktop will be just right for me. Whats remote desktop will be good for mac ?

  6. Hello. Can you help me passthrough USB mouse and keyboard ?

    All fine work's with  passthrought videocard rx 570. But when i passthrought usb mouse or keyboard i see black screen

    It xml without mouse and keyboard

    Spoiler
    <?xml version='1.0' encoding='UTF-8'?>\
    <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>\
      <name>Macinabox BigSur</name>\
      <uuid>d401e640-fd71-4e48-bf57-d03a43a02854</uuid>\
      <description>MacOS Big Sur</description>\
      <metadata>\
        <vmtemplate xmlns="unraid" name="Windows 10" icon="default.png" os="osx"/>\
      </metadata>\
      <memory unit='KiB'>8388608</memory>\
      <currentMemory unit='KiB'>8388608</currentMemory>\
      <memoryBacking>\
        <nosharepages/>\
      </memoryBacking>\
      <vcpu placement='static'>8</vcpu>\
      <cputune>\
        <vcpupin vcpu='0' cpuset='0'/>\
        <vcpupin vcpu='1' cpuset='8'/>\
        <vcpupin vcpu='2' cpuset='1'/>\
        <vcpupin vcpu='3' cpuset='9'/>\
        <vcpupin vcpu='4' cpuset='2'/>\
        <vcpupin vcpu='5' cpuset='10'/>\
        <vcpupin vcpu='6' cpuset='3'/>\
        <vcpupin vcpu='7' cpuset='11'/>\
      </cputune>\
      <os>\
        <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>\
        <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>\
        <nvram>/etc/libvirt/qemu/nvram/d401e640-fd71-4e48-bf57-d03a43a02854_VARS-pure-efi.fd</nvram>\
      </os>\
      <features>\
        <acpi/>\
        <apic/>\
      </features>\
      <cpu mode='host-passthrough' check='none' migratable='on'>\
        <topology sockets='1' dies='1' cores='4' threads='2'/>\
        <cache mode='passthrough'/>\
      </cpu>\
      <clock offset='utc'>\
        <timer name='rtc' tickpolicy='catchup'/>\
        <timer name='pit' tickpolicy='delay'/>\
        <timer name='hpet' present='no'/>\
      </clock>\
      <on_poweroff>destroy</on_poweroff>\
      <on_reboot>restart</on_reboot>\
      <on_crash>restart</on_crash>\
      <devices>\
        <emulator>/usr/local/sbin/qemu</emulator>\
        <disk type='file' device='disk'>\
          <driver name='qemu' type='raw' cache='writeback'/>\
          <source file='/mnt/user/domains/Macinabox BigSur/BigSur-opencore.img'/>\
          <target dev='hdc' bus='sata'/>\
          <boot order='1'/>\
          <address type='drive' controller='0' bus='0' target='0' unit='2'/>\
        </disk>\
        <disk type='file' device='disk'>\
          <driver name='qemu' type='raw' cache='writeback'/>\
          <source file='/mnt/user/isos/BigSur-install.img'/>\
          <target dev='hdd' bus='sata'/>\
          <address type='drive' controller='0' bus='0' target='0' unit='3'/>\
        </disk>\
        <disk type='file' device='disk'>\
          <driver name='qemu' type='raw' cache='writeback'/>\
          <source file='/mnt/user/domains/Macinabox BigSur/macos_disk.img'/>\
          <target dev='hde' bus='virtio'/>\
          <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>\
        </disk>\
        <controller type='sata' index='0'>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>\
        </controller>\
        <controller type='pci' index='0' model='pcie-root'/>\
        <controller type='pci' index='1' model='pcie-root-port'>\
          <model name='pcie-root-port'/>\
          <target chassis='1' port='0x10'/>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>\
        </controller>\
        <controller type='pci' index='2' model='pcie-root-port'>\
          <model name='pcie-root-port'/>\
          <target chassis='2' port='0x11'/>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>\
        </controller>\
        <controller type='pci' index='3' model='pcie-root-port'>\
          <model name='pcie-root-port'/>\
          <target chassis='3' port='0x12'/>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>\
        </controller>\
        <controller type='pci' index='4' model='pcie-root-port'>\
          <model name='pcie-root-port'/>\
          <target chassis='4' port='0x13'/>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>\
        </controller>\
        <controller type='pci' index='5' model='pcie-root-port'>\
          <model name='pcie-root-port'/>\
          <target chassis='5' port='0x8'/>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>\
        </controller>\
        <controller type='virtio-serial' index='0'>\
          <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>\
        </controller>\
        <controller type='usb' index='0' model='ich9-ehci1'>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>\
        </controller>\
        <controller type='usb' index='0' model='ich9-uhci1'>\
          <master startport='0'/>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>\
        </controller>\
        <controller type='usb' index='0' model='ich9-uhci2'>\
          <master startport='2'/>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>\
        </controller>\
        <controller type='usb' index='0' model='ich9-uhci3'>\
          <master startport='4'/>\
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>\
        </controller>\
        <interface type='bridge'>\
          <mac address='52:54:00:f3:7c:d7'/>\
          <source bridge='br0'/>\
          <model type='virtio'/>\
          <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>\
        </interface>\
        <serial type='pty'>\
          <target type='isa-serial' port='0'>\
            <model name='isa-serial'/>\
          </target>\
        </serial>\
        <console type='pty'>\
          <target type='serial' port='0'/>\
        </console>\
        <channel type='unix'>\
          <target type='virtio' name='org.qemu.guest_agent.0'/>\
          <address type='virtio-serial' controller='0' bus='0' port='1'/>\
        </channel>\
        <input type='tablet' bus='usb'>\
          <address type='usb' bus='0' port='1'/>\
        </input>\
        <input type='mouse' bus='ps2'/>\
        <input type='keyboard' bus='ps2'/>\
        <hostdev mode='subsystem' type='pci' managed='yes'>\
          <driver name='vfio'/>\
          <source>\
            <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>\
          </source>\
          <rom file='/mnt/disk1/vbios/MSI.GT710.rom'/>\
          <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>\
        </hostdev>\
        <hostdev mode='subsystem' type='pci' managed='yes'>\
          <driver name='vfio'/>\
          <source>\
            <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>\
          </source>\
          <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>\
        </hostdev>\
        <memballoon model='none'/>\
      </devices>\
      <qemu:commandline>\
        <qemu:arg value='-usb'/>\
        <qemu:arg value='-device'/>\
        <qemu:arg value='usb-kbd,bus=usb-bus.0'/>\
        <qemu:arg value='-device'/>\
        <qemu:arg value='************************'/>\
        <qemu:arg value='-smbios'/>\
        <qemu:arg value='type=2'/>\
        <qemu:arg value='-cpu'/>\
        <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>\
      </qemu:commandline>\
    </domain>\
    }

     

    it xml with mouse and keyboard

    Spoiler
    <?xml version='1.0' encoding='UTF-8'?>
    <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
      <name>Macinabox BigSur</name>
      <uuid>d401e640-fd71-4e48-bf57-d03a43a02854</uuid>
      <description>MacOS Big Sur</description>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 10" icon="default.png" os="osx"/>
      </metadata>
      <memory unit='KiB'>8388608</memory>
      <currentMemory unit='KiB'>8388608</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>8</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='0'/>
        <vcpupin vcpu='1' cpuset='8'/>
        <vcpupin vcpu='2' cpuset='1'/>
        <vcpupin vcpu='3' cpuset='9'/>
        <vcpupin vcpu='4' cpuset='2'/>
        <vcpupin vcpu='5' cpuset='10'/>
        <vcpupin vcpu='6' cpuset='3'/>
        <vcpupin vcpu='7' cpuset='11'/>
      </cputune>
      <os>
        <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
        <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>
        <nvram>/etc/libvirt/qemu/nvram/d401e640-fd71-4e48-bf57-d03a43a02854_VARS-pure-efi.fd</nvram>
      </os>
      <features>
        <acpi/>
        <apic/>
      </features>
      <cpu mode='host-passthrough' check='none' migratable='on'>
        <topology sockets='1' dies='1' cores='4' threads='2'/>
        <cache mode='passthrough'/>
      </cpu>
      <clock offset='utc'>
        <timer name='rtc' tickpolicy='catchup'/>
        <timer name='pit' tickpolicy='delay'/>
        <timer name='hpet' present='no'/>
      </clock>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>restart</on_crash>
      <devices>
        <emulator>/usr/local/sbin/qemu</emulator>
        <disk type='file' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source file='/mnt/user/domains/Macinabox BigSur/BigSur-opencore.img'/>
          <target dev='hdc' bus='sata'/>
          <boot order='1'/>
          <address type='drive' controller='0' bus='0' target='0' unit='2'/>
        </disk>
        <disk type='file' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source file='/mnt/user/isos/BigSur-install.img'/>
          <target dev='hdd' bus='sata'/>
          <address type='drive' controller='0' bus='0' target='0' unit='3'/>
        </disk>
        <disk type='file' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source file='/mnt/user/domains/Macinabox BigSur/macos_disk.img'/>
          <target dev='hde' bus='virtio'/>
          <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
        </disk>
        <controller type='usb' index='0' model='ich9-ehci1'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci1'>
          <master startport='0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci2'>
          <master startport='2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1' multifunction='on'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci3'>
          <master startport='4'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
        </controller>
        <controller type='pci' index='0' model='pcie-root'/>
        <controller type='pci' index='1' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='1' port='0x9'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
        </controller>
        <controller type='pci' index='2' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='2' port='0xa'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
        </controller>
        <controller type='pci' index='3' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='3' port='0x12'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
        </controller>
        <controller type='pci' index='4' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='4' port='0x13'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
        </controller>
        <controller type='pci' index='5' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='5' port='0x8'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
        </controller>
        <controller type='sata' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:f3:7c:d7'/>
          <source bridge='br0'/>
          <model type='virtio'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
        </interface>
        <serial type='pty'>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
        <channel type='unix'>
          <target type='virtio' name='org.qemu.guest_agent.0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <input type='tablet' bus='usb'>
          <address type='usb' bus='0' port='1'/>
        </input>
        <input type='mouse' bus='ps2'/>
        <input type='keyboard' bus='ps2'/>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
          </source>
          <rom file='/mnt/disk1/vbios/MSI.GT710.rom'/>
          <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x0749'/>
            <product id='0x1000'/>
          </source>
          <address type='usb' bus='0' port='2'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x2188'/>
            <product id='0x0ae1'/>
          </source>
          <address type='usb' bus='0' port='3'/>
        </hostdev>
        <memballoon model='none'/>
      </devices>
      <qemu:commandline>
        <qemu:arg value='-usb'/>
        <qemu:arg value='-device'/>
        <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
        <qemu:arg value='-device'/>
        <qemu:arg value='************************'/>
        <qemu:arg value='-smbios'/>
        <qemu:arg value='type=2'/>
        <qemu:arg value='-cpu'/>
        <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>
      </qemu:commandline>
    </domain>

     

     

×
×
  • Create New...