Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #224573

Re: systemd-nspawn networking inside VirtualBox VM

From Alexandre Rossi <niol@zincube.net>
Newsgroups linux.debian.user
Subject Re: systemd-nspawn networking inside VirtualBox VM
Date 2020-07-08 07:40 +0200
Message-ID <AqaYi-2xz-5@gated-at.bofh.it> (permalink)
References <ApVZf-1HS-3@gated-at.bofh.it> <ApYDL-3mL-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

> > since I am not well educated about macvlan, ipvlan, I could not get the
> > networking working at all. I would like to avoid using
> > "systemd-networkd/systemd-resolvd" especially on the Buster host - using those
> > it seems should make everything work automagically.
> 
> If you realy want to do the networking yourself, you will need to create
> the bridge based on the examples found in '/lib/systemd/network'.

I've had success declaring a bridge in /etc/network/interfaces:

    iface br0 inet dhcp
        bridge_ports eth0 # this is your VM Ethernet

and launching my containers with:

    $ cat /etc/systemd/nspawn/container.nspawn
    [Exec]
    Boot=yes

    [Network]
    Bridge=br0
    $ sudo machinectl start container

Alex

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

systemd-nspawn networking inside VirtualBox VM Didar Hossain <didar@purlo.in> - 2020-07-07 15:40 +0200
  Re: systemd-nspawn networking inside VirtualBox VM john doe <johndoe65534@mail.com> - 2020-07-07 18:30 +0200
    Re: systemd-nspawn networking inside VirtualBox VM Alexandre Rossi <niol@zincube.net> - 2020-07-08 07:40 +0200
      Re: systemd-nspawn networking inside VirtualBox VM Didar Hossain <didar@purlo.in> - 2020-07-08 18:40 +0200
    Re: systemd-nspawn networking inside VirtualBox VM Didar Hossain <didar@purlo.in> - 2020-07-08 18:10 +0200

csiph-web