Skip to content
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

Windows ivshmem #113

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

serpilliere
Copy link
Contributor

@serpilliere serpilliere commented Dec 15, 2022

Add ivshmem image exfiltration for windows sanzu_server
The guest needs the ivshmem driver provided by redhat. Howto install here:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_host_configuration_and_guest_installation_guide/form-virtualization_host_configuration_and_guest_installation_guide-para_virtualized_drivers-mounting_the_image_with_virt_manager

The host needs ivshmem activation.
For Libvirt, add this to the vm configuration:

<shmem name='test' role='master'>
       <model type='ivshmem-plain'/>
       <size unit='M'>128</size>
</shmem>

For qemu, add this to the command line:

     -device ivshmem-plain,memdev=hostmem \
     -object memory-backend-file,size=128M,share=on,mem-path=/dev/shm/test,id=hostmem \

The server is launched with:

sanzu_server -f sanzu.toml -i -e null

The client with:

RUST_LOG=debug sanzu_client  ip port  -i /dev/shm/test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant