Having an issue with vm network

mjmclarty

Member
Nov 5, 2020
9
0
6
50
I'm new to Proxmox, so be patient.
When I try to update and upgrade ubuntu server I get:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/foca-securityl/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/vsar/lib/dpkg/lock-frontend), are you root

When I try sudo /ect/network/interfaces I get:
sudo: /ect/network/interfaces: command not found

I have no idea what I'm doing, so any help will be appreciated

Thanks
 
@mjmclarty I believe you built a Ubuntu VM in Proxmox? When you set up VM, which network did you connect it to? The error message shows DNS not working. sudo requires actual command you want to run, not a file (/etc/network/interfaces is a file). If you could provide more information, that would be great.

Eoin
 
Sorry for the late reply.
I'm bridged in vmbr0, virtIO (paravirtualized)
What other info do you need?
 
Last edited:
... Well, if you ask this, then you probably have installed Ubuntu with the default network settings (DHCP) ... ;)

You can easily check the network configuration using the command ip a on the CLI or opening the YAML-file in /etc/netplan (see the link that I sent with my last post), i. e. sudo nano /etc/netplan/50-cloud-init.yaml

Regards
 
this is what i get
... Like Arvyr has already said, the VM has no IP. This is strange, as you have to configure the network settings when installing Ubuntu. If you haven't set the IP manually, then the VM should get a dynamic IP (DHCP). And at least, the VM should get an APIPA IP, if no DHCP server is available ... weird ...

You can try to restart the network interface and to set the network configuration manually (there are many web sites that explain how to do that). If this doesn't work, then you should check the proxmox network configuration.

... Just a few questions:

- Have you set the interface down manually (sudo ip link set <interface> up/down)?
- Is the used Linux bridge attached to a network interface?
- Are other VMs connected to the same bridge?
- Do the network connections of the other VMs work?

Regards
 
Ok, I'm confused.
Tried other VMS no connections with them either.
All are using the same bridge vmbr0.
I get this when checking the network interface
root@pve:~# /etc/network/interfaces
-bash: /etc/network/interfaces: Permission denied
I didn't set anything manually.
I get this when I run ip a:
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
2: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
link/ether 60:45:cb:9e:1a:d8 brd ff:ff:ff:ff:ff:ff
3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 60:45:cb:9e:1a:d8 brd ff:ff:ff:ff:ff:ff
inet xxx.xxx.1.64/24 brd xxx.xxx.1.255 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 2602:304:b131:280:6245:cbff:fe9e:1ad8/64 scope global dynamic mngtmpaddr
valid_lft 2591817sec preferred_lft 604617sec
inet6 fe80::6245:cbff:fe9e:1ad8/64 scope link
valid_lft forever preferred_lft forever
69: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UNKNOWN group default qlen 1000
link/ether 5a:10:81:eb:f9:0a brd ff:ff:ff:ff:ff:ff

Oh well, it's time for work.
 
Ok, I'm confused.
Tried other VMS no connections with them either.
All are using the same bridge vmbr0.
I get this when checking the network interface
root@pve:~# /etc/network/interfaces
-bash: /etc/network/interfaces: Permission denied

Hi again,

/etc/network/interfaces isn't a command but a file. You can use the command cat /etc/network/interfaces in order to show the network configuration.

I didn't set anything manually.

In this case, your VMs should get an IP from your DHCP server (ISP modem/router). If this isn't the case, then there are two possible scenarios that could explain the issue.

1. Proxmox runs in default "bridge mode"

In this scenario, your VMs are attached to the same network as the proxmox server and your PC do, so the ISP modem/router will act as DHCP server. If the DHCP IP pool hasn't enough free IPs, then your VMs don't get their IPs. Please, check the DHCP configuration of this device and make sure that the DHCP IP pool has enough free IPs. As a workaround, you can set the IPs of the VMs manually.

2. Proxmox runs in "routed or NAT mode"

In this scenario, the VMs are in separate networks and routing and NAT have to be configured (see https://pve.proxmox.com/wiki/Network_Configuration for more information). If there is no DHCP server in these separate networks, then the VMs won't get any dynamic IPs and the network settings need to be configured manually.


Checking the Proxmox network configuration may provide more information...

Regards
 

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!