Skip to content

migration: Fix connect sock issue #6371

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cliping
Copy link
Contributor

@cliping cliping commented Jun 11, 2025

Failed to run virtiofsd/swtpm command on target host which lead to 'Permission denied' error. So update case.

Before:
Command '/bin/virsh attach-device avocado-vt-vm1 /var/tmp/xml_utils_temp_0g89yjed.xml' failed. stdout: b'\n' stderr: b"error: Failed to attach device from /var/tmp/xml_utils_temp_0g89yjed.xml\nerror: internal error: unable to execute QEMU command 'chardev-add': Failed to add chardev 'chr-vu-fs0': Failed to connect to '/var/vm001-vhost-fs.sock': Permission denied\n"

VM 'avocado-vt-vm1' failed to start: error: Failed to start domain 'avocado-vt-vm1' error: internal error: process exited while connecting to monitor: 2025-06-09T16:59:09.005669Z qemu-kvm: -chardev socket,id=chrtpm,path=/var/tmp/guest-swtpm.sock: Failed to connect to '/var/tmp/guest-swtpm.sock': Permission denied(exit status: 1)

After:
(1/1) type_specific.io-github-autotest-libvirt.migration.migration_with_virtiofs.migration_with_externally_launched_virtiofs_dev.with_precopy: STARTED
(1/1) type_specific.io-github-autotest-libvirt.migration.migration_with_virtiofs.migration_with_externally_launched_virtiofs_dev.with_precopy: PASS (205.86 s)

(1/1) type_specific.io-github-autotest-libvirt.migration_with_vtpm.migration_with_external_tpm.persistent_and_p2p: STARTED
(1/1) type_specific.io-github-autotest-libvirt.migration_with_vtpm.migration_with_external_tpm.persistent_and_p2p: PASS (220.01 s)

@cliping cliping force-pushed the fix-virtiofs-2 branch 2 times, most recently from 9fcd84e to 3d0d507 Compare June 11, 2025 15:30
Failed to run virtiofsd/swtpm command on target host which lead to
'Permission denied' error. So update case.

Signed-off-by: lcheng <[email protected]>
@cliping cliping marked this pull request as draft June 11, 2025 23:48
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.

1 participant