[GH-ISSUE #546] how to make vm connected to router directly? #323

Closed
opened 2026-02-27 15:58:15 +03:00 by kerem · 2 comments
Owner

Originally created by @xiedeacc on GitHub (Oct 8, 2022).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/546

I use netplan create a bridge on my ubuntu22.04 host, now my host network works well, but I cannot connect to vm, how to sovle this?

vi  /etc/netplan/01-netcfg.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    enp5s0:
      dhcp4: no
      dhcp6: no

  bridges:
    br0:
      interfaces: [enp5s0]
      dhcp4: no
      addresses: [192.168.101.20/24]
      gateway4: 192.168.101.1
      nameservers:
        addresses: [192.168.101.1]
netplan apply

image
image

Originally created by @xiedeacc on GitHub (Oct 8, 2022). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/546 I use netplan create a bridge on my ubuntu22.04 host, now my host network works well, but I cannot connect to vm, how to sovle this? ``` vi /etc/netplan/01-netcfg.yaml network: version: 2 renderer: networkd ethernets: enp5s0: dhcp4: no dhcp6: no bridges: br0: interfaces: [enp5s0] dhcp4: no addresses: [192.168.101.20/24] gateway4: 192.168.101.1 nameservers: addresses: [192.168.101.1] netplan apply ``` ![image](https://user-images.githubusercontent.com/8072296/194706624-1c5338cc-d582-4172-a52e-bb6e597bfa7a.png) ![image](https://user-images.githubusercontent.com/8072296/194706671-505cb9ba-7a04-4025-aec2-f279edd36aa5.png)
kerem closed this issue 2026-02-27 15:58:15 +03:00
Author
Owner

@catborise commented on GitHub (Oct 10, 2022):

it seems right. it should work if your subnet access to internet.
you should manually set tiger1 instance network if there is not any dhcp server.

<!-- gh-comment-id:1272902727 --> @catborise commented on GitHub (Oct 10, 2022): it seems right. it should work if your subnet access to internet. you should manually set tiger1 instance network if there is not any dhcp server.
Author
Owner

@xiedeacc commented on GitHub (Oct 10, 2022):

yes it's right, thanks

<!-- gh-comment-id:1273140293 --> @xiedeacc commented on GitHub (Oct 10, 2022): yes it's right, thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#323
No description provided.