<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Christian Bueno</title>
    <description>The latest articles on DEV Community by Christian Bueno (@christianbueno1).</description>
    <link>https://dev.to/christianbueno1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F436684%2F3cfcc370-f009-4ab0-b3ca-0949e00421b5.png</url>
      <title>DEV Community: Christian Bueno</title>
      <link>https://dev.to/christianbueno1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/christianbueno1"/>
    <language>en</language>
    <item>
      <title>Install windows 11 virtual machine on KVM, libvirt, qemu, virt-manager in Linux, fedora 36/37, RPM based distribution</title>
      <dc:creator>Christian Bueno</dc:creator>
      <pubDate>Fri, 25 Nov 2022 22:10:31 +0000</pubDate>
      <link>https://dev.to/christianbueno1/install-windows-11-virtual-machine-on-kvm-libvirt-qemu-virt-manager-in-linux-fedora-3637-rpm-based-distribution-1nkd</link>
      <guid>https://dev.to/christianbueno1/install-windows-11-virtual-machine-on-kvm-libvirt-qemu-virt-manager-in-linux-fedora-3637-rpm-based-distribution-1nkd</guid>
      <description>&lt;p&gt;The following tutorial will tech you how to create a virtual machine on Linux, first we are going to install the virtual machine tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install and configure the virtual machine tools
&lt;/h2&gt;

&lt;p&gt;Install the virtual machine tools grouped in @virtualization, some packages are: virt-manager, libvirt, qemu-kvm, etc. Source, &lt;a href="https://fedoramagazine.org/full-virtualization-system-on-fedora-workstation-30/" rel="noopener noreferrer"&gt;full virtualization on fedora workstation linux&lt;/a&gt;.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dnf install @virtualization
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Edit the &lt;strong&gt;libvirtd&lt;/strong&gt; configuration to enable a regular user the system administration privileges.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo vim /etc/libvirt/libvirtd.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Set the domain socket group ownership to libvirt.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;unix_sock_group = "libvirt"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Adjust the UNIX socket permissions for the R/W socket.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;unix_sock_rw_perms = "0770"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Start and enable the libvirtd service.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl start libvirtd
sudo systemctl enable libvirtd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Add your user to the libvirt group.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo usermod -aG libvirt $(whoami)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Install the secure boot tool package
&lt;/h2&gt;

&lt;p&gt;It is needed when you are configuring the virtual machine, windows 11 need it. To install run the following command.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dnf install edk2-ovmf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Source, &lt;a href="https://fedoraproject.org/wiki/Using_UEFI_with_QEMU" rel="noopener noreferrer"&gt;secure boot&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Install TPM
&lt;/h2&gt;

&lt;p&gt;We need to install the Software Trusted Platform Module Emulator it will be used when being customizing the virtual machine configuration, close virt-manager and got to the link below, download and install &lt;strong&gt;swtpm-tools-0.7.3-1.20220427gitf2268ee.fc36.x86_64.rpm&lt;/strong&gt;, select according your distribution number, will select that for fedora 36 and today its the last version.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://rpmfind.net/linux/rpm2html/search.php?query=swtpm-tools" rel="noopener noreferrer"&gt;swtpm-tools rpm fedora centos redhat&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go to the directory where you downloaded the package and install it with &lt;strong&gt;dnf&lt;/strong&gt; package manager.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd Downloads
sudo dnf install ./swtpm-tools-0.7.3-1.20220427gitf2268ee.fc36.x86_64.rpm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Create a Pool to store the virtual machines
&lt;/h2&gt;

&lt;p&gt;Before create a virtual machine first we will create a pool. A pool is a directory and you can use a partition for example. You can create the virtual machine in the default directory, but if you are thinking format your root directory in the future and want to preserve the virtual machine , save it in a new pool is a good option. &lt;/p&gt;

&lt;p&gt;Source, &lt;a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_administration_guide/sect-virtualization-storage_pools-creating-file_systems" rel="noopener noreferrer"&gt;new pool using a partition&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;

