qemu – Guest Boot Frozen At Press any key to boot from CD or DVD

I have been attempting to create a Windows 10 Virtual Machine using QEMU through virt-manager on Manjaro Linux. I have enabled the passthrough of my GPU and my mouse and keyboard. I have created one CDROM drive with the Windows 10 installation media, another CDROM drive with the VirtIO drivers, and then a qcow2-formatted boot device. I have enabled the boot menu of QEMU to boot first from the install media, then the boot drive, and then the VirtIO drivers for now, so no conflicts should occur. The problem that I am having is that the boot sequence gets frozen at Press any key to boot from CD or DVD after I press a key. I have tried 2 different installation media. The first time Windows said the files were corrupt, and the second is this situation (current install media). The XML for the Virtual Machine is as follows:

<domain type="kvm">
  <name>windows10pro</name>
  <uuid>649b7447-d392-4800-8b1f-d1efebf6a662</uuid>
  <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://microsoft.com/win/10"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory unit="KiB">16777216</memory>
  <currentMemory unit="KiB">16777216</currentMemory>
  <vcpu placement="static" current="1">4</vcpu>
  <os>
    <type arch="x86_64" machine="pc-q35-5.1">hvm</type>
    <loader readonly="yes" type="pflash">/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
    <nvram>/var/lib/libvirt/qemu/nvram/windows10pro_VARS.fd</nvram>
    <bootmenu enable="yes"/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state="on"/>
      <vapic state="on"/>
      <spinlocks state="on" retries="8191"/>
      <vendor_id state="on" value="none"/>
    </hyperv>
    <kvm>
      <hidden state="on"/>
    </kvm>
    <vmport state="off"/>
  </features>
  <cpu mode="host-model" check="partial">
    <topology sockets="1" dies="1" cores="4" threads="1"/>
  </cpu>
  <clock offset="localtime">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
    <timer name="hypervclock" present="yes"/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/var/lib/libvirt/images/windows10pro.qcow2"/>
      <target dev="vda" bus="virtio"/>
      <boot order="2"/>
      <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
    </disk>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/home/antonios/Downloads/Win10_2004_English_x64.iso"/>
      <target dev="sdb" bus="sata"/>
      <readonly/>
      <boot order="1"/>
      <address type="drive" controller="0" bus="0" target="0" unit="1"/>
    </disk>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/home/antonios/Downloads/virtio-win-0.1.185.iso"/>
      <target dev="sdc" bus="sata"/>
      <readonly/>
      <boot order="3"/>
      <address type="drive" controller="0" bus="0" target="0" unit="2"/>
    </disk>
    <controller type="usb" index="0" model="qemu-xhci" ports="15">
      <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>
    <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="0x14"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
    </controller>
    <controller type="pci" index="6" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="6" port="0x15"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
    </controller>
    <controller type="pci" index="7" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="7" port="0x16"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
    </controller>
    <interface type="network">
      <mac address="52:54:00:a2:0c:c4"/>
      <source network="default"/>
      <model type="e1000e"/>
      <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
    </interface>
    <input type="tablet" bus="usb">
      <address type="usb" bus="0" port="3"/>
    </input>
    <input type="mouse" bus="ps2"/>
    <input type="keyboard" bus="ps2"/>
    <video>
      <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
    </video>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
      </source>
      <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
    </hostdev>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0x0000" bus="0x01" slot="0x00" function="0x1"/>
      </source>
      <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
    </hostdev>
    <hostdev mode="subsystem" type="usb" managed="yes">
      <source>
        <vendor id="0x1b1c"/>
        <product id="0x1b49"/>
      </source>
      <address type="usb" bus="0" port="1"/>
    </hostdev>
    <hostdev mode="subsystem" type="usb" managed="yes">
      <source>
        <vendor id="0x264a"/>
        <product id="0x1011"/>
      </source>
      <address type="usb" bus="0" port="2"/>
    </hostdev>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="4"/>
    </redirdev>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="5"/>
    </redirdev>
    <memballoon model="virtio">
      <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
    </memballoon>
  </devices>
</domain>

ubuntu – Double boot option for Windows showing on my BIOS?

So I have recently installed Ubuntu (has that caused the following problem, which I will explain?), on my second m.2 drive and it works perfectly fine, but when I go into the boot options in my BIOS so that I can boot into windows when I want to, the boot overrides option menu shows me two identical options which both load into windows perfectly fine, why is it doing that and can I remove one so that only one is shown, it just looks a bit strange.As you can see from the image it shows two boot override options which are identical and I have tested both, and concluded that they both boot into normal windows

Hibernate – how to add table not business related (Spring Boot)

I wonder what is the best practice in my case:
I have table A and I want to add table B that is not business related to table A, so data in table B should be used only to sort data from table A.

So in that case there is a wrong approach to add foreign key in table A to table B.

I see 2 options:

  1. Table B has foreign key to table A but in that case entity A, after fetching data from table A will load also data from table B? I’d like to get data from table B only on demand and I don’t want to have data from table B when I need only data from table A
  2. I have foreign key in table B that points to table A and nothing in entity A so I have to manually get data from table B for some specific row in table A.

My current solution has to be changed because Table A shouldn’t know about TableB.

@Table(name="TableA")
public class A{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)

@OneToOne(cascade = {CascadeType.MERGE, CascadeType.PERSIST})
@JoinColumn(name="tablea_id", unique="true)
private ObjectA objA;

}

What’s the best solution in my case? I want to get data from table B only in some rare cases…

recovery mode – How to restore TWRP backup when in boot loop?

My phone is stuck in boot loop after suffering water damage. It only reaches the boot loop when I’m charging, otherwise it does not react at all.

My phone is a Galaxy S5 Plus/kccat6/SM-G901F and runs lineageos. TWRP is installed.

Here are the things I tried, in the order I tried them. After each attempt, I tried to reboot, the error is still there.

Restore backup from device

  1. boot to recovery mode
  2. select restore
  3. notice that there are no backup files found on the device

Restore backup from pc

  1. boot to recovery mode
  2. connect to pc
  3. try to mount USB-OTP
  4. “unable to mount”

Flash new lineageos image via heimdall

  1. confirm heimdall is running by typing heimdall version
  2. boot phone to download mode
  3. type heimdal print-pit to check if device is found
  4. ERROR: Failed to detect compatible download-mode device.

Install lineageos from recovery via adb

  1. boot phone to recovery mode
  2. select sideload
  3. on host, type adb sideload lineage-16.0-20201022-nightly-kccat6-signed.zip
  4. error: no devices/emulators found

I’ve read this thread, but since I’m stuck in boot loop I cannot enable USB debugging on the device.

Factory reset

  1. recovery mode
  2. select wipe
  3. wipe
  4. reboot
  5. still boot loop

However, it doesn’t ask me for my decryption pattern anymore, so the reset must have been at least partly successful.

spring boot – manage Jenkins frontend and backend parties

how I can deploy a application based in microservices , I have two parts one backend with springboot and the other with Angular
knowing that the springboot part is already put on Jenkins (I generated the .jar) and all this backend part on GitHub,
how to do for the front-end and how to communicate with the backend

macbook pro – How can I boot in single-user mode for terminal with grey screen?

It all started when I wanted to sell my old Macbook 2011 and remove it from iCloud. I clicked delete my Macbook in iCloud. AND Whoup!! My Macbook shuts down and deletes itself….

I reinstalled High Sierra, unfortunately my AMD graphics card hasn’t worked for years. But at that time the card was bypassed.

BUT NOW
I can’t disable the graphics card via CMD+S. It stops loading “HID: Legency slim 2”.
I got the problem after the PRAM reset.

when I followed the instructions…
https://gist.github.com/cdleon/d1eff7246a25193304284ecec40445b0

NOW I also can’t get into Recovery Mode with CMD+R. Also not via internal or USB stick. I ALWAYS get a gray screen.

How can I disable the graphics card to set up the Mac?
I get prohibition symbol… i need a terminal! 🙁

Translated with www.DeepL.com/Translator (free version)

macbook pro – How i can boot in single-user mode for terminal with grey screen?

Ok it all started when I wanted to sell my old Macbook 2011 and remove it from iCloud. I clicked delete my Macbook in iCloud. AND Whoup!! My Macbook shuts down and deletes itself….

I reinstalled High Sierra, unfortunately my AMD graphics card hasn’t worked for years. But at that time the card was bypassed.

BUT NOW
I can’t disable the graphics card via CMD+S. It stops loading “HID: Legency slim 2”.
I got the problem after the PRAM reset.

when I followed the instructions…
https://gist.github.com/cdleon/d1eff7246a25193304284ecec40445b0

NOW I also can’t get into Recovery Mode with CMD+R. Also not via internal or USB stick. I ALWAYS get a gray screen.

How can I disable the graphics card to set up the Mac?
I get prohibition symbol… i need a terminal! 🙁

Translated with www.DeepL.com/Translator (free version)

Payload Encryption Design for the Web application with Spring Boot Backend

We are working on designing the solution for financial institution as a product,which comprises of Different application [channel] ex Andorid, Web Portal

  • Wrt to the web portal, we thought of going with Spring Security Auth Server [ ouath2 + open id cconnect]
    and there are uses cases [ Sso Inbound, sso outbound, Sso between products internal applications ]

With all this mind

  1. Key Cloak was ironed out for OIDC and OAUTH2 + SSO Integration

Doubt

  • Lets a say web application [ Angular + HTML5+ css] interacts with backend REST / Normal webservice in json
  • Security team recommended [ Message Security] that whatever sent from browser to server and server back to browser should be encrypted [ TLS alone not enough]
  • Security team tested in Burrp suite and indicated, Privacy fields are going in clear and visible so encryption is required for stateless services

HOw to achieve for web portal , Android application as general.

group policy – Remote desktop services “termservice” is disabled intermittently on boot

I have a domain which has a virtual environment as well as several physical machines (mostly laptops). RDP is enabled via group policy. On the physical machines, never the virtuals oddly enough, I keep running into a problem where intermittently, the RDP service is disabled after a reboot.
enter image description here

I’ve ruled out a firewall issue. Those settings are pushed out with GPO as well. I also made a GPO to explicitly set the termservice to be “automatic” but that hasn’t solved the problem either. Someone suggested that policy might be trying to applied before the physical machines have established a network connection, so I made a GPO to delay that using these instructions

https://docs.microsoft.com/en-us/troubleshoot/windows-client/group-policy/fail-to-apply-group-policy-at-startup

This also did not fix the problem. All of the physical machines are Windows 10 Enterprise and fully patched. There’s one laptop I RDP to all the time, so I notice it the most there, but I’ve also noticed it on other physical machines. Sometimes I can reboot the laptop a dozen times, and RDP will work every time. Other times I can reboot over and over and RDP will fail.

When it fails, I enter-pssession to the laptop via powershell and I can see the termservice is stopped. If I physically go to the machine and look at the services, the startup type is set to disabled, but “Allow remote connections to this computer” is checked. I’ve checked the event viewer on the machine I see this the most on, and the only thing I can find is "'Failed CreateVirtualChannel call on this Connections Stack' in CUMRDPConnection::CreateVirtualChannel at 2622 err=(0x80070032)"

I’m at a complete loss as to why this is happening as this should be a simple and straight forward thing to achieve.

Any help would be greatly appreciated.

macos – Remove osascript starting after boot and get to know what it does

I am new to Mac and I have the following problem. After I log in after boot/restart, there is always a tab saying osascript wants to make changes which wants my password. I do not want to run this and clicking Cancel or killing this process in Activity monitor helps for the session. I am also able to see the details of it in Activity monitor. But regardless of what I do, after another start, the pop up menu appears again… How can I kill this script or remove it or disable it forever?

Related to that, how do I get to know what exactly is it trying to do? I tried to hit the Sample button in the menu in Activity monitor which gave me a text file of many things starting with the dirs and identifiers of the script and continuing with a lot of information which I don’t know how to read/interpret. As I said, I’m new to Mac so any help including the super basics is very welcomed :].
Thank you.