Network interface not up in Opensuse 15.1 CT with Proxmox 6.1

gdhara

New Member
Jan 30, 2020
3
1
3
39
Hi,

I have downloaded the latest Proxmox 6.1 and working around. I wanted to install Opensuse Leap OS 15.1 and 15.0 LXC container.
After download and installation of Opensuse LXC template eth0 network interface is not up after the OS boot. I have tried multiple ways to look what was the issue but not successful. When i download and install Centos or Ubuntu LXC containers i don''t have issues with Network interface it works as expected.
What could be the issue with OpenSUse LXC template ?
I have even tried to modify the network files with static and dynamic ip settings both doesn't work.

Output from operating system:-
---------------------------------------------------

suse:~ # ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
17: eth0@if18: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 7e:57:49:e8:ec:43 brd ff:ff:ff:ff:ff:ff link-netnsid 0


suse:~ # ifup eth0
eth0 no-device


Regards,
Giridharan
 
Hi,
Can you put output of command: cat /etc/network/interfaces


Hi,

The OS is Opensuse (core). I doubt it has interfaces file in it. Please find the output as requested

suse:~ # cat /etc/network/interfaces
cat: /etc/network/interfaces: No such file or directory

suse:~ # cat /etc/networks
#
# networks This file describes a number of netname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
#

loopback 127.0.0.0
link-local 169.254.0.0

# End.
 
Hi,

I guess the problem from openSUSE but u can fix that, just ip link set down then up with command:
ip link set eth0 down && ip link set eth0 up
then do ping google.com
 
!!OMG!! - I never thought about ip link command. Thank you very much, the command you gave did the trick.
And i can see the ip address now in the container. :) Peace
 
  • Like
Reactions: matrix
Hello,


Sorry for the top posting, but i have exactly the same problem.

thx to @matrix fort the workaround but this solution:


- can't be used if you plan to create a lot of LXC container
based on OpenSuSe template
- is not persistent after a reboot.

In fact a bug report is on the OpenSuse Bugzilla but no solution as comes out actually.
https://bugzilla.opensuse.org/show_bug.cgi?id=1130237

Any idea ?

Best Regards,
Rollniak
 
This bug is fixed on upstream, maybe. Look at template opensuse-20200315.
"pveam update" shows old template still.
 
pve-container 3.0-23 in pvetest repository should fix this issue. it works also with the older opensuse template.
 
I did saw it at linuxcontainers.org, what should be primary source of lxc templates.
Can we ask someone from Proxmox staff to kindly refresh their repo, please?
Thank you
 
  • Like
Reactions: janssensm
Can we ask someone from Proxmox staff to kindly refresh their repo, please?
that'll also be updated soon. in the meantime you can use pve-container 3.0-23 from pvetest repository with the old template.
 
  • Like
Reactions: janssensm

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!