-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Unfortunately we still have lots of RSW on 5.2 kernel that requires vmtest coverage. Their timeline for migration is end of Q1 2024, but I don't want to wait that long. So support 9p share so that we can wrap up the last test for antlir2 vm migration. Test Plan: The newly added unit tests and vm test should cover this. ```name=boot default vm and examine shares $ buck run metalos/vm:kernel-5.2.9-242_fbk16_zion_4245_g53e65cc15fc6-vm [root@vmtest ~]# uname -r 5.2.9-242_fbk16_zion_4245_g53e65cc15fc6 [root@vmtest ~]# mount | grep ^fs fs1 on /data/users/junjiew/fbsource type 9p (ro,relatime,dirsync,loose,access=client,msize=512000,trans=virtio) fs2 on /mnt/gvfs type 9p (ro,relatime,dirsync,loose,access=client,msize=512000,trans=virtio) fs0 on /usr/local/fbcode type 9p (ro,relatime,dirsync,loose,access=client,msize=512000,trans=virtio) ``` ```name=kernel version test $ buck test metalos/vm/tests:kernel-version-test-5.2.9-229_fbk15_hardened_4185_g357f49b36602 File changed: fbcode//metalos/vm/TARGETS File changed: fbcode//antlir/antlir2/antlir2_vm/src/share.rs Buck UI: https://www.internalfb.com/buck2/11750c91-51f0-47cf-bdc0-105d71836a2c Test UI: https://www.internalfb.com/intern/testinfra/testrun/16607023633164027 Network: Up: 289MiB Down: 1.5GiB (reSessionID-0e349c3c-cd19-42e0-be46-f50c8996d70f) Jobs completed: 341920. Time elapsed: 5:13.8s. Cache hits: 99%. Commands: 47237 (cached: 46619, remote: 4, local: 614). Fallback: 5/618 Tests finished: Pass 1. Fail 0. Fatal 0. Skip 0. Build failure 0 ``` ```name=verify VM with newer kernel still use virtiofs $ buck run antlir/antlir2/antlir2_vm:default-nondisk-boot [root@vmtest ~]# uname -r 5.12.0-0_fbk16_hardened_7661_geb00762ce6d2 [root@vmtest ~]# mount | grep ^fs fs2 on /mnt/gvfs type virtiofs (ro,relatime) fs1 on /usr/local/fbcode type virtiofs (ro,relatime) fs0 on /data/users/junjiew/fbsource type virtiofs (ro,relatime) $ buck run metalos/vm:kernel-5.19.0-0_fbk21_rc4_12486_g25ff0d359bcf-vm [root@vmtest ~]# uname -r 5.19.0-0_fbk21_rc4_12486_g25ff0d359bcf [root@vmtest ~]# mount | grep ^fs fs0 on /data/users/junjiew/fbsource type virtiofs (ro,relatime) fs2 on /mnt/gvfs type virtiofs (ro,relatime) fs1 on /usr/local/fbcode type virtiofs (ro,relatime) ``` Reviewed By: cooperlees Differential Revision: D50483032 fbshipit-source-id: f0778899a2477d2471c9c7341d689023af98dfb7
- Loading branch information
1 parent
5208bd8
commit d9b2175
Showing
4 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters