dholler@fedora:~/vm/images$ cp --reflink=always rhel-8.10-x86_64-kvm.qcow2 guest.qcow2 virt-customize -a guest.qcow2 --ssh-inject root --root-password password:123456 --selinux-relabel --hostname guest --timezone Europe/Berlin --uninstall cloud-init [ 0.0] Examining the guest ... [ 12.5] Setting a random seed [ 12.5] Setting the machine ID in /etc/machine-id [ 12.5] SSH key inject: root [ 13.5] Setting the hostname: guest [ 13.5] Setting the timezone: Europe/Berlin [ 13.5] Uninstalling packages: cloud-init [ 15.4] Setting passwords [ 16.2] SELinux relabelling [ 19.7] Finishing off dholler@fedora:~/vm/images$ virt-install --name guest \ --os-variant=fedora41 \ --vcpus 2,maxvcpus=4 \ --cpu host-model \ --memory 2560,maxmemory=4096 \ --import --disk guest.qcow2 \ --boot uefi \ --noautoconsole \ --nonetworks --vsock cid.auto=yes Starting install... Creating domain... | 00:00:00 Domain creation completed. dholler@fedora:~/vm/images$ cp --reflink=always rhel-8.10-x86_64-kvm.qcow2 guest.qcow2 dholler@fedora:~/vm/images$ virt-customize -a guest.qcow2 --ssh-inject root --root-password password:123456 --selinux-relabel --hostname guest --timezone Europe/Berlin --uninstall cloud-init [ 0.0] Examining the guest ... [ 10.1] Setting a random seed [ 10.1] Setting the machine ID in /etc/machine-id [ 10.1] SSH key inject: root [ 11.1] Setting the hostname: guest [ 11.1] Setting the timezone: Europe/Berlin [ 11.1] Uninstalling packages: cloud-init [ 13.0] Setting passwords [ 13.9] SELinux relabelling [ 17.1] Finishing off dholler@fedora:~/vm/images$ virt-install --name guest --os-variant=fedora41 --vcpus 2,maxvcpus=4 --cpu host-model --memory 2560,maxmemory=4096 --import --disk guest.qcow2 --noautoconsole --network network=default --vsock cid.auto=yes --boot uefi --connect qemu:///system Starting install... Creating domain... | 00:00:00 Domain creation completed. dholler@fedora:~/vm/images$ virsh -c qemu:///system domifaddr guest --source agent Name MAC address Protocol Address ------------------------------------------------------------------------------- lo 00:00:00:00:00:00 ipv4 127.0.0.1/8 - - ipv6 ::1/128 eth0 52:54:00:fe:21:ed ipv4 192.168.122.152/24 - - ipv6 fe80::3b17:3ce1:d12c:93b3/64 dholler@fedora:~/vm/images$ ssh -o "StrictHostKeyChecking no" root@192.168.122.152 Warning: Permanently added '192.168.122.152' (ED25519) to the list of known hosts. Activate the web console with: systemctl enable --now cockpit.socket Register this system with Red Hat Insights: insights-client --register Create an account or view all your systems at https://red.ht/insights-dashboard [root@guest ~]# aa -a --vsock -bash: aa: command not found [root@guest ~]# ss -a --vsock Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process [root@guest ~]# dnf install socat Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d". [root@guest ~]# subscription-manager register --auto-attach Registering to: subscription.rhsm.redhat.com:443/subscription Username: dominik.holler@gmx.net Password: The system has been registered with ID: b67b215d-47d2-495d-89c2-fdc1219bfd4b The registered system name is: guest Ignoring the request to auto-attach. Attaching subscriptions is disabled for organization "7897231" because Simple Content Access (SCA) is enabled. WARNING The yum/dnf plugins: /etc/dnf/plugins/subscription-manager.conf, /etc/dnf/plugins/product-id.conf were automatically enabled for the benefit of Red Hat Subscription Management. If not desired, use "subscription-manager config --rhsm.auto_enable_yum_plugins=0" to block this behavior. [root@guest ~]# dnf search socat Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStrea 24 MB/s | 73 MB 00:03 Red Hat Enterprise Linux 8 for x86_64 - BaseOS ( 26 MB/s | 91 MB 00:03 Last metadata expiration check: 0:00:01 ago on Mon 09 Jun 2025 11:12:33 AM CEST. ========================== Name Exactly Matched: socat ========================== socat.x86_64 : Bidirectional data relay between two data channels ('netcat++') [root@guest ~]# dnf install socat Updating Subscription Management repositories. Last metadata expiration check: 0:00:12 ago on Mon 09 Jun 2025 11:12:33 AM CEST. Dependencies resolved. ================================================================================= Package Arch Version Repository Size ================================================================================= Installing: socat x86_64 1.7.4.1-1.el8 rhel-8-for-x86_64-appstream-rpms 323 k Transaction Summary ================================================================================= Install 1 Package Total download size: 323 k Installed size: 1.2 M Is this ok [y/N]: y Downloading Packages: socat-1.7.4.1-1.el8.x86_64.rpm 738 kB/s | 323 kB 00:00 --------------------------------------------------------------------------------- Total 732 kB/s | 323 kB 00:00 Red Hat Enterprise Linux 8 for x86_64 - AppStrea 4.9 MB/s | 5.0 kB 00:00 Importing GPG key 0xFD431D51: Userid : "Red Hat, Inc. (release key 2) " Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Is this ok [y/N]: y Key imported successfully Importing GPG key 0xD4082792: Userid : "Red Hat, Inc. (auxiliary key) " Fingerprint: 6A6A A7C9 7C88 90AE C6AE BFE2 F76F 66C3 D408 2792 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Is this ok [y/N]: y Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : socat-1.7.4.1-1.el8.x86_64 1/1 Running scriptlet: socat-1.7.4.1-1.el8.x86_64 1/1 Verifying : socat-1.7.4.1-1.el8.x86_64 1/1 Installed products updated. Installed: socat-1.7.4.1-1.el8.x86_64 Complete! [root@guest ~]# socat VSOCK-LISTEN:22,reuseaddr,fork TCP:localhost:22 dholler@fedora:~/vm/images$ ssh -o "StrictHostKeyChecking no" root@qemu:system/guest Warning: Permanently added 'qemu:system/guest' (ED25519) to the list of known hosts. Activate the web console with: systemctl enable --now cockpit.socket Register this system with Red Hat Insights: insights-client --register Create an account or view all your systems at https://red.ht/insights-dashboard Last login: Mon Jun 9 11:08:35 2025 from 192.168.122.1 [root@guest ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.10 (Ootpa) [root@guest ~]# ss -a --vsock -p Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process v_str LISTEN 0 0 *:22 *:* users:(("socat",pid=14048,fd=5)) v_str ESTAB 0 0 3:22 2:3744503259 users:(("socat",pid=14083,fd=6)) v_str ESTAB 0 0 3:22 2:3744503258 users:(("socat",pid=14049,fd=6))