Skip to content

Use QEMU user-mode networking for contest VMs - #684

Draft
matusmarhefka wants to merge 1 commit into
RHSecurityCompliance:mainfrom
matusmarhefka:qemu_user_net
Draft

matusmarhefka wants to merge 1 commit into
RHSecurityCompliance:mainfrom
matusmarhefka:qemu_user_net

Conversation

@matusmarhefka

Copy link
Copy Markdown
Contributor

Remove setup of the custom libvirt NAT and DHCP network. Configure VM installs and image imports with a QEMU user network and virtio NIC. Select a localhost port for access to guest port 22, read that port from the domain XML when starting an existing VM, and report port conflicts.

Update SSH, SCP, rsync, Ansible, snapshot and reboot paths, and contest-sshvm to use localhost and the selected port. Check the SSH banner to detect when guest SSH stops and starts since QEMU may keep accepting connections during a guest reboot.

Bind HTTP servers and Podman registries to host loopback. VM guests see the host at 10.0.2.2, so use that address for the served YUM repository, datastreams and container images. Keep the osbuild-composer repository URL on localhost because composer accesses it from the host.

Remove libvirt network-driver and firewalld test requirements, remove HTTP-server firewall changes, and update the SSH documentation wrt VM access through QEMU user-mode networking.

Resolves #399

Remove setup of the custom libvirt NAT and DHCP network. Configure VM
installs and image imports with a QEMU user network and virtio NIC.
Select a localhost port for access to guest port 22, read that port
from the domain XML when starting an existing VM, and report port
conflicts.

Update SSH, SCP, rsync, Ansible, snapshot and reboot paths, and
`contest-sshvm` to use localhost and the selected port. Check the SSH
banner to detect when guest SSH stops and starts since QEMU may keep
accepting connections during a guest reboot.

Bind HTTP servers and Podman registries to host loopback. VM guests
see the host at `10.0.2.2`, so use that address for the served YUM
repository, datastreams and container images. Keep the osbuild-composer
repository URL on localhost because composer accesses it from the host.

Remove libvirt network-driver and firewalld test requirements, remove
HTTP-server firewall changes, and update the SSH documentation wrt
VM access through QEMU user-mode networking.

Resolves RHSecurityCompliance#399
@matusmarhefka

Copy link
Copy Markdown
Contributor Author

/packit test -i productization

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have any lib.virt-based VMs use User Networking

1 participant