Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QM kvm automation spike #663

Open
Yarboa opened this issue Nov 17, 2024 · 3 comments
Open

QM kvm automation spike #663

Yarboa opened this issue Nov 17, 2024 · 3 comments
Assignees
Labels
bug Something isn't working jira testing

Comments

@Yarboa
Copy link
Collaborator

Yarboa commented Nov 17, 2024

This work checks the following

Install and run kvm inside QM

  1. local fedora, c9s
  2. testing farm fedora, c9s
@Yarboa Yarboa self-assigned this Nov 17, 2024
@Yarboa Yarboa added bug Something isn't working testing jira labels Nov 17, 2024
@Yarboa
Copy link
Collaborator Author

Yarboa commented Nov 17, 2024

As per this #660

  • kvm on c9s gate is failing on /dev/kvm
Error: stat /dev/kvm: no such file or directory
[ FAILED ] Error: Command podman exec -it qm /bin/bash -c       "podman run -d --net host  --replace --name ffi-qm       dir:/var/lib/containers/registry/tools-ffi:latest       tail -f /dev/null" failed with exit code: 125
Terminated

No nested kvm in AWS gate

  • For fedora traced more selinux rules here

vda4.txt

For fedora qemu-system-$arch --help
kvm_vda4.txt
Need to check rules for c9s

Need to update README for the above

@dougsland FYI

@Yarboa
Copy link
Collaborator Author

Yarboa commented Nov 19, 2024

Once installing this

dnf install --setopt=reposdir=/etc/qm/yum.repos.d --installroot /usr/lib/qm/rootfs/ dnf install qemu-system-$(arch)

running that command inside QM, you can run it with podman exec -y qm THE FOLLOWING COMMAND

$(/usr/bin/qemu-system-x86_64 -smp 12 -enable-kvm -m 2G -machine q35 -cpu host -device virtio-net-pci,netdev=n0,mac=FE:30:26:a6:91:2d -netdev user,id=n0,net=10.0.2.0/24,hostfwd=tcp::2226-:22 -drive file=/var/tmp/images/Fedora-Cloud-Base-Generic-41_Beta-1.2-tiny.x86_64.qcow2,index=0,media=disk,format=qcow2,if=virtio,snapshot=off -nographic > /tmp/log.txt 2>&1) &

Verifications

grep login: /tmp/log.txt
If exist, success

ip netns,

Connect from namspace
ip netns exec netns-47ecb0cf-e081-2626-5977-4c9955f392da ssh 127.0.0.1 -p 2226
success

Connect from host
ssh 127.0.0.1 -p 2226
Connection refused

@Yarboa
Copy link
Collaborator Author

Yarboa commented Nov 19, 2024

Checking the following testing-farm reservation

testing-farm reserve --compose Fedora-40 --hardware virtualization.is-supported=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira testing
Projects
None yet
Development

No branches or pull requests

1 participant