Merge branch 'winapps-org:main' into main

This commit is contained in:
gordoncheong 2024-07-25 18:45:55 +08:00 committed by GitHub
commit a808995be0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 848 additions and 566 deletions

View File

@ -370,7 +370,9 @@ function waRunCommand() {
/v:"$RDP_IP" &>/dev/null &
else
# Convert path from UNIX to Windows style.
FILE_PATH=$(echo "$2" | sed 's|'"${HOME}"'|\\\\tsclient\\home|;s|/|\\|g;s|\\|\\\\|g')
FILE_PATH=$(echo "$2" | sed \
-e 's|'"${HOME}"'|\\\\tsclient\\home|' \
-e 's|/|\\|g')
dprint "UNIX_FILE_PATH: ${2}"
dprint "WINDOWS_FILE_PATH: ${FILE_PATH}"

View File

@ -45,12 +45,27 @@ Together, these components form a powerful and flexible virtualization stack, wi
> `QEMU Guest Agent` is a helper daemon used to exchange information and commands between host and guest operating systems.
> You can read more about `QEMU Guest Agent` [here](https://pve.proxmox.com/wiki/Qemu-guest-agent).
5. Download a [Windows 10](https://www.microsoft.com/software-download/windows10ISO) or [Windows 11](https://www.microsoft.com/software-download/windows11) installation `.ISO` image.
5. Configure rootless `libvirt` and `kvm` by adding your user to groups of the same name.
``` bash
sudo usermod -a -G kvm $(id -un) # Add the user to the 'kvm' group.
sudo usermod -a -G libvirt $(id -un) # Add the user to the 'libvirt' group.
sudo reboot # Reboot the system to ensure the user is added to the relevant groups.
```
6. If relevant to your distribution, disable `AppArmor` for the `libvirt` daemon.
``` bash
sudo ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/ # Disable AppArmor for the libvirt daemon by creating a symbolic link.
```
> [!NOTE]
> Systems with `SELinux` may also require security policy adjustments if virtual machine images are stored outside the default `/var/lib/libvirt/images` directory. Read [this guide](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/5/html/virtualization/sect-virtualization-security_for_virtualization-selinux_and_virtualization#sect-Virtualization-Security_for_virtualization-SELinux_and_virtualization) for more information.
7. Download a [Windows 10](https://www.microsoft.com/software-download/windows10ISO) or [Windows 11](https://www.microsoft.com/software-download/windows11) installation `.ISO` image.
> [!IMPORTANT]
> 'Professional', 'Enterprise' or 'Server' editions of Windows are required to run RDP applications. Windows 'Home' will NOT suffice.
6. Download [VirtIO drivers](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso) for the Windows virtual machine.
8. Download [VirtIO drivers](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso) for the Windows virtual machine.
> [!NOTE]
> VirtIO drivers enhance system performance and minimize overhead by enabling the Windows virtual machine to use specialised network and disk device drivers. These drivers are aware that they are operating inside a virtual machine, and cooperate with the hypervisor. This approach eliminates the need for the hypervisor to emulate physical hardware devices, which is a computationally expensive process. This setup allows guests to achieve high-performance network and disk operations, leveraging the benefits of paravirtualisation.
@ -58,11 +73,6 @@ Together, these components form a powerful and flexible virtualization stack, wi
> You can read more about `VirtIO` [here](https://wiki.libvirt.org/Virtio.html) and [here](https://developer.ibm.com/articles/l-virtio/).
## Creating a Windows VM
> [!NOTE]
> If you are an expert user, you may wish to:
> - [Define a Windows virtual machine from an existing `.XML` file](#defining-windows-vm-from-xml)
> - [Configure Rootless `libvirt`](#configuring-rootless-libvirt)
1. Open `virt-manager`.
> [!NOTE]
@ -620,7 +630,7 @@ You can then test whether the host GNU/Linux system can communicate with Windows
{"return":{"version":"107.0.1","supported_commands":[{"enabled":true,"name":"guest-get-cpustats","success-response":true},{"enabled":true,"name":"guest-get-diskstats","success-response":true},{"enabled":true,"name":"guest-get-devices","success-response":true},{"enabled":true,"name":"guest-get-osinfo","success-response":true},{"enabled":true,"name":"guest-get-timezone","success-response":true},{"enabled":true,"name":"guest-get-users","success-response":true},{"enabled":true,"name":"guest-get-host-name","success-response":true},{"enabled":true,"name":"guest-exec","success-response":true},{"enabled":true,"name":"guest-exec-status","success-response":true},{"enabled":false,"name":"guest-get-memory-block-info","success-response":true},{"enabled":false,"name":"guest-set-memory-blocks","success-response":true},{"enabled":false,"name":"guest-get-memory-blocks","success-response":true},{"enabled":true,"name":"guest-set-user-password","success-response":true},{"enabled":true,"name":"guest-get-fsinfo","success-response":true},{"enabled":true,"name":"guest-get-disks","success-response":true},{"enabled":false,"name":"guest-set-vcpus","success-response":true},{"enabled":true,"name":"guest-get-vcpus","success-response":true},{"enabled":true,"name":"guest-network-get-interfaces","success-response":true},{"enabled":false,"name":"guest-suspend-hybrid","success-response":false},{"enabled":true,"name":"guest-suspend-ram","success-response":false},{"enabled":true,"name":"guest-suspend-disk","success-response":false},{"enabled":true,"name":"guest-fstrim","success-response":true},{"enabled":true,"name":"guest-fsfreeze-thaw","success-response":true},{"enabled":true,"name":"guest-fsfreeze-freeze-list","success-response":true},{"enabled":true,"name":"guest-fsfreeze-freeze","success-response":true},{"enabled":true,"name":"guest-fsfreeze-status","success-response":true},{"enabled":true,"name":"guest-file-flush","success-response":true},{"enabled":true,"name":"guest-file-seek","success-response":true},{"enabled":true,"name":"guest-file-write","success-response":true},{"enabled":true,"name":"guest-file-read","success-response":true},{"enabled":true,"name":"guest-file-close","success-response":true},{"enabled":true,"name":"guest-file-open","success-response":true},{"enabled":true,"name":"guest-shutdown","success-response":false},{"enabled":true,"name":"guest-info","success-response":true},{"enabled":true,"name":"guest-set-time","success-response":true},{"enabled":true,"name":"guest-get-time","success-response":true},{"enabled":true,"name":"guest-ping","success-response":true},{"enabled":true,"name":"guest-sync","success-response":true},{"enabled":true,"name":"guest-sync-delimited","success-response":true}]}}
```
Next, you will need to make some registry changes to enable RDP Applications to run on the system. Start by downloading the [RDPApps.reg](/install/RDPApps.reg) file, right-clicking on the `Raw` button, and clicking on `Save target as`.
Next, you will need to make some registry changes to enable RDP Applications to run on the system. Start by downloading the [RDPApps.reg](https://github.com/winapps-org/winapps/blob/main/oem/RDPApps.reg) file, right-clicking on the `Raw` button, and clicking on `Save target as`.
<p align="center">
<img src="./libvirt_images/26.png" width="700px"/>
@ -671,36 +681,3 @@ Finally, restart the virtual machine, but **DO NOT** log in. Close the virtual m
```bash
./installer.sh
```
## Expert Installations
### Defining Windows VM from `.XML`
This expert guide for `.XML` imports is specific to Ubuntu 20.04 and may not work on all hardware platforms. Please read this guide in conjunction with the steps outlined above.
1. Copy your Windows `.ISO` and `VirtIO` drivers `.ISO` files into the desired folder, updating the relevant paths in `kvm/RDPWindows.xml`.
2. Define a virtual machine called 'RDPWindows' from the sample XML file.
``` bash
virsh define kvm/RDPWindows.xml
virsh autostart RDPWindows # Configure the VM to start automatically when the host machine boots
```
3. Open the virtual machine's properties in `virt-manager` and ensure that `Copy host CPU configuration` is enabled.
4. Boot the virtual machine, install Windows and complete the final configuration steps as outlined in the main guide above.
### Configuring Rootless `libvirt`
By default, `libvirt` requires sudo to run virtual machines. To enable your user to access `libvirt` and `kvm` without sudo, your user must be added to groups of the same name. Furthermore, modifications need to be made to `AppArmor` (if relevant to your distribution).
``` bash
sudo sed -i "s/#user = "root"/user = "$(id -un)"/g" /etc/libvirt/qemu.conf # Uncomment the user = "root" line and replace root with the current username.
sudo sed -i "s/#group = "root"/group = "$(id -gn)"/g" /etc/libvirt/qemu.conf # Uncomment the group = "root" line and replace root with the current user's primary group.
sudo usermod -a -G kvm $(id -un) # Add the user to the 'kvm' group.
sudo usermod -a -G libvirt $(id -un) # Add the user to the 'libvirt' group.
sudo systemctl restart libvirtd # Restart the libvirt daemon.
sudo ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/ # Disable AppArmor for the libvirt daemon by creating a symbolic link.
```
You will need to reboot your system to ensure your user is added to the relevant groups.
> [!NOTE]
> Systems with `SELinux` may also require security policy adjustments to enable correct functioning of the `libvirt` daemon.

View File

@ -1,180 +1,562 @@
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 586 384" width="586" height="384">
<title>Open-source-virtualization-stack</title>
<style>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.2"
viewBox="0 0 541.04065 394.31107"
width="541.04065"
height="394.31107"
id="svg171"
sodipodi:docname="Virtualisation_Stack.svg"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs171" />
<sodipodi:namedview
id="namedview171"
pagecolor="#505050"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="true"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="1.4142136"
inkscape:cx="157.68481"
inkscape:cy="190.56528"
inkscape:window-width="1920"
inkscape:window-height="1003"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="Hardware" />
<title
id="title1">Open-source-virtualization-stack</title>
<style
id="style1">
tspan { white-space:pre }
.s0 { fill: #c8c8c8 }
.t1 { font-size: 16px;fill: #000000;font-weight: 700;font-family: "Unageo-Bold", "Unageo" }
.t1 { font-size: 16px;fill: #000000;font-weight: 700;font-family: &quot;Unageo-Bold&quot;, &quot;Unageo&quot; }
.s2 { fill: #f99b0f }
.t3 { font-size: 16px;fill: #ffffff;font-weight: 700;font-family: "Unageo-Bold", "Unageo" }
.t3 { font-size: 16px;fill: #ffffff;font-weight: 700;font-family: &quot;Unageo-Bold&quot;, &quot;Unageo&quot; }
.s4 { fill: #e95420 }
.s5 { fill: #ffffff;stroke: #666666;stroke-miterlimit:100;stroke-width: 5 }
.s6 { fill: #e5e5e5 }
.s7 { fill: #772953 }
.s8 { fill: #ffffff }
</style>
<g id="Hardware">
<path id="Hardware_Layer" class="s0" d="m20 332h546c11 0 20 9 20 20v12c0 11-9 20-20 20h-546c-11 0-20-9-20-20v-12c0-11 9-20 20-20z"/>
<text id="Hardware_Layer_Text" style="transform: matrix(1,0,0,1,27,364)" >
<tspan x="0" y="0" class="t1">H</tspan><tspan y="0" class="t1">a</tspan><tspan y="0" class="t1">r</tspan><tspan y="0" class="t1">d</tspan><tspan y="0" class="t1">w</tspan><tspan y="0" class="t1">a</tspan><tspan y="0" class="t1">r</tspan><tspan y="0" class="t1">e
</tspan>
</text>
<g id="Hardware_Layer_Children">
<g id="CPU">
<path id="CPU_Box" class="s2" d="m227 348v21h-55v-21z"/>
<text id="CPU_Text" style="transform: matrix(1,0,0,1,172,351)" >
<tspan x="11.7" y="12.1" class="t3">C</tspan><tspan y="12.1" class="t3">P</tspan><tspan y="12.1" class="t3">U</tspan><tspan y="12.1" class="t3">
</tspan>
</text>
</g>
<g id="RAM">
<path id="RAM_Box" class="s2" d="m382 348v21h-55v-21z"/>
<text id="RAM_Text" style="transform: matrix(1,0,0,1,327,351)" >
<tspan x="10.7" y="13" class="t3">R</tspan><tspan y="13" class="t3">A</tspan><tspan y="13" class="t3">M
</tspan>
</text>
</g>
<g id="Devices">
<g id="Device_3">
<path id="Device_Box" class="s2" d="m551 341v21h-55v-21z"/>
<text id="Device_Text" style="transform: matrix(1,0,0,1,496,344)" >
<tspan x="2.5" y="13" class="t3">D</tspan><tspan y="13" class="t3">e</tspan><tspan y="13" class="t3">v</tspan><tspan y="13" class="t3">i</tspan><tspan y="13" class="t3">c</tspan><tspan y="13" class="t3">e
</tspan>
</text>
</g>
<g id="Device_2">
<path id="Device_Box" class="s2" d="m544 348v21h-55v-21z"/>
<text id="Device_Text" style="transform: matrix(1,0,0,1,489,351)" >
<tspan x="2.5" y="13" class="t3">D</tspan><tspan y="13" class="t3">e</tspan><tspan y="13" class="t3">v</tspan><tspan y="13" class="t3">i</tspan><tspan y="13" class="t3">c</tspan><tspan y="13" class="t3">e
</tspan>
</text>
</g>
<g id="Device_1">
<path id="Device_Box" class="s2" d="m537 355v21h-55v-21z"/>
<text id="Device_Text" style="transform: matrix(1,0,0,1,482,358)" >
<tspan x="2.5" y="13" class="t3">D</tspan><tspan y="13" class="t3">e</tspan><tspan y="13" class="t3">v</tspan><tspan y="13" class="t3">i</tspan><tspan y="13" class="t3">c</tspan><tspan y="13" class="t3">e
</tspan>
</text>
</g>
</g>
</g>
<g
id="Hardware"
transform="translate(-44.959351,10.311069)">
<rect
style="fill:#c8c8c8;fill-opacity:1;stroke-width:3.42257"
id="rect188-2-0"
width="541.04065"
height="60.038387"
x="44.959351"
y="323.96161"
sodipodi:type="rect"
ry="17.790911"
inkscape:label="Hardware_Box" />
<text
id="Hardware_Layer_Text"
x="63.743351"
y="359.4928"
inkscape:label="Hardware_Text"><tspan
x="63.743351"
y="359.4928"
class="t1"
id="tspan1">H</tspan><tspan
y="359.4928"
class="t1"
id="tspan2">a</tspan><tspan
y="359.4928"
class="t1"
id="tspan3">r</tspan><tspan
y="359.4928"
class="t1"
id="tspan4">d</tspan><tspan
y="359.4928"
class="t1"
id="tspan5">w</tspan><tspan
y="359.4928"
class="t1"
id="tspan6">a</tspan><tspan
y="359.4928"
class="t1"
id="tspan7">r</tspan><tspan
y="359.4928"
class="t1"
id="tspan8">e
</tspan></text>
<g
id="Hardware_Layer_Children">
<g
id="Device_1"
inkscape:label="Devices"
transform="translate(80,1.0017452)">
<rect
style="fill:#f99b0f;fill-opacity:1;stroke-width:1.24488"
id="rect188-8"
width="108.45322"
height="39.624557"
x="389.18134"
y="333.16678"
sodipodi:type="rect"
ry="11.741771"
inkscape:label="Devices_Box" />
<text
id="text33"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-opacity:1"
inkscape:label="Devices_Text"
x="413.58316"
y="357.9075"><tspan
sodipodi:role="line"
id="tspan200"
x="413.58316"
y="357.9075"
inkscape:label="Devices_Text">Devices</tspan></text>
</g>
<g
id="Device_1-5"
inkscape:label="HDD/SSD"
transform="translate(-31.607138,1.0017452)">
<rect
style="fill:#f99b0f;fill-opacity:1;stroke-width:1.24488"
id="rect188-8-0"
width="108.45322"
height="39.624557"
x="388.52295"
y="333.16678"
sodipodi:type="rect"
ry="11.741771"
inkscape:label="HDD/SSD_Box" />
<text
id="text33-6"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-opacity:1"
inkscape:label="HDD/SSD_Text"
x="407.37357"
y="357.9075"><tspan
sodipodi:role="line"
id="tspan201"
x="407.37357"
y="357.9075"
inkscape:label="HDD/SSD_Text">HDD/SSD</tspan></text>
</g>
<g
id="Device_1-5-6"
inkscape:label="RAM"
transform="translate(-143.87266,1.001745)">
<rect
style="fill:#f99b0f;fill-opacity:1;stroke-width:1.03229"
id="rect188-8-0-2"
width="74.573944"
height="39.624557"
x="422.40222"
y="333.16678"
sodipodi:type="rect"
ry="11.741771"
inkscape:label="RAM_Box" />
<text
id="text33-6-5"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-opacity:1"
inkscape:label="RAM_Text"
x="442.39319"
y="358.57907"><tspan
sodipodi:role="line"
id="tspan203"
x="442.39319"
y="358.57907">RAM</tspan></text>
</g>
<g
id="Device_1-5-6-6"
inkscape:label="CPU"
transform="translate(-242.93787,1.363287)">
<rect
style="fill:#f99b0f;fill-opacity:1;stroke-width:1.03229"
id="rect188-8-0-2-7"
width="74.573944"
height="39.624557"
x="443.08118"
y="332.80524"
sodipodi:type="rect"
ry="11.741771"
inkscape:label="CPU_Box" />
<text
id="text33-6-5-8"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-opacity:1"
inkscape:label="CPU_Text"
x="464.82416"
y="358.21744"><tspan
sodipodi:role="line"
id="tspan202"
x="464.82416"
y="358.21744">CPU</tspan></text>
</g>
</g>
<g id="Linux_Kernel">
<path id="Kernel_Layer" class="s0" d="m20 242h546c11 0 20 9 20 20v20c0 11-9 20-20 20h-546c-11 0-20-9-20-20v-20c0-11 9-20 20-20z"/>
<text id="Kernel_Layer_Text" style="transform: matrix(1,0,0,1,65,268)" >
<tspan x="-19.9" y="0" class="t1">L</tspan><tspan y="0" class="t1">i</tspan><tspan y="0" class="t1">n</tspan><tspan y="0" class="t1">u</tspan><tspan y="0" class="t1">x</tspan><tspan y="0" class="t1">
</tspan>
<tspan x="-23.6" y="19.2" class="t1">K</tspan><tspan y="19.2" class="t1">e</tspan><tspan y="19.2" class="t1">r</tspan><tspan y="19.2" class="t1">n</tspan><tspan y="19.2" class="t1">e</tspan><tspan y="19.2" class="t1">l
</tspan>
</text>
<g id="KVM">
<path id="KVM_Layer" class="s4" d="m578 249v45h-403v-45z"/>
<text id="KVM_Text" style="transform: matrix(1,0,0,1,175,254)" >
<tspan x="184.3" y="24.1" class="t3">K</tspan><tspan y="24.1" class="t3">V</tspan><tspan y="24.1" class="t3">M
</tspan>
</text>
</g>
<g
id="Arrows"
transform="translate(60,-10.314655)">
<path
id="Arrow_7"
fill-rule="evenodd"
class="s8"
d="m 266.57968,306.38322 c -0.6,-0.7 -1.6,-0.7 -2.2,0 l -6.2,6.2 c -0.6,0.6 -0.6,1.6 0,2.2 0.6,0.6 1.6,0.6 2.2,0 l 3.5,-3.6 v 18 c 0,0.9 0.7,1.5 1.6,1.5 0.8,0 1.5,-0.6 1.5,-1.5 v -18 l 3.6,3.6 c 0.6,0.6 1.6,0.6 2.2,0 0.6,-0.6 0.6,-1.6 0,-2.2 0,0 -6.2,-6.2 -6.2,-6.2 z"
inkscape:label="Arrow_Up" />
<path
id="Arrow_6"
fill-rule="evenodd"
class="s8"
d="m 244.37968,330.28322 c 0.6,0.6 1.6,0.6 2.2,0 l 6.2,-6.2 c 0.6,-0.6 0.6,-1.6 0,-2.2 -0.6,-0.6 -1.6,-0.6 -2.2,0 l -3.6,3.5 v -17.9 c 0,-0.9 -0.7,-1.6 -1.5,-1.6 -0.9,0 -1.6,0.7 -1.6,1.6 v 17.9 l -3.5,-3.5 c -0.6,-0.6 -1.6,-0.6 -2.2,0 -0.6,0.6 -0.6,1.6 0,2.2 z"
inkscape:label="Arrow_Down" />
</g>
<g id="QEMU">
<path id="QEMU_Layer" class="s0" d="m189 0h376c11 0 20 9 20 20v170c0 11-9 20-20 20h-376c-11 0-20-9-20-20v-170c0-11 9-20 20-20z"/>
<g id="VM_1">
<path id="VM_Box" class="s5" d="m305 43v160h-122v-160z"/>
<g id="VM_Kernel">
<path id="VM_Kernel_Box" class="s6" d="m294 147v45h-100v-45z"/>
<text id="VM_Kernel_text" style="transform: matrix(1,0,0,1,194,150)" >
<tspan x="12.6" y="24.1" class="t1">V</tspan><tspan y="24.1" class="t1">M</tspan><tspan y="24.1" class="t1"> </tspan><tspan y="24.1" class="t1">K</tspan><tspan y="24.1" class="t1">e</tspan><tspan y="24.1" class="t1">r</tspan><tspan y="24.1" class="t1">n</tspan><tspan y="24.1" class="t1">e</tspan><tspan y="24.1" class="t1">l
</tspan>
</text>
</g>
<g id="VM_Applications">
<path id="VM_Applications_Box" class="s7" d="m294 91v45h-100v-45z"/>
<text id="VM_Applications_Text" style="transform: matrix(1,0,0,1,194,94)" >
<tspan x="17.5" y="24.1" class="t3">V</tspan><tspan y="24.1" class="t3">M</tspan><tspan y="24.1" class="t3"> </tspan><tspan y="24.1" class="t3">A</tspan><tspan y="24.1" class="t3">p</tspan><tspan y="24.1" class="t3">p</tspan><tspan y="24.1" class="t3">s
</tspan>
</text>
</g>
<text id="VM_Box_Text" style="transform: matrix(1,0,0,1,244,73)" >
<tspan x="-41.4" y="0" class="t1">G</tspan><tspan y="0" class="t1">u</tspan><tspan y="0" class="t1">e</tspan><tspan y="0" class="t1">s</tspan><tspan y="0" class="t1">t</tspan><tspan y="0" class="t1"> </tspan><tspan y="0" class="t1">(</tspan><tspan y="0" class="t1">V</tspan><tspan y="0" class="t1">M</tspan><tspan y="0" class="t1">)
</tspan>
</text>
</g>
<g id="VM_2">
<path id="VM_Box" class="s5" d="m438 43v160h-122v-160z"/>
<g id="VM_Kernel">
<path id="VM_Kernel_Box" class="s6" d="m427 147v45h-100v-45z"/>
<text id="VM_Kernel_text" style="transform: matrix(1,0,0,1,327,150)" >
<tspan x="12.6" y="24.1" class="t1">V</tspan><tspan y="24.1" class="t1">M</tspan><tspan y="24.1" class="t1"> </tspan><tspan y="24.1" class="t1">K</tspan><tspan y="24.1" class="t1">e</tspan><tspan y="24.1" class="t1">r</tspan><tspan y="24.1" class="t1">n</tspan><tspan y="24.1" class="t1">e</tspan><tspan y="24.1" class="t1">l
</tspan>
</text>
</g>
<g id="VM_Applications">
<path id="VM_Applications_Box" class="s7" d="m427 91v45h-100v-45z"/>
<text id="VM_Applications_Text" style="transform: matrix(1,0,0,1,327,94)" >
<tspan x="17.5" y="24.1" class="t3">V</tspan><tspan y="24.1" class="t3">M</tspan><tspan y="24.1" class="t3"> </tspan><tspan y="24.1" class="t3">A</tspan><tspan y="24.1" class="t3">p</tspan><tspan y="24.1" class="t3">p</tspan><tspan y="24.1" class="t3">s
</tspan>
</text>
</g>
<text id="VM_Box_Text" style="transform: matrix(1,0,0,1,377,73)" >
<tspan x="-41.4" y="0" class="t1">G</tspan><tspan y="0" class="t1">u</tspan><tspan y="0" class="t1">e</tspan><tspan y="0" class="t1">s</tspan><tspan y="0" class="t1">t</tspan><tspan y="0" class="t1"> </tspan><tspan y="0" class="t1">(</tspan><tspan y="0" class="t1">V</tspan><tspan y="0" class="t1">M</tspan><tspan y="0" class="t1">)
</tspan>
</text>
</g>
<g id="VM_3">
<path id="VM_Box" class="s5" d="m571 43v160h-122v-160z"/>
<g id="VM_Kernel">
<path id="VM_Kernel_Box" class="s6" d="m560 147v45h-100v-45z"/>
<text id="VM_Kernel_text" style="transform: matrix(1,0,0,1,460,150)" >
<tspan x="12.6" y="24.1" class="t1">V</tspan><tspan y="24.1" class="t1">M</tspan><tspan y="24.1" class="t1"> </tspan><tspan y="24.1" class="t1">K</tspan><tspan y="24.1" class="t1">e</tspan><tspan y="24.1" class="t1">r</tspan><tspan y="24.1" class="t1">n</tspan><tspan y="24.1" class="t1">e</tspan><tspan y="24.1" class="t1">l
</tspan>
</text>
</g>
<g id="VM_Applications">
<path id="VM_Applications_Box" class="s7" d="m560 91v45h-100v-45z"/>
<text id="VM_Applications_Text" style="transform: matrix(1,0,0,1,460,94)" >
<tspan x="17.5" y="24.1" class="t3">V</tspan><tspan y="24.1" class="t3">M</tspan><tspan y="24.1" class="t3"> </tspan><tspan y="24.1" class="t3">A</tspan><tspan y="24.1" class="t3">p</tspan><tspan y="24.1" class="t3">p</tspan><tspan y="24.1" class="t3">s
</tspan>
</text>
</g>
<text id="VM_Box_Text" style="transform: matrix(1,0,0,1,510,73)" >
<tspan x="-41.4" y="0" class="t1">G</tspan><tspan y="0" class="t1">u</tspan><tspan y="0" class="t1">e</tspan><tspan y="0" class="t1">s</tspan><tspan y="0" class="t1">t</tspan><tspan y="0" class="t1"> </tspan><tspan y="0" class="t1">(</tspan><tspan y="0" class="t1">V</tspan><tspan y="0" class="t1">M</tspan><tspan y="0" class="t1">)
</tspan>
</text>
</g>
<text id="QEMU_Layer_Text" style="transform: matrix(1,0,0,1,377,27)" >
<tspan x="-23.2" y="0" class="t1">Q</tspan><tspan y="0" class="t1">E</tspan><tspan y="0" class="t1">M</tspan><tspan y="0" class="t1">U
</tspan>
</text>
</g>
<g
id="Linux_Kernel"
transform="translate(-44.959351,-0.00358646)">
<rect
style="fill:#c8c8c8;fill-opacity:1;stroke-width:3.42257"
id="rect188-2"
width="541.04065"
height="60.038387"
x="44.959351"
y="242.0282"
sodipodi:type="rect"
ry="17.790911"
inkscape:label="Linux_Kernel_Box" />
<text
id="Kernel_Layer_Text"
inkscape:label="Linux_Kernel_Text"
x="63.743351"
y="277.83139"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"><tspan
sodipodi:role="line"
id="tspan179"
x="63.743351"
y="277.83139"
inkscape:label="Linux_Kernel_Text">Linux Kernel</tspan></text>
<g
id="KVM"
inkscape:label="KVM_Hypervisor">
<rect
style="fill:#ce3b3b;fill-opacity:1;stroke-width:2.23071"
id="rect188-2-1"
width="313.58145"
height="44.00354"
x="264.0531"
y="250.06953"
sodipodi:type="rect"
ry="13.039374"
inkscape:label="KVM_Hypervisor_Box" />
<text
id="KVM_Text"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1"
x="360.41183"
y="276.25531"
inkscape:label="KVM_Hypervisor_Text"><tspan
sodipodi:role="line"
id="tspan187"
x="360.41183"
y="276.25531"
inkscape:label="KVM_Hypervisor_Text">KVM Hypervisor</tspan></text>
</g>
<g id="GNU/Linux_Applications">
<path id="GNU/Linux_Applications_Box" class="s0" d="m20 0h90c11 0 20 9 20 20v170c0 11-9 20-20 20h-90c-11 0-20-9-20-20v-170c0-11 9-20 20-20z"/>
<g id="libvirt">
<path id="libvirt_Box" class="s7" d="m116 142v50h-102v-50z"/>
<text id="libvirt" style="transform: matrix(1,0,0,1,14,145)" >
<tspan x="29.4" y="26.6" class="t3">l</tspan><tspan y="26.6" class="t3">i</tspan><tspan y="26.6" class="t3">b</tspan><tspan y="26.6" class="t3">v</tspan><tspan y="26.6" class="t3">i</tspan><tspan y="26.6" class="t3">r</tspan><tspan y="26.6" class="t3">t
</tspan>
</text>
</g>
<g id="virt-manager">
<path id="virt-manager_Box" class="s7" d="m117 67v46h-104v-46z"/>
<text id="virt-manager" style="transform: matrix(1,0,0,1,13,70)" >
<tspan x="1.8" y="24.6" class="t3">v</tspan><tspan y="24.6" class="t3">i</tspan><tspan y="24.6" class="t3">r</tspan><tspan y="24.6" class="t3">t</tspan><tspan y="24.6" class="t3">-</tspan><tspan y="24.6" class="t3">m</tspan><tspan y="24.6" class="t3">a</tspan><tspan y="24.6" class="t3">n</tspan><tspan y="24.6" class="t3">a</tspan><tspan y="24.6" class="t3">g</tspan><tspan y="24.6" class="t3">e</tspan><tspan y="24.6" class="t3">r
</tspan>
</text>
</g>
<text id="GNU/Linux_Applications_Text" style="transform: matrix(1,0,0,1,65,26)" >
<tspan x="-40.9" y="0" class="t1">G</tspan><tspan y="0" class="t1">N</tspan><tspan y="0" class="t1">U</tspan><tspan y="0" class="t1">/</tspan><tspan y="0" class="t1">L</tspan><tspan y="0" class="t1">i</tspan><tspan y="0" class="t1">n</tspan><tspan y="0" class="t1">u</tspan><tspan y="0" class="t1">x</tspan><tspan y="0" class="t1">
</tspan>
<tspan x="-46" y="19.2" class="t1">A</tspan><tspan y="19.2" class="t1">p</tspan><tspan y="19.2" class="t1">p</tspan><tspan y="19.2" class="t1">l</tspan><tspan y="19.2" class="t1">i</tspan><tspan y="19.2" class="t1">c</tspan><tspan y="19.2" class="t1">a</tspan><tspan y="19.2" class="t1">t</tspan><tspan y="19.2" class="t1">i</tspan><tspan y="19.2" class="t1">o</tspan><tspan y="19.2" class="t1">n</tspan><tspan y="19.2" class="t1">s
</tspan>
</text>
<g
id="g206"
inkscape:label="Arrows"
transform="translate(60)">
<path
id="Arrow_5"
fill-rule="evenodd"
class="s8"
d="m 370.37233,213.93929 c -0.6,-0.7 -1.6,-0.7 -2.2,0 l -6.2,6.2 c -0.6,0.6 -0.6,1.6 0,2.2 0.6,0.6 1.6,0.6 2.2,0 l 3.5,-3.6 v 18 c 0,0.9 0.7,1.5 1.6,1.5 0.8,0 1.5,-0.6 1.5,-1.5 v -18 l 3.6,3.6 c 0.6,0.6 1.6,0.6 2.2,0 0.6,-0.6 0.6,-1.6 0,-2.2 0,0 -6.2,-6.2 -6.2,-6.2 z"
inkscape:label="Up_Arrow" />
<path
id="Arrow_4"
fill-rule="evenodd"
class="s8"
d="m 348.17233,237.83929 c 0.6,0.6 1.6,0.6 2.2,0 l 6.2,-6.2 c 0.6,-0.6 0.6,-1.6 0,-2.2 -0.6,-0.6 -1.6,-0.6 -2.2,0 l -3.6,3.5 v -17.9 c 0,-0.9 -0.7,-1.6 -1.5,-1.6 -0.9,0 -1.6,0.7 -1.6,1.6 v 17.9 l -3.5,-3.5 c -0.6,-0.6 -1.6,-0.6 -2.2,0 -0.6,0.6 -0.6,1.6 0,2.2 0,0 6.2,6.2 6.2,6.2 z"
inkscape:label="Down_Arrow" />
</g>
<g id="Arrows">
<path id="Arrow_0" fill-rule="evenodd" class="s8" d="m75.7 115c-0.6-0.7-1.6-0.7-2.2 0l-6.2 6.2c-0.6 0.6-0.6 1.6 0 2.2 0.6 0.6 1.6 0.6 2.2 0l3.5-3.6v18c0 0.9 0.7 1.5 1.6 1.5 0.8 0 1.5-0.6 1.5-1.5v-18l3.6 3.6c0.6 0.6 1.6 0.6 2.2 0 0.6-0.6 0.6-1.6 0-2.2 0 0-6.2-6.2-6.2-6.2z"/>
<path id="Arrow_1" fill-rule="evenodd" class="s8" d="m53.5 138.9c0.6 0.6 1.6 0.6 2.2 0l6.2-6.2c0.6-0.6 0.6-1.6 0-2.2-0.6-0.6-1.6-0.6-2.2 0l-3.6 3.5v-17.9c0-0.9-0.7-1.6-1.5-1.6-0.9 0-1.6 0.7-1.6 1.6v17.9l-3.5-3.5c-0.6-0.6-1.6-0.6-2.2 0-0.6 0.6-0.6 1.6 0 2.2 0 0 6.2 6.2 6.2 6.2z"/>
<path id="Arrow_2" fill-rule="evenodd" class="s8" d="m159.5 158c0.7-0.6 0.7-1.6 0-2.2l-6.2-6.2c-0.6-0.6-1.6-0.6-2.2 0-0.6 0.6-0.6 1.6 0 2.2l3.6 3.6h-18c-0.9 0-1.5 0.7-1.5 1.5 0 0.9 0.6 1.6 1.5 1.6h18l-3.6 3.5c-0.6 0.6-0.6 1.6 0 2.2 0.6 0.6 1.6 0.6 2.2 0 0 0 6.2-6.2 6.2-6.2z"/>
<path id="Arrow_3" fill-rule="evenodd" class="s8" d="m135.6 175.8c-0.6 0.6-0.6 1.6 0 2.2l6.2 6.2c0.6 0.6 1.6 0.6 2.2 0 0.6-0.6 0.6-1.6 0-2.2l-3.5-3.5h17.9c0.9 0 1.6-0.7 1.6-1.6 0-0.8-0.7-1.5-1.6-1.5h-17.9l3.5-3.6c0.6-0.6 0.6-1.6 0-2.2-0.6-0.6-1.6-0.6-2.2 0 0 0-6.2 6.2-6.2 6.2z"/>
<path id="Arrow_4" fill-rule="evenodd" class="s8" d="m281.5 238.9c0.6 0.6 1.6 0.6 2.2 0l6.2-6.2c0.6-0.6 0.6-1.6 0-2.2-0.6-0.6-1.6-0.6-2.2 0l-3.6 3.5v-17.9c0-0.9-0.7-1.6-1.5-1.6-0.9 0-1.6 0.7-1.6 1.6v17.9l-3.5-3.5c-0.6-0.6-1.6-0.6-2.2 0-0.6 0.6-0.6 1.6 0 2.2 0 0 6.2 6.2 6.2 6.2z"/>
<path id="Arrow_5" fill-rule="evenodd" class="s8" d="m303.7 215c-0.6-0.7-1.6-0.7-2.2 0l-6.2 6.2c-0.6 0.6-0.6 1.6 0 2.2 0.6 0.6 1.6 0.6 2.2 0l3.5-3.6v18c0 0.9 0.7 1.5 1.6 1.5 0.8 0 1.5-0.6 1.5-1.5v-18l3.6 3.6c0.6 0.6 1.6 0.6 2.2 0 0.6-0.6 0.6-1.6 0-2.2 0 0-6.2-6.2-6.2-6.2z"/>
<path id="Arrow_6" fill-rule="evenodd" class="s8" d="m281.5 328.9c0.6 0.6 1.6 0.6 2.2 0l6.2-6.2c0.6-0.6 0.6-1.6 0-2.2-0.6-0.6-1.6-0.6-2.2 0l-3.6 3.5v-17.9c0-0.9-0.7-1.6-1.5-1.6-0.9 0-1.6 0.7-1.6 1.6v17.9l-3.5-3.5c-0.6-0.6-1.6-0.6-2.2 0-0.6 0.6-0.6 1.6 0 2.2 0 0 6.2 6.2 6.2 6.2z"/>
<path id="Arrow_7" fill-rule="evenodd" class="s8" d="m303.7 305c-0.6-0.7-1.6-0.7-2.2 0l-6.2 6.2c-0.6 0.6-0.6 1.6 0 2.2 0.6 0.6 1.6 0.6 2.2 0l3.5-3.6v18c0 0.9 0.7 1.5 1.6 1.5 0.8 0 1.5-0.6 1.5-1.5v-18l3.6 3.6c0.6 0.6 1.6 0.6 2.2 0 0.6-0.6 0.6-1.6 0-2.2 0 0-6.2-6.2-6.2-6.2z"/>
</g>
<g
id="GNU/Linux_Applications"
transform="translate(15.046545,-0.00120841)">
<g
id="QEMU"
transform="matrix(1.0004025,0,0,1,-52.024771,-0.03358027)">
<rect
style="fill:#772953;fill-opacity:1;stroke-width:5.03902"
id="rect188-1-2-8-6"
width="335.35287"
height="209.96338"
x="242.42934"
y="0.034788683"
sodipodi:type="rect"
ry="21.214319"
inkscape:label="QEMU_Box" />
<g
id="VM_1"
inkscape:label="VM"
transform="translate(-8.9179688)">
<rect
style="fill:#ffffff;fill-opacity:1;stroke:#c8c8c8;stroke-width:3.9992;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
id="rect194"
width="310.60089"
height="162.15367"
x="263.7233"
y="36.053669"
inkscape:label="VM_Box"
ry="22.935234" />
<g
id="VM_Kernel"
transform="translate(1.3399048,-2)">
<rect
style="fill:#c8c8c8;fill-opacity:1;stroke-width:1.94504"
id="rect188-1-2-8"
width="287.91882"
height="36.437138"
x="273.72443"
y="152.90547"
sodipodi:type="rect"
ry="10.797256"
inkscape:label="VM_Kernel_Box" />
<text
id="VM_Kernel_text"
x="380.61926"
y="176.62694"
inkscape:label="VM_Kernel_Text"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:15.9968px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1"><tspan
sodipodi:role="line"
id="tspan174"
x="380.61926"
y="176.62694"
inkscape:label="VM_Kernel_Text">VM Kernel</tspan></text>
</g>
<g
id="VM_Kernel-9"
transform="matrix(1.0004025,0,0,1,40.454492,92.64688)"
inkscape:label="VirtIO_Drivers">
<rect
style="fill:#e95420;fill-opacity:1;stroke-width:1.94465"
id="rect188-1-2"
width="287.80298"
height="36.437138"
x="234.51544"
y="18.651285"
sodipodi:type="rect"
ry="10.797256"
inkscape:label="VirtIO_Drivers_Box" />
<text
id="VM_Kernel_text-6"
x="328.36932"
y="42.652699"
inkscape:label="VirtIO_Drivers_Text"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:15.9968px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1"><tspan
sodipodi:role="line"
id="tspan177"
x="328.36932"
y="42.652699"
inkscape:label="VirtIO_Drivers_Text">VirtIO Drivers</tspan></text>
</g>
<g
id="VM_Applications-4"
inkscape:label="QEMU_Guest_Agent"
transform="translate(204.88644,-6.0165224)">
<rect
style="fill:#772953;fill-opacity:1;stroke-width:1.46467"
id="rect188-1-2-9-3"
width="163.26472"
height="36.437138"
x="194.83199"
y="78.043976"
sodipodi:type="rect"
ry="10.797256"
inkscape:label="QEMU_Guest_Agent_Box" />
<text
id="VM_Applications_Text-7"
x="204.8786"
y="100.24575"
inkscape:label="QEMU_Guest_Agent_Text"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:15.9968px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1"><tspan
sodipodi:role="line"
id="tspan185"
x="204.8786"
y="100.24575"
inkscape:label="QEMU_Guest_Agent_Text">QEMU Guest Agent</tspan></text>
</g>
<g
id="VM_Applications"
inkscape:label="Applications"
transform="translate(81.826784,-5.6741752)">
<rect
style="fill:#772953;fill-opacity:1;stroke-width:1.26836"
id="rect188-1-2-9"
width="122.43394"
height="36.437138"
x="193.23755"
y="77.757698"
sodipodi:type="rect"
ry="10.797256"
inkscape:label="Applications_Box" />
<text
id="VM_Applications_Text"
x="209.37514"
y="100.25541"
inkscape:label="Applications_Text"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:15.9968px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1"><tspan
sodipodi:role="line"
id="tspan186"
x="209.37514"
y="100.25541"
inkscape:label="Applications_Text">Applications</tspan></text>
</g>
<text
id="VM_Box_Text"
x="342.20712"
y="59.87468"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:15.9968px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1"
inkscape:label="VM_Text"><tspan
sodipodi:role="line"
id="tspan178"
inkscape:label="VM_Box_Text"
x="342.20712"
y="59.87468">Windows Guest (VM)</tspan></text>
</g>
<text
id="QEMU_Layer_Text"
x="410.32974"
y="23.077698"
inkscape:label="QEMU_Text"
style="fill:#ffffff;fill-opacity:1"><tspan
x="387.12976"
y="23.077698"
class="t1"
id="tspan127"
style="fill:#ffffff;fill-opacity:1">Q</tspan><tspan
y="23.077698"
class="t1"
id="tspan128"
style="fill:#ffffff;fill-opacity:1">E</tspan><tspan
y="23.077698"
class="t1"
id="tspan129"
style="fill:#ffffff;fill-opacity:1">M</tspan><tspan
y="23.077698"
class="t1"
id="tspan130"
style="fill:#ffffff;fill-opacity:1">U
</tspan></text>
</g>
<g
id="g137"
inkscape:label="libvirt + qemu-guest-agent"
transform="translate(0,-69.931008)">
<rect
style="fill:#772953;fill-opacity:1;stroke-width:1.9483"
id="rect188-5"
width="146.3732"
height="71.912071"
x="9.4620256"
y="192.95787"
sodipodi:type="rect"
ry="21.309387"
inkscape:label="libvirt_+_qemu-guest-agent_Box" />
<text
id="libvirt"
x="82.632622"
y="223.08191"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1"
inkscape:label="libvirt_+_qemu-guest-agent_Text"><tspan
sodipodi:role="line"
id="tspan204"
x="82.632622"
y="223.08191"
style="text-align:center;text-anchor:middle">libvirt +</tspan><tspan
sodipodi:role="line"
id="tspan205"
x="82.632622"
y="243.08191"
style="text-align:center;text-anchor:middle">qemu-guest-agent</tspan></text>
</g>
<g
id="g205"
inkscape:label="Arrows">
<path
id="Arrow_2"
fill-rule="evenodd"
class="s8"
d="m 185.26144,170.08528 c 0.7,-0.6 0.7,-1.6 0,-2.2 l -6.2,-6.2 c -0.6,-0.6 -1.6,-0.6 -2.2,0 -0.6,0.6 -0.6,1.6 0,2.2 l 3.6,3.6 h -18 c -0.9,0 -1.5,0.7 -1.5,1.5 0,0.9 0.6,1.6 1.5,1.6 h 18 l -3.6,3.5 c -0.6,0.6 -0.6,1.6 0,2.2 0.6,0.6 1.6,0.6 2.2,0 z"
inkscape:label="Right_Arrow"
transform="translate(-0.005896,-0.00237805)" />
<path
id="Arrow_3"
fill-rule="evenodd"
class="s8"
d="m 161.36144,147.88528 c -0.6,0.6 -0.6,1.6 0,2.2 l 6.2,6.2 c 0.6,0.6 1.6,0.6 2.2,0 0.6,-0.6 0.6,-1.6 0,-2.2 l -3.5,-3.5 h 17.9 c 0.9,0 1.6,-0.7 1.6,-1.6 0,-0.8 -0.7,-1.5 -1.6,-1.5 h -17.9 l 3.5,-3.6 c 0.6,-0.6 0.6,-1.6 0,-2.2 -0.6,-0.6 -1.6,-0.6 -2.2,0 z"
inkscape:label="Left_Arrow"
transform="translate(-0.005896,-0.00237805)" />
<path
id="Arrow_0"
fill-rule="evenodd"
class="s8"
d="m 93.754521,93.097776 c -0.6,-0.7 -1.6,-0.7 -2.2,0 l -6.2,6.2 c -0.6,0.6 -0.6,1.600004 0,2.200004 0.6,0.6 1.6,0.6 2.2,0 l 3.5,-3.600004 v 18.000004 c 0,0.9 0.7,1.5 1.6,1.5 0.8,0 1.5,-0.6 1.5,-1.5 V 97.897776 l 3.6,3.600004 c 0.6,0.6 1.6,0.6 2.2,0 0.599999,-0.6 0.599999,-1.600004 0,-2.200004 0,0 -6.2,-6.2 -6.2,-6.2 z"
inkscape:label="Up_Arrow"
transform="translate(-0.005896,-0.00237805)" />
<path
id="Arrow_1"
fill-rule="evenodd"
class="s8"
d="m 71.554521,116.96028 c 0.6,0.6 1.6,0.6 2.2,0 l 6.2,-6.2 c 0.6,-0.6 0.6,-1.6 0,-2.2 -0.6,-0.6 -1.6,-0.6 -2.2,0 l -3.6,3.5 V 94.160276 c 0,-0.9 -0.7,-1.6 -1.5,-1.6 -0.9,0 -1.6,0.7 -1.6,1.6 v 17.900004 l -3.5,-3.5 c -0.6,-0.6 -1.6,-0.6 -2.2,0 -0.6,0.6 -0.6,1.6 0,2.2 z"
inkscape:label="Down_Arrow"
transform="translate(-0.005896,-0.00237805)" />
</g>
<g
id="g149"
inkscape:label="virt-manager"
transform="translate(0,75.02924)">
<rect
style="fill:#772953;fill-opacity:1;stroke-width:1.9483"
id="rect188"
width="146.3732"
height="71.912071"
x="9.4620256"
y="-60.00238"
sodipodi:type="rect"
ry="21.309387"
inkscape:label="virt-manager_Box" />
<text
id="virt-manager"
x="35.917446"
y="-19.878342"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1"><tspan
sodipodi:role="line"
id="tspan181"
x="35.917446"
y="-19.878342">virt-manager</tspan></text>
</g>
<text
id="GNU/Linux_Applications_Text"
x="-193.88689"
y="-3.0945449"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;font-family:Unageo;-inkscape-font-specification:'Unageo, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1"
transform="rotate(-90)"><tspan
sodipodi:role="line"
id="tspan188"
x="-193.88689"
y="-3.0945449">GNU/Linux Applications</tspan></text>
</g>
<metadata
id="metadata188">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:title>Open-source-virtualization-stack</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
</svg>

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,153 +1,161 @@
<#
'Get-Icon' Source:
https://github.com/proxb/PowerShell_Scripts/blob/master/Get-Icon.ps1
'Get-Icon' License:
The MIT License (MIT)
Copyright (c)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#>
Function Get-Icon {
<#
Get-Icon License:
.SYNOPSIS
Gets the icon from a file
License
.DESCRIPTION
Gets the icon from a file and displays it in a variety formats.
The MIT License (MIT)
.PARAMETER Path
The path to a file to get the icon
Copyright (c)
.PARAMETER ToBytes
Displays outputs as a byte array
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
.PARAMETER ToBitmap
Display the icon as a bitmap object
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
.PARAMETER ToBase64
Displays the icon in Base64 encoded format
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#>
<#
.SYNOPSIS
Gets the icon from a file
.NOTES
Name: Get-Icon
Author: Boe Prox
Version History:
1.0 //Boe Prox - 11JAN2016
- Initial version
.DESCRIPTION
Gets the icon from a file and displays it in a variety formats.
.OUTPUT
System.Drawing.Icon
System.Drawing.Bitmap
System.String
System.Byte[]
.PARAMETER Path
The path to a file to get the icon
.EXAMPLE
Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe'
.PARAMETER ToBytes
Displays outputs as a byte array
FullName : C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe
Handle : 164169893
Height : 32
Size : {Width=32, Height=32}
Width : 32
.PARAMETER ToBitmap
Display the icon as a bitmap object
Description
-----------
Returns the System.Drawing.Icon representation of the icon
.PARAMETER ToBase64
Displays the icon in Base64 encoded format
.EXAMPLE
Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBitmap
.NOTES
Name: Get-Icon
Author: Boe Prox
Version History:
1.0 //Boe Prox - 11JAN2016
- Initial version
Tag :
PhysicalDimension : {Width=32, Height=32}
Size : {Width=32, Height=32}
Width : 32
Height : 32
HorizontalResolution : 96
VerticalResolution : 96
Flags : 2
RawFormat : [ImageFormat: b96b3caa-0728-11d3-9d7b-0000f81ef32e]
PixelFormat : Format32bppArgb
Palette : System.Drawing.Imaging.ColorPalette
FrameDimensionsList : {7462dc86-6180-4c7e-8e3f-ee7333a7a483}
PropertyIdList : {}
PropertyItems : {}
.OUTPUT
System.Drawing.Icon
System.Drawing.Bitmap
System.String
System.Byte[]
Description
-----------
Returns the System.Drawing.Bitmap representation of the icon
.EXAMPLE
Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe'
.EXAMPLE
$FileName = 'C:\Temp\PowerShellIcon.png'
$Format = [System.Drawing.Imaging.ImageFormat]::Png
(Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBitmap).Save($FileName,$Format)
FullName : C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe
Handle : 164169893
Height : 32
Size : {Width=32, Height=32}
Width : 32
Description
-----------
Saves the icon as a file.
Description
-----------
Returns the System.Drawing.Icon representation of the icon
.EXAMPLE
Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBase64
.EXAMPLE
Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBitmap
AAABAAEAICAQHQAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP
//AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmZmZmZmZmZmZmZgAAAAAAaId3d3d3d4iIiIdgAA
AHdmhmZmZmZmZmZmZoZAAAB2ZnZmZmZmZmZmZmZ3YAAAdmZ3ZmiHZniIiHZmaGAAAHZmd2Zv/4eIiIi
GZmhgAAB2ZmdmZ4/4eIh3ZmZnYAAAd2ZnZmZo//h2ZmZmZ3YAAHZmaGZmZo//h2ZmZmd2AAB3Zmd2Zm
Znj/h2ZmZmhgAAd3dndmZmZuj/+GZmZoYAAHd3dod3dmZuj/9mZmZ2AACHd3aHd3eIiP/4ZmZmd2AAi
Hd2iIiIiI//iId2ZndgAIiIhoiIiIj//4iIiIiIYACIiId4iIiP//iIiIiIiGAAiIiIaIiI//+IiIiI
iIhkAIiIiGiIiP/4iIiIiIiIdgCIiIhoiIj/iIiIiIiIiIYAiIiIeIiIiIiIiIiIiIiGAAiIiIaP///
////////4hgAAAAAGZmZmZmZmZmZmZmYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////////gA
AAf4AAAD+AAAAfgAAAHAAAABwAAAAcAAAAHAAAAAwAAAAMAAAADAAAAAwAAAAMAAAABAAAAAQAAAAEA
AAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAP4AAAH//////////////////////////w==
Tag :
PhysicalDimension : {Width=32, Height=32}
Size : {Width=32, Height=32}
Width : 32
Height : 32
HorizontalResolution : 96
VerticalResolution : 96
Flags : 2
RawFormat : [ImageFormat: b96b3caa-0728-11d3-9d7b-0000f81ef32e]
PixelFormat : Format32bppArgb
Palette : System.Drawing.Imaging.ColorPalette
FrameDimensionsList : {7462dc86-6180-4c7e-8e3f-ee7333a7a483}
PropertyIdList : {}
PropertyItems : {}
Description
-----------
Returns the Base64 encoded representation of the icon
Description
-----------
Returns the System.Drawing.Bitmap representation of the icon
.EXAMPLE
Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBase64 | Clip
.EXAMPLE
$FileName = 'C:\Temp\PowerShellIcon.png'
$Format = [System.Drawing.Imaging.ImageFormat]::Png
(Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBitmap).Save($FileName,$Format)
Description
-----------
Returns the Base64 encoded representation of the icon and saves it to the clipboard.
Description
-----------
Saves the icon as a file.
.EXAMPLE
(Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBytes) -Join ''
.EXAMPLE
Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBase64
AAABAAEAICAQHQAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP
//AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmZmZmZmZmZmZmZgAAAAAAaId3d3d3d4iIiIdgAA
AHdmhmZmZmZmZmZmZoZAAAB2ZnZmZmZmZmZmZmZ3YAAAdmZ3ZmiHZniIiHZmaGAAAHZmd2Zv/4eIiIi
GZmhgAAB2ZmdmZ4/4eIh3ZmZnYAAAd2ZnZmZo//h2ZmZmZ3YAAHZmaGZmZo//h2ZmZmd2AAB3Zmd2Zm
Znj/h2ZmZmhgAAd3dndmZmZuj/+GZmZoYAAHd3dod3dmZuj/9mZmZ2AACHd3aHd3eIiP/4ZmZmd2AAi
Hd2iIiIiI//iId2ZndgAIiIhoiIiIj//4iIiIiIYACIiId4iIiP//iIiIiIiGAAiIiIaIiI//+IiIiI
iIhkAIiIiGiIiP/4iIiIiIiIdgCIiIhoiIj/iIiIiIiIiIYAiIiIeIiIiIiIiIiIiIiGAAiIiIaP///
////////4hgAAAAAGZmZmZmZmZmZmZmYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////////gA
AAf4AAAD+AAAAfgAAAHAAAABwAAAAcAAAAHAAAAAwAAAAMAAAADAAAAAwAAAAMAAAABAAAAAQAAAAEA
AAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAP4AAAH//////////////////////////w==
Description
-----------
Returns the Base64 encoded representation of the icon
.EXAMPLE
Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBase64 | Clip
Description
-----------
Returns the Base64 encoded representation of the icon and saves it to the clipboard.
.EXAMPLE
(Get-Icon -Path 'C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe' -ToBytes) -Join ''
0010103232162900002322002200040000320006400010400000128200000000000000000000000
0128001280001281280128000128012801281280012812812801921921920002550025500025525
5025500025502550255255002552552550000000000000000000000000000000000000000000000
0000000000000000000000000000000000006102102102102102102102102102102960000613611
9119119119119120136136136118000119102134102102102102102102102102102134640011810
2118102102102102102102102102102119960011810211910210413510212013613611810210496
0011810211910211125513513613613613410210496001181021031021031432481201361191021
0210396001191021031021021042552481181021021021031180011810210410210210214325513
5102102102103118001191021031181021021031432481181021021021340011911910311810210
2102232255248102102102134001191191181351191181021101432551021021021180013511911
8135119119136136255248102102102119960136119118136136136136143255136135118102119
9601361361341361361361362552551361361361361369601361361351201361361432552481361
3613613613696013613613610413613625525513613613613613613610001361361361041361362
5524813613613613613613611801361361361041361362551361361361361361361361340136136
1361201361361361361361361361361361361340813613613414325525525525525525525525524
8134000061021021021021021021021021021021020000000000000000000000000000000000000
0000000000000000000000000000000000000000000025525525525525525525525525525525525
5224003122400152240072240070007000700070003000300030003000300010001000100010000
0000000000000000000012800025400125525525525525525525525525525525525525525525525
5255255255255
Description
-----------
Returns the bytes representation of the icon. -Join was used in this for the sake
of displaying all of the data.
0010103232162900002322002200040000320006400010400000128200000000000000000000000
0128001280001281280128000128012801281280012812812801921921920002550025500025525
5025500025502550255255002552552550000000000000000000000000000000000000000000000
0000000000000000000000000000000000006102102102102102102102102102102960000613611
9119119119119120136136136118000119102134102102102102102102102102102134640011810
2118102102102102102102102102102119960011810211910210413510212013613611810210496
0011810211910211125513513613613613410210496001181021031021031432481201361191021
0210396001191021031021021042552481181021021021031180011810210410210210214325513
5102102102103118001191021031181021021031432481181021021021340011911910311810210
2102232255248102102102134001191191181351191181021101432551021021021180013511911
8135119119136136255248102102102119960136119118136136136136143255136135118102119
9601361361341361361361362552551361361361361369601361361351201361361432552481361
3613613613696013613613610413613625525513613613613613613610001361361361041361362
5524813613613613613613611801361361361041361362551361361361361361361361340136136
1361201361361361361361361361361361361340813613613414325525525525525525525525524
8134000061021021021021021021021021021021020000000000000000000000000000000000000
0000000000000000000000000000000000000000000025525525525525525525525525525525525
5224003122400152240072240070007000700070003000300030003000300010001000100010000
0000000000000000000012800025400125525525525525525525525525525525525525525525525
5255255255255
Description
-----------
Returns the bytes representation of the icon. -Join was used in this for the sake
of displaying all of the data.
#>
[cmdletbinding(
DefaultParameterSetName = '__DefaultParameterSetName'
@ -204,23 +212,146 @@ Function Get-Icon {
}
}
function PrintArrayData {
param (
[string[]]$Paths,
[string]$Source
)
# Remove leading and trailing double quotes from all paths.
$Paths = $Paths -replace '^"*|"*$'
# Sort the array of paths based on the filename at the end of each path.
$Paths = $Paths | Sort-Object {
# Extract the filename from the path
[System.IO.Path]::GetFileName($_)
}
# Loop through the extracted executable file paths.
foreach ($exePath in $Paths) {
# Get the application name.
if ((Get-Item $exePath).VersionInfo.FileDescription) {
# Remove leading/trailing whitespace and replace multiple spaces with a single space.
$exeName = (Get-Item $exePath).VersionInfo.FileDescription.Trim() -replace '\s+', ' '
} else {
# Get the executable file name without the file extension.
$exeName = [System.IO.Path]::GetFileNameWithoutExtension($exePath)
}
# Remove undesirable suffix for chocolatey shims.
if ($Source -eq "choco") {
if ($exeName.EndsWith(" - Chocolatey Shim")) {
$exeName = $exeName.Substring(0, $exeName.Length - " - Chocolatey Shim".Length)
}
}
# Add the appropriate tag to the application name.
if ($Source -ne "winreg") {
$exeName = $exeName + " [" + $Source + "]"
}
# Store the application icon as a base-64 string.
$exeIcon = Get-Icon -Path $exePath -ToBase64
# Output the results as bash commands that append the results to several bash arrays.
"NAMES+=(""$exeName"")"
"EXES+=(""$exePath"")"
"ICONS+=(""$exeIcon"")"
}
}
function AppSearchWinReg {
# Initialise an empty array to store executable paths.
$exePaths = @()
# Query windows registry for unique installed executable files.
$exePaths = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\*" |
ForEach-Object { $_."(default)" } | # Extract the value of the (default) property
Where-Object { $_ -ne $null } | # Filter out null values
Sort-Object -Unique # Ensure uniqueness
# Process extracted executable file paths.
PrintArrayData -Paths $exePaths -Source "winreg"
}
function AppSearchChocolatey {
# Note: This will only look for chocolatey shims!
# Initialise an empty array to store executable paths.
$exePaths = @()
# Specify the 'chocolatey' shims directory.
$chocoDir = "C:\ProgramData\chocolatey\bin"
# Check if the 'chocolatey' shims directory exists.
if (Test-Path -Path $chocoDir -PathType Container) {
# Get all shim '.exe' files.
$shimExeFiles = Get-ChildItem -Path $chocoDir -Filter *.exe
# Loop through each '.shim' file to extract the executable path.
foreach ($shimExeFile in $shimExeFiles) {
# Resolve the shim to the actual executable path.
$exePath = (Get-Command $shimExeFile).Source
# Add the extracted path to the array.
$exePaths += $exePath
}
# Process extracted executable file paths.
PrintArrayData -Paths $exePaths -Source "choco"
}
}
function AppSearchScoop {
# Initialise an empty array to store executable paths.
$exePaths = @()
# Specify the 'scoop' shims directory.
$scoopDir = "$HOME\scoop\shims"
# Check if the 'scoop' shims directory exists.
if (Test-Path -Path $scoopDir -PathType Container) {
# Get all '.shim' files.
$shimFiles = Get-ChildItem -Path $scoopDir -Filter *.shim
# Loop through each '.shim' file to extract the executable path.
foreach ($shimFile in $shimFiles) {
# Read the content of the '.shim' file.
$shimFileContent = Get-Content -Path $shimFile.FullName
# Extract the path using regex, exiting the loop after the first match is found.
$exePath = ""
foreach ($line in $shimFileContent) {
# '^\s*path\s*=\s*"([^"]+)"'
# ^ --> Asserts the start of the line.
# \s* --> Matches any whitespace characters (zero or more times).
# path --> Matches the literal string "path".
# \s*=\s* --> Matches an equal sign = surrounded by optional whitespace characters.
# " --> Matches an initial double quote.
# ([^"]+) --> Captures one or more characters that are not ", representing the path inside the double quotes.
# " --> Matches a final double quote.
if ($line -match '^\s*path\s*=\s*"([^"]+)"') {
$exePath = $matches[1]
break
}
}
# Add the extracted path to the array.
$exePaths += $exePath
}
# Process extracted executable file paths.
PrintArrayData -Paths $exePaths -Source "scoop"
}
}
### SEQUENTIAL LOGIC ###
# Print bash commands to define three new arrays.
"NAMES=()"
"ICONS=()"
"EXES=()"
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\*" |
Select-Object -Property "(default)" -Unique |
Where-Object {$_."(default)" -ne $null} |
ForEach-Object {
$Exe = $_."(default)".Trim('"')
$Item = Get-Item $Exe
if ($Item.VersionInfo.FileDescription) {
$Name = $Item.VersionInfo.FileDescription.Trim() -replace " ", " "
} else {
$Name = [System.IO.Path]::GetFileNameWithoutExtension($Exe)
}
$Icon = Get-Icon -Path $Exe -ToBase64
#Get-ItemProperty $Exe -Name VersionInfo
"NAMES+=(""$Name"")"
"EXES+=(""$Exe"")"
"ICONS+=(""$Icon"")"
}
# Search for installed applications.
AppSearchWinReg
AppSearchChocolatey
AppSearchScoop

View File

@ -594,7 +594,7 @@ function waCheckInstallDependencies() {
return "$EC_MISSING_DEPS"
fi
# 'libvirt'/'virt-manager' + 'Address Resolution Protocol'.
# 'libvirt'/'virt-manager' + 'iproute2'.
if [ "$WAFLAVOR" = "libvirt" ]; then
if ! command -v virsh &>/dev/null; then
# Complete the previous line.
@ -622,7 +622,7 @@ function waCheckInstallDependencies() {
return "$EC_MISSING_DEPS"
fi
if ! command -v arp &>/dev/null; then
if ! command -v ip &>/dev/null; then
# Complete the previous line.
echo -e "${FAIL_TEXT}Failed!${CLEAR_TEXT}\n"
@ -630,18 +630,18 @@ function waCheckInstallDependencies() {
echo -e "${ERROR_TEXT}ERROR:${CLEAR_TEXT} ${BOLD_TEXT}MISSING DEPENDENCIES.${CLEAR_TEXT}"
# Display the error details.
echo -e "${INFO_TEXT}Please install 'net-tools' to proceed.${CLEAR_TEXT}"
echo -e "${INFO_TEXT}Please install 'iproute2' to proceed.${CLEAR_TEXT}"
# Display the suggested action(s).
echo "--------------------------------------------------------------------------------"
echo "Debian/Ubuntu-based systems:"
echo -e " ${COMMAND_TEXT}sudo apt install net-tools${CLEAR_TEXT}"
echo -e " ${COMMAND_TEXT}sudo apt install iproute2${CLEAR_TEXT}"
echo "Red Hat/Fedora-based systems:"
echo -e " ${COMMAND_TEXT}sudo dnf install net-tools${CLEAR_TEXT}"
echo -e " ${COMMAND_TEXT}sudo dnf install iproute${CLEAR_TEXT}"
echo "Arch Linux systems:"
echo -e " ${COMMAND_TEXT}sudo pacman -S net-tools${CLEAR_TEXT}"
echo -e " ${COMMAND_TEXT}sudo pacman -S iproute2${CLEAR_TEXT}"
echo "Gentoo Linux systems:"
echo -e " ${COMMAND_TEXT}sudo emerge --ask sys-apps/net-tools${CLEAR_TEXT}"
echo -e " ${COMMAND_TEXT}sudo emerge --ask net-misc/iproute2${CLEAR_TEXT}"
echo "--------------------------------------------------------------------------------"
# Terminate the script.
@ -859,7 +859,7 @@ function waCheckPortOpen() {
# Note: 'RDP_IP' should not be empty if 'WAFLAVOR' is 'docker', since it is set to localhost before this function is called.
if [ -z "$RDP_IP" ] && [ "$WAFLAVOR" = "libvirt" ]; then
VM_MAC=$(virsh domiflist "$VM_NAME" | grep -oE "([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})") # VM MAC address.
RDP_IP=$(arp -n | grep "$VM_MAC" | grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") # VM IP address.
RDP_IP=$(ip neigh show | grep "$VM_MAC" | grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") # VM IP address.
if [ -z "$RDP_IP" ]; then
# Complete the previous line.

Binary file not shown.

View File

@ -1,210 +0,0 @@
<domain type='kvm' id='9'>
<name>RDPWindows</name>
<uuid>50f121b4-93e7-46b5-b302-902d022dfa9c</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'>4194304</memory>
<currentMemory unit='KiB'>1298432</currentMemory>
<vcpu placement='static'>2</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
</os>
<features>
<acpi/>
<apic/>
<hyperv>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='8191'/>
</hyperv>
<vmport state='off'/>
</features>
<cpu mode='custom' match='exact' check='full'>
<model fallback='forbid'>Haswell-noTSX-IBRS</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<feature policy='require' name='ss'/>
<feature policy='require' name='vmx'/>
<feature policy='require' name='f16c'/>
<feature policy='require' name='rdrand'/>
<feature policy='require' name='hypervisor'/>
<feature policy='require' name='arat'/>
<feature policy='require' name='tsc_adjust'/>
<feature policy='require' name='umip'/>
<feature policy='require' name='md-clear'/>
<feature policy='require' name='stibp'/>
<feature policy='require' name='arch-capabilities'/>
<feature policy='require' name='ssbd'/>
<feature policy='require' name='xsaveopt'/>
<feature policy='require' name='pdpe1gb'/>
<feature policy='require' name='abm'/>
<feature policy='require' name='ibpb'/>
<feature policy='require' name='amd-stibp'/>
<feature policy='require' name='amd-ssbd'/>
<feature policy='require' name='skip-l1dfl-vmentry'/>
<feature policy='require' name='pschange-mc-no'/>
</cpu>
<clock offset='localtime'>
<timer name='hpet' present='yes'/>
<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='cdrom'>
<driver name='qemu' type='raw'/>
<source file='./Win10_2004_English_x64.iso' index='3'/>
<backingStore/>
<target dev='sdb' bus='sata'/>
<readonly/>
<boot order='2'/>
<alias name='sata0-0-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='./virtio-win-0.1.185.iso' index='2'/>
<backingStore/>
<target dev='sdc' bus='sata'/>
<readonly/>
<alias name='sata0-0-2'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='./RDPWindows.qcow2' index='1'/>
<backingStore/>
<target dev='vda' bus='virtio'/>
<boot order='1'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
</disk>
<controller type='usb' index='0' model='qemu-xhci' ports='15'>
<alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
</controller>
<controller type='sata' index='0'>
<alias name='ide'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pcie-root'>
<alias name='pcie.0'/>
</controller>
<controller type='pci' index='1' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='1' port='0x10'/>
<alias name='pci.1'/>
<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'/>
<alias name='pci.2'/>
<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'/>
<alias name='pci.3'/>
<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'/>
<alias name='pci.4'/>
<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'/>
<alias name='pci.5'/>
<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'/>
<alias name='pci.6'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
</controller>
<controller type='virtio-serial' index='0'>
<alias name='virtio-serial0'/>
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:40:9c:f6'/>
<source network='default' portid='1b8151f7-ddce-4dcc-99cb-55c80590fde7' bridge='virbr0'/>
<target dev='vnet0'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/8'/>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/8'>
<source path='/dev/pts/8'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0' state='connected'/>
<alias name='channel0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='tablet' bus='usb'>
<alias name='input0'/>
<address type='usb' bus='0' port='1'/>
</input>
<input type='mouse' bus='ps2'>
<alias name='input1'/>
</input>
<input type='keyboard' bus='ps2'>
<alias name='input2'/>
</input>
<graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
<image compression='off'/>
</graphics>
<sound model='ich9'>
<alias name='sound0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
<alias name='redir0'/>
<address type='usb' bus='0' port='2'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<alias name='redir1'/>
<address type='usb' bus='0' port='3'/>
</redirdev>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
</memballoon>
</devices>
<seclabel type='dynamic' model='dac' relabel='yes'>
<label>+385601105:+385600513</label>
<imagelabel>+385601105:+385600513</imagelabel>
</seclabel>
</domain>