&lt;p&gt;We will use a LVM partition &lt;strong&gt;forvm-vmtest&lt;/strong&gt; and &lt;em&gt;You do not need to mount the partition&lt;/em&gt;.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ~                                                                                                                                                                       
❯ lsblk
NAME             MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                8:0    0 447.1G  0 disk 
└─sda1             8:1    0   100G  0 part 
  └─forvm-vmtest 253:0    0   100G  0 lvm  
sdb                8:16   0   1.8T  0 disk 
├─sdb1             8:17   0   839G  0 part /run/media/chris/New Volume
├─sdb2             8:18   0  27.9G  0 part 
└─sdb3             8:19   0  93.2G  0 part 
  └─vg2-vms      253:1    0  93.2G  0 lvm  
sdc                8:32   0 223.6G  0 disk 
├─sdc1             8:33   0   100M  0 part /boot/efi
├─sdc2             8:34   0    16M  0 part 
├─sdc3             8:35   0   100G  0 part 
├─sdc4             8:36   0   123G  0 part /
└─sdc5             8:37   0   509M  0 part 
sdd                8:48   1     0B  0 disk 
sr0               11:0    1  1024M  0 rom  
zram0            252:0    0     8G  0 disk [SWAP]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Select the &lt;strong&gt;QEMU/KVM drop-dawn tab&lt;/strong&gt; then in the menu select &lt;strong&gt;Edit&amp;gt;Connection Details&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwcb4x1yr0902fr0qdq8n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwcb4x1yr0902fr0qdq8n.png" alt="virt-manager-1" width="570" height="605"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbp526renyerz19uba02w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbp526renyerz19uba02w.png" alt="virt-manager-2" width="583" height="615"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click in the &lt;strong&gt;Storage tab&lt;/strong&gt;, click in bottom left corner the &lt;strong&gt;Add Pool&lt;/strong&gt; plus symbol button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fokqffacgskjfel6ficyx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fokqffacgskjfel6ficyx.png" alt="virt-manager-3" width="800" height="672"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Type and select the following data.&lt;/p&gt;

&lt;p&gt;In Name type any name you like, in my case &lt;strong&gt;vmtest&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
In the type select &lt;strong&gt;fs:Pre-Formatted Block Device&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
In target path, you can create a directory in your home or any place of your directory system it will be the mount point, if it doesn’t exist yet it will be created, in my case it will be mounted in my root &lt;strong&gt;"/"&lt;/strong&gt; directory with the following name. &lt;strong&gt;/vmtest&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
in Format &lt;strong&gt;auto&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
In the source path, select the device partition, in my case can use &lt;strong&gt;/dev/mapper/forvm-vmtest&lt;/strong&gt; or &lt;strong&gt;/dev/forvm/vmtest&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Click in &lt;strong&gt;Finish&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqgdcnr2txj14g2hba17t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqgdcnr2txj14g2hba17t.png" alt="virt-manager-4" width="536" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can enable &lt;strong&gt;Autostart On Boot&lt;/strong&gt; option of the new pool &lt;strong&gt;vmtest&lt;/strong&gt; created if you like.&lt;br&gt;&lt;br&gt;
If the &lt;strong&gt;State&lt;/strong&gt; of the pool is &lt;strong&gt;Inactive&lt;/strong&gt;, click in the bottom left side the &lt;strong&gt;play&lt;/strong&gt; button to start the pool. Click in Apply.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkozaovihn4j7vsr9d2ef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkozaovihn4j7vsr9d2ef.png" alt="virt-manager-5" width="800" height="672"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Create the windows 11 virtual machine
&lt;/h2&gt;

