-
Notifications
You must be signed in to change notification settings - Fork 740
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
[VM]: Support SONiC VM on the server #3036
Conversation
Signed-off-by: Ze Gan <[email protected]>
<name>{{ vm_name }}</name> | ||
<memory unit='KiB'>3072000</memory> | ||
<currentMemory unit='KiB'>3072000</currentMemory> | ||
<vcpu placement='static'>4</vcpu> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need 4 cores per sonic vm or we can reduce to 2 cores?
@@ -0,0 +1,54 @@ | |||
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |||
<name>{{ vm_name }}</name> | |||
<memory unit='KiB'>3072000</memory> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we reduce the memory requirement to 2gb?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except some minor comments.
BTW, can you update the document (https://github.com/Azure/sonic-mgmt/blob/master/docs/testbed/README.testbed.VsSetup.md) as well? |
Signed-off-by: Ze Gan <[email protected]>
Signed-off-by: Ze Gan <[email protected]>
Signed-off-by: Ze Gan <[email protected]>
lgtm |
disk_image_dir and cdrom_image should not contain home_path as the root_path can be absolute path. the issue is seem only when configure root_path as absolute path. bug was introduced in sonic-net#3036 Signed-off-by: Guohan Lu <[email protected]>
disk_image_dir and cdrom_image should not contain home_path as the root_path can be absolute path. the issue is seem only when configure root_path as absolute path. bug was introduced in #3036 Signed-off-by: Guohan Lu <[email protected]>
disk_image_dir and cdrom_image should not contain home_path as the root_path can be absolute path. the issue is seem only when configure root_path as absolute path. bug was introduced in sonic-net#3036 Signed-off-by: Guohan Lu <[email protected]>
disk_image_dir and cdrom_image should not contain home_path as the root_path can be absolute path. the issue is seem only when configure root_path as absolute path. bug was introduced in sonic-net#3036 Signed-off-by: Guohan Lu <[email protected]>
Signed-off-by: Ze Gan [email protected]
Description of PR
The VEOS cannot support MACsec feature, so to make SONiC VM as the testbed servers is useful for testing some scenarios, like MACsec. This PR improves some ansible playbooks to start/stop SONiV VM.
Type of change
Approach
What is the motivation for this PR?
Some features aren't supported by the default VM image, VEOS.
How did you do it?
Add a switch
vm_type
in some ansible playbooks to choose the VM os tosonic
orveos
.How did you verify/test it?
Follow this document: README.testbed.VsSetup.md
sonic-vs.img
in~/veos-vm/images/
-k sonic
on this the Setup Arista VMs on the server, like./testbed-cli.sh -m veos_vtb -n 4 -k sonic start-vms server_1 password.txt
.ansible -m ping -i veos_vtb server_1 -u admin -k
with passwordpassword
./testbed-cli.sh -m veos_vtb -n 4 -k sonic stop-vms server_1 password.txt
Any platform specific information?
None
Supported testbed topology if it's a new test case?
None
Documentation
docs/testbed/README.testbed.VsSetup.md