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

Linux

8049 readers
104 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

top 5 comments
sorted by: hot top controversial new old
[–] [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.

[–] [email protected] 2 points 2 months ago (1 children)

I failed so hard at this that my entire server setup idea (Fedora Server) fell apart and I'm currently thinking about switching to Proxmox.

[–] [email protected] 1 points 2 months ago

Proxmox is really cool you should check it out when you get a chance regardless

[–] [email protected] -1 points 2 months ago* (last edited 2 months ago)