Need help for creating testbed using current SONiC-mgmt

133 views
Skip to first unread message

dong

unread,
Mar 17, 2022, 5:42:40 AM3/17/22
to sonic-test-workgroup
Hi, SONiCers, 

I hope that all is well! Currently we are trying to setup a SONiC testbed according to the SONiC-mgmt document (https://github.com/Azure/sonic-mgmt/blob/master/docs/testbed/README.testbed.VsSetup.md), after executing the following cmd: 

>$ ./testbed-cli.sh -m veos_vtb -n 4 -k vsonic start-vms server_1 password.txt 

There is an error in output: 
AttributeError: 'libvirtError' object has no attribute 'message' 
And no vms are created after the cmd is finished. 

 I have asked at the github issue(https://github.com/Azure/sonic-mgmt/issues/5287) and seems others have the same problem. 
I feel that the problem is related to the invoking of libvirt in python. Can anyone help to figure out the root of the problem or which script in SONiC-mgmt I need to modify to get around? 

Thanks, 
Dong.

Karthik V

unread,
Jan 11, 2024, 2:15:08 AM1/11/24
to sonic-test-workgroup
Step 1: Go to the qemu.conf folder present in /etc/libvirt/qemu.conf and uncomment the following two lines:

    user="root"
    group="user"

Step 2: Replace the user with your "username" and group with "libvirt"

Step 3: sudo systemctl restart libvirtd
Step 4: sudo usermod -aG libvirt $(whoami)


Hopefully, the error should be solved.

Best Regards,
Karthik V
Reply all
Reply to author
Forward
0 new messages