Skip to content

Commit

Permalink
[antlir2][vm] add library for qemu-system
Browse files Browse the repository at this point in the history
Summary:
The antlir's qemu build shared with OSS needs additional libraries to
work. Otherwise we run into the following errors:
antlir/vm/runtime/__qemu-system-x86_64__/out/qemu-system-x86_64: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
antlir/vm/runtime/__qemu-system-x86_64__/out/qemu-system-x86_64: error while loading shared libraries: libpixman-1.so.0: cannot open shared object file: No such file or directory

While we do have internal qemu builds that don't need them, there is no reason to divert for simple dependencies. Add them to the container image for the VM, so we can use qemu from antlir instead of tp2.

Test Plan:
Run VM with D44926488 and verify VM boots.
```
MetalOS MetalOS (8477885015c7ed7bd33229ec51dc85c86fc4e053)
Kernel 5.6.13-0_fbk21_hardened_6114_gcde3142b1765 on an x86_64

localhost login: root (automatic login)
+======================================+
| ___  ___     _        _ _____ _____  |
| |  \/  |    | |      | |  _  /  ___| |
| | .  . | ___| |_ __ _| | | | \ `--.  |
| | |\/| |/ _ \ __/ _` | | | | |`--. \ |
| | |  | |  __/ || (_| | \ \_/ /\__/ / |
| \_|  |_/\___|\__\__,_|_|\___/\____/  |
|                                      |
+======================================+
[root@localhost ~]#
```

Differential Revision: D47278925

fbshipit-source-id: 852dd772db9e2ab41d6397fb9e21d56b06677b82
  • Loading branch information
wujj123456 authored and facebook-github-bot committed Jul 10, 2023
1 parent e533709 commit 318c9d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions antlir/antlir2/antlir2_vm/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ image.layer(
feature.rpms_install(rpms = [
"glib2", # for virtiofsd
"iproute", # for NIC configuration
"numactl-libs", # for qemu-system
"openssh-clients", # for ssh shell
"pixman", # for qemu-system
"systemd-container", # for systemd-detect-virt
]),
feature.install(
Expand Down

0 comments on commit 318c9d6

Please sign in to comment.