this post was submitted on 16 Aug 2024
12 points (87.5% liked)

Linux

8061 readers
60 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS
12
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 

Hi all, hope you're doing well,

I do a lot of work in various VMs and pass through USB devices to move data around

I would like to be able to instead use localsend and other LAN stuff like SMB/moonlight

What is the best way for me to do this? I thought about doing a wireguard tunnel to the host but figured I'd ask in case there's a better way

Thanks in advance

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 4 points 2 months ago (1 children)

You need to bridge your network adapter so you are on the same network subnet. When you bridge the VM appears on the same network. The default is NAT which by default is a different subnet. Like you, the host are on 192.168.1.0/24 and the VM, the guest is on 192.168.122.0/24. Unless you have two network adapters(if so you could let the VM have it) unlike most people bridged is what you're looking for. VPN tunnel is usually when you are remote of your VM so unnecessary IMO.

[โ€“] [email protected] 1 points 2 months ago

Alright thank you very much for the info.