&lt;p&gt;Click in the create a new virtual machine button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp2nlwwf3t1ns3huszbmk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp2nlwwf3t1ns3huszbmk.png" alt="virt-manager-6" width="707" height="665"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select Local install media, click in &lt;strong&gt;Forward&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6qvhi7rt7wvj51s4i1ko.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6qvhi7rt7wvj51s4i1ko.png" alt="virt-manager-7" width="502" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select the ISO image file, click in &lt;strong&gt;Browse&lt;/strong&gt;, Click in &lt;strong&gt;Browse Local&lt;/strong&gt;, select your windows 11 image iso file, click &lt;strong&gt;Open&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6zdmnztsmccf8t35wsnf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6zdmnztsmccf8t35wsnf.png" alt="virt-manager-8" width="800" height="606"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyt5lidkllhvosbf829ak.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyt5lidkllhvosbf829ak.png" alt="virt-manager-9" width="800" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enable automatically detect from the installation media. So far windows 11 is not an option there, but windows 10 option works fine for now. Then click in &lt;strong&gt;Forward&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkp4eerx79k2myjh1wvh0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkp4eerx79k2myjh1wvh0.png" alt="virt-manager-10" width="502" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select the memory and cpu, its depent of your host machine capacity. For memory you can use &lt;strong&gt;8192MiB&lt;/strong&gt; which is equivalent to 8GiB, for cpu &lt;strong&gt;2&lt;/strong&gt;. Click &lt;strong&gt;Forward&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxh4gio0h9s8mjk93eitv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxh4gio0h9s8mjk93eitv.png" alt="virt-manager-11" width="568" height="605"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enable storage for the virtual machine, select &lt;strong&gt;Select or Create custom storage&lt;/strong&gt;, click in &lt;strong&gt;manage&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqr73bhpqubmsrtvkgm3b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqr73bhpqubmsrtvkgm3b.png" alt="virt-manager-12" width="502" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select the new pool in my case &lt;strong&gt;vmtest&lt;/strong&gt;, click in the &lt;strong&gt;plus symbol to Create a new volume&lt;/strong&gt; . Its important to use as capacity a minimum value of 65GiB.&lt;br&gt;&lt;br&gt;
As name. you can use &lt;strong&gt;win11&lt;/strong&gt;, in format &lt;strong&gt;qcow2&lt;/strong&gt;, as capacity &lt;strong&gt;65GiB&lt;/strong&gt;.&lt;br&gt;
Click in &lt;strong&gt;Finish&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnrjvfm23g14j037smghz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnrjvfm23g14j037smghz.png" alt="virt-manager-13" width="793" height="568"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpr2unsu0an6ovckpta1f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpr2unsu0an6ovckpta1f.png" alt="virt-manager-14" width="536" height="599"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select the new created volume &lt;strong&gt;win11.qcow2&lt;/strong&gt;, click in &lt;strong&gt;Choose Volume&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feako0c2v7sxubfunyr1o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feako0c2v7sxubfunyr1o.png" alt="virt-manager-15" width="770" height="555"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then click  &lt;strong&gt;Forward&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmjrc6yru9bopq5ipzq7g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmjrc6yru9bopq5ipzq7g.png" alt="virt-manager-16" width="502" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fix the name to &lt;strong&gt;win11&lt;/strong&gt; if you like. Enable customize configuration before install, click &lt;strong&gt;Finish&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fie5yp6dcjmrplv4gp7bi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fie5yp6dcjmrplv4gp7bi.png" alt="virt-manager-17" width="502" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the new window select in firmware option:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;UEFI x86_64:/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Click the &lt;strong&gt;Apply&lt;/strong&gt; button to save the current change.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdincpbe3i55wjydtjxs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdincpbe3i55wjydtjxs.png" alt="virt-manager-18" width="800" height="674"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the left side bar, click in &lt;strong&gt;Boot options&lt;/strong&gt;. In &lt;strong&gt;Boot device order&lt;/strong&gt; enable &lt;strong&gt;SATA CDROM  1&lt;/strong&gt; and set that as the highest boot priority using the up arrow next to it.&lt;/p&gt;

&lt;p&gt;Click &lt;strong&gt;Apply&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgmoxu52bspr8rwm8om4w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgmoxu52bspr8rwm8om4w.png" alt="virt-manager-19" width="800" height="674"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8jnkjo228w9kgn0h66s1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8jnkjo228w9kgn0h66s1.png" alt="virt-manager-20" width="800" height="674"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the left side bar in the bottom click in &lt;strong&gt;Add Hardware&lt;/strong&gt;, in the new window add a virtual TPM module, click in &lt;strong&gt;TPM&lt;/strong&gt;, in Type select &lt;strong&gt;Emulated&lt;/strong&gt;, click in &lt;strong&gt;Advanced options&lt;/strong&gt; drop-dawn, in Model select &lt;strong&gt;CRB&lt;/strong&gt;, in Version select &lt;strong&gt;2.0&lt;/strong&gt;. Click &lt;strong&gt;Finish&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsy912gb75gktlkpwsks0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsy912gb75gktlkpwsks0.png" alt="virt-manager-21" width="715" height="671"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click the &lt;strong&gt;Apply&lt;/strong&gt; button if you haven’t saved the changes yet.&lt;br&gt;
Then in the top left corner click in &lt;strong&gt;Begin Installation&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7bw2nr7ficl9zggxxo0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7bw2nr7ficl9zggxxo0w.png" alt="virt-manager-22" width="800" height="674"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Windows 11, soon the tutorial
&lt;/h2&gt;

&lt;p&gt;Go to the web&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Guest tools in the virtual machine
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Install spice-guest-tools
&lt;/h3&gt;

&lt;p&gt;After install the windows 11 virtual machine, you can install &lt;strong&gt;spice-guest-tools&lt;/strong&gt; to enable copy and paste, drag and drop files from host to guest, and fix screen resolution.&lt;/p&gt;

&lt;p&gt;Power on the virtual machine and from inside the windows 11 virtual machine, go to &lt;a href="https://www.spice-space.org/download.html" rel="noopener noreferrer"&gt;here&lt;/a&gt; and download &lt;strong&gt;spice-guest-tools&lt;/strong&gt; and install inside the virtual machine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1u7vj0mu4xegoyvn8nw3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1u7vj0mu4xegoyvn8nw3.png" alt="virt-manager-23" width="415" height="131"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5pko8e2d7todz1xqap3s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5pko8e2d7todz1xqap3s.png" alt="virt-manager-24" width="800" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Bonus: Enable &lt;strong&gt;Auto resize VM with window&lt;/strong&gt; if it isn’t enable
&lt;/h3&gt;

&lt;p&gt;If the &lt;strong&gt;Auto resize VM with window&lt;/strong&gt; is not enable, you can install the latest &lt;strong&gt;virtio-win-guest-tools&lt;/strong&gt;. Go to this &lt;a href="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win-guest-tools.exe" rel="noopener noreferrer"&gt;direct link&lt;/a&gt; and download it, run it and install inside the virtual machine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhvevyhsczx64huuz9i3r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhvevyhsczx64huuz9i3r.png" alt="virt-manager-25" width="800" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fflhvsdeeixvu8ubhfs0y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fflhvsdeeixvu8ubhfs0y.png" alt="virt-manager-26" width="800" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi2rug3yj4v44apgbkxk1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi2rug3yj4v44apgbkxk1.png" alt="virt-manager-27" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Source &lt;a href="https://getlabsdone.com/how-to-install-windows-11-on-kvm/" rel="noopener noreferrer"&gt;getlabsdone website, install windows 11 vm on KVM&lt;/a&gt;&lt;/p&gt;

</description>
      <category>bitcoin</category>
      <category>cryptocurrency</category>
      <category>discuss</category>
    </item>
    <item>
      <title>How to create a WordPress containerization environment with podman(a docker alternative) in fedora 36/37 Workstation GNU/Linux</title>
      <dc:creator>Christian Bueno</dc:creator>
      <pubDate>Mon, 24 Oct 2022 09:08:42 +0000</pubDate>
      <link>https://dev.to/christianbueno1/how-to-create-a-wordpress-containerization-environment-with-podman-in-fedora-36-workstation-gnulinux-2o6k</link>
      <guid>https://dev.to/christianbueno1/how-to-create-a-wordpress-containerization-environment-with-podman-in-fedora-36-workstation-gnulinux-2o6k</guid>
      <description>&lt;p&gt;Hello to everyone, today we are going to learn how to create a WordPress containerization environment with podman a docker alternative.&lt;br&gt;
We need podman, the WordPress image, and a database image MySQL or MariaDB&lt;br&gt;
First we are going to download the images, using the following command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;podman pull WordPress:6.0.3-php8.0-apache
podman pull mariadb:10.7.6-focal

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we are going to create a &lt;code&gt;Container&lt;/code&gt; file in order to build a customized WordPress image.&lt;/p&gt;

&lt;p&gt;But , What is the problem if we use the normal WordPress image?&lt;/p&gt;

&lt;p&gt;Well, we are not being able to install themes, because WordPress won’t be able to connect to internet. It’s relate to different port in the mapped port.&lt;/p&gt;

&lt;p&gt;We will create a pod and inside it will create the wordpress and database containers and we have to export or map the container port with a host port. &lt;br&gt;
For example we can use in the port mapping option 8080:80 when create the pod.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;--publish host-port:container-port&lt;br&gt;
--publish 8080:80&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;podman pod create --name ${pod_name} --infra --publish 8080:80 --publish 3306:3306 --network bridge

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That will raise the following errors.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The REST API encountered an error&lt;br&gt;
Error: cURL error 28: Failed to connect to localhost port &amp;gt;8080: Connection timed out (http_request_failed)&lt;br&gt;
Your site could not complete a loopback request&lt;br&gt;
Error: cURL error 28: Failed to connect to localhost port &amp;gt;8080: Connection time out (http_request_failed)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgp09op8pyeac49342g0l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgp09op8pyeac49342g0l.png" alt="The REST API encountered an error"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To fix that we are going to add the port &lt;code&gt;8080&lt;/code&gt; for example in the Apache server config of the wordpress image, you can use any port you like. This way when we create the pod in the bellow script we can use in the port mapping 8080 as the port of the wordpress container.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Containerfile

ARG wordpress_image=wordpress:6.0.3-php8.0-apache
FROM $wordpress_image
ARG port=8080
LABEL maintainer="Christian Bueno &amp;lt;chmabuen@espol.edu.ec&amp;gt;" 
#add port
RUN cd /etc/apache2/; \
sed -i "/Listen 80/aListen $port" ports.conf; \
cd /etc/apache2/sites-available/; \
sed -i "s/:80/*:*/" 000-default.conf
EXPOSE $port
CMD ["apache2-foreground"]
# podman build --build-arg port=&amp;lt;port&amp;gt; --build-arg wordpress_image=&amp;lt;wordpress_image&amp;gt; -t &amp;lt;wordpress_name_and_tag&amp;gt; -f Containerfile
# podman build --build-arg port=8082 --build-arg wordpress_image=wordpress:6.0.2-php7.4-apache -t christianbueno1/wordpress:602-8082 -f Containerfile
# podman build -t christianbueno1/wordpress:602-8080 -f Containerfile
# podman build -t &amp;lt;new_image_name:version&amp;gt; -f Containerfile

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now to buil the new worpress image, run the following command, you can use for example the following values.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In port 8080&lt;/li&gt;
&lt;li&gt;In the wordpress_image wordpress:6.0.3-php8.0-apache&lt;/li&gt;
&lt;li&gt;In the tag name use your DockerHub user and any name you like e.g.&lt;code&gt;dockeHubUser/image-name:version-number&lt;/code&gt; this way you will can upload the image to DockerHub in the future.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;podman build –build-arg port=8080 –build-arg wordpress_image=wordpress:6.0.3-php8.0-apache -t christianbueno1/wordpress:603-8080

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that, then we are going to create a pod and inside that we are going to create the wordpress and database container. &lt;/p&gt;

&lt;p&gt;We will create 2 directories &lt;code&gt;var-www-html&lt;/code&gt; and &lt;code&gt;var-lib-mysql&lt;/code&gt; to store all the work and avoid lost it.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir var-www-html var-lib-mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Because we are going to mount a directory(volume) to the containers we need to map the UID:GID of your user with the UID:GID of the container. This way the container will can modify those files and directories.&lt;/p&gt;

&lt;p&gt;The directory &lt;code&gt;/var/www/html&lt;/code&gt; have a UID:GID of &lt;code&gt;33(www-data)&lt;/code&gt; , will use the tool &lt;code&gt;podman unshare&lt;/code&gt;. The directory &lt;code&gt;/var/lib/mysql&lt;/code&gt; have an UID:GID of &lt;code&gt;999(mysql)&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;podman unshare chown 33:33 -R var-www-html
podman unshare chown 999:999 -R var-lib-mysql

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But an important thing is can be able to edit files from the host, in this case files in the directory &lt;code&gt;var-www-html&lt;/code&gt;, for that reason, we will use &lt;code&gt;Permissions&lt;/code&gt; to add &lt;code&gt;write&lt;/code&gt; rights to &lt;code&gt;Others&lt;/code&gt;. This way our users can be able to edit those files. Obviously it will be done after run the wordpress container.&lt;/p&gt;

&lt;p&gt;An important environment variable is &lt;code&gt;PODMAN_USERNS&lt;/code&gt; it is used to set the user namespace mode for all the containers in a pod. You can set this variable to &lt;code&gt;””&lt;/code&gt; to make sure map your user to the root user in the container. By the way it is the default value.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.podman.io/en/latest/markdown/podman-pod-create.1.html#userns-mode" rel="noopener noreferrer"&gt;--userns=mode&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export PODMAN_USERNS=""
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now is the time to run the shell script. It will create a pod and inside it create the mariadb container and the wordpress container. In the variable section in the script you can edit the values of the user, password, database name, etc. The script need 2 arguments wordpress_image and pod_name if you don’t pass it the default values will be taken.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash
# create_blog.sh

set -e   #exit on most errors

##variables
wordpress_image=${1:-christianbueno1/wordpress:603-php80-8080}
database_image=mariadb:10.7.6-focal
pod_name=${2:-blog}
user=chris
password=maGazine1!ec
database_name=company
#use your directories name
database_volume=var-lib-mysql
wordpress_volume=var-www-html
#
database_container_name=mariadb-${pod_name}
wordpress_container_name=wordpress-${pod_name}
##

echo "Creating the pod"
podman pod create --name ${pod_name} --infra --publish 8080:8080 --publish 3306:3306 --network bridge

echo "Creating the mariadb container"
podman run --pod ${pod_name} --name ${database_container_name} \
-e MARIADB_USER=${user} \
-e MARIADB_PASSWORD=${password} \
-e MARIADB_DATABASE=${database_name} \
-e MARIADB_ROOT_PASSWORD=${password} \
--volume ./${database_volume}:/var/lib/mysql:Z \
-d ${database_image}

echo "Creating the wordpress container"
podman run --pod ${pod_name} --name ${wordpress_container_name} \
-e WORDPRESS_DB_HOST=${database_container_name}:3306 \
-e WORDPRESS_DB_USER=${user} \
-e WORDPRESS_DB_PASSWORD=${password} \
-e WORDPRESS_DB_NAME=${database_name} \
--volume ./${wordpress_volume}:/var/www/html:Z \
-d ${wordpress_image}

#export PODMAN_USERNS=keep-id
#
#run the script
#
#./create_blog.sh &amp;lt;wordpress_image&amp;gt; &amp;lt;pod_name&amp;gt;
#./create_blog.sh christianbueno1/wordpress:602-8080 podman-blog
#use the default wordpress_image=christianbueno1/wordpress:603-php80-8080 in the first argument.
#./create_blog.sh "" podman-blog
#use the default wordpress_image and pod_name arguments
#./create_blog.sh

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the scripts.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./create_blog.sh &amp;lt;new_wordpress_image&amp;gt; &amp;lt;pod_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;In my case&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./create_blog.sh christianbueno1/wordpress:603-php80-apache podman-blog
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Go to the browser &lt;code&gt;localhost:&amp;lt;port&amp;gt;&lt;/code&gt; and remember to use your configured port, in my case &lt;code&gt;8080&lt;/code&gt;, &lt;code&gt;https://localhost:8080&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Last but not least add write rights to others in &lt;code&gt;var-www-html&lt;/code&gt; from inside the wordpress container so you can edit files from the host using any text editor for example vscode.&lt;/p&gt;

&lt;p&gt;Go into the wordpress container.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;podman exec -it wordpress-&amp;lt;pod_name&amp;gt; /bin/bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;In my case&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;podman exec -it wordpress-podman-blog /bin/bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;You will be as root user. Add &lt;code&gt;write&lt;/code&gt; rights to &lt;code&gt;Others&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /var/www
chmod o+w -R html

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s all.&lt;br&gt;
If it has helped you, ask for your support and be able to continue writing tutorials, any amount will be welcome. &lt;a href="//paypal.me/podmanblog"&gt;paypal.me/podmanblog&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.tutorialworks.com/podman-rootless-volumes/" rel="noopener noreferrer"&gt;podman rootless volume&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.redhat.com/sysadmin/debug-rootless-podman-mounted-volumes" rel="noopener noreferrer"&gt;debug-rootless-podman-mounted-volumes&lt;/a&gt;&lt;/p&gt;

</description>
      <category>podman</category>
      <category>containerapps</category>
      <category>docker</category>
      <category>linux</category>
    </item>
    <item>
      <title>Help me with Themes problems in WordPress on fedora 35 Linux</title>
      <dc:creator>Christian Bueno</dc:creator>
      <pubDate>Thu, 28 Apr 2022 15:42:30 +0000</pubDate>
      <link>https://dev.to/christianbueno1/help-me-with-themes-problems-in-wordpress-on-fedora-35-linux-3lce</link>
      <guid>https://dev.to/christianbueno1/help-me-with-themes-problems-in-wordpress-on-fedora-35-linux-3lce</guid>
      <description>&lt;p&gt;I have installed WordPress in my f35 workstation following &lt;a href="https://fedoramagazine.org/howto-install-wordpress-fedora/" rel="noopener noreferrer"&gt;this tutorial from fedora-magazine web&lt;/a&gt;&lt;br&gt;
That was yesterday, now today after login to the WordPress local installation, URL: &lt;code&gt;localhost/wordpress/wp-admin&lt;/code&gt; , there is a problem charging the themes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm9xc6jevkrlhiu1ziji7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm9xc6jevkrlhiu1ziji7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have edited this file: &lt;code&gt;/etc/wordpress/wp-config.php&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;define('DISALLOW_FILE_MODS', false);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;This fixed the problem yesterday and was able to install ASTRA theme and a template.&lt;br&gt;
source: &lt;a href="https://wordpress.stackexchange.com/questions/244939/no-add-new-button-how-to-add-new-theme?newreg=fdcb55e7778b442399aabde47cc5ba6b" rel="noopener noreferrer"&gt;wordpress.stackexchange&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But today the problem persists.&lt;/p&gt;

&lt;p&gt;can it be permissions issue?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;information&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;[&lt;/span&gt;root@fedora chris]# getsebool &lt;span class="nt"&gt;-a&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-P&lt;/span&gt; &lt;span class="s2"&gt;"httpd.+--&amp;gt; on"&lt;/span&gt;
httpd_builtin_scripting &lt;span class="nt"&gt;--&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; on
httpd_can_network_connect_db &lt;span class="nt"&gt;--&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; on
httpd_can_sendmail &lt;span class="nt"&gt;--&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; on
httpd_enable_cgi &lt;span class="nt"&gt;--&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; on
&lt;span class="o"&gt;[&lt;/span&gt;root@fedora chris]# ^C
&lt;span class="o"&gt;[&lt;/span&gt;root@fedora chris]# 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;❯ ll &lt;span class="nt"&gt;-d&lt;/span&gt; /etc/wordpress /usr/share/wordpress 
drwxr-x---. 1 root apache  26 Apr 27 16:04 /etc/wordpress
drwxr-xr-x. 1 root root   480 Apr 27 01:10 /usr/share/wordpress
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;[&lt;/span&gt;root@fedora chris]# ll /usr/share/wordpress/wp-content/
total 4
&lt;span class="nt"&gt;-rw-r--r--&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt; 1 root   root  28 Jan  8  2012 index.php
drwxrwsr-x. 1 apache ftp  264 Apr 27 03:18 plugins
drwxrwsr-x. 1 apache ftp  112 Apr 27 03:11 themes
drwxrwsr-x. 1 apache ftp    0 Apr 27 03:18 upgrade
drwxrwsr-x. 1 apache ftp  612 Apr 27 03:31 uploads
&lt;span class="o"&gt;[&lt;/span&gt;root@fedora chris]#
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
