new CT - no update possible

vikozo

Renowned Member
May 4, 2014
781
30
93
suisse
www.wombat.ch
hello
i have created a CT installed Ubuntu 14.04-x86_64.tar.gz
add a local ip adress
started afterwards.
when i acces it with teraterm - i log in will do a apt-get update or sudo apt-get update
and geht a error

~# sudo apt-get update
Err http://archive.canonical.com trusty InRelease

Err http://archive.canonical.com trusty Release.gpg
Temporary failure resolving 'archive.canonical.com'
Err http://security.ubuntu.com trusty-security InRelease

Err http://security.ubuntu.com trusty-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://archive.ubuntu.com trusty InRelease

Err http://archive.ubuntu.com trusty-updates InRelease

Err http://archive.ubuntu.com trusty Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg Temporary failure resolving 'archive.canonical.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Temporary failure resolving 'security.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Temporary failure resolving 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Temporary failure resolving 'archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.

so what doing wrong...

if i check
/etc/network/interfaces
# Auto generated lo interface
auto lo
iface lo inet loopback

# Auto generated venet0 interface
auto venet0
iface venet0 inet manual
up ifconfig venet0 up
up ifconfig venet0 127.0.0.2
up route add default dev venet0
down route del default dev venet0
down ifconfig venet0 down


iface venet0 inet6 manual
up route -A inet6 add default dev venet0
down route -A inet6 del default dev venet0

auto venet0:0
iface venet0:0 inet static
address 10.147.42.61
netmask 255.255.255.255

~
~
i think there is a part missing...
but if i do add the information, theye are deleted after a reboot

have a nice day
vinc
 
Hello vinc,

obviously you don´t have access from CT to internet. Your CT address 10.147.42.61 is a local one, without having a NAT router to it it cannot work. Probably your proxmox host has a NIC connected to internet, assuming it´s eth0 a simple NAT works if you add

Code:
iptables -t nat -A POSTROUTING -s 10.147.42.61 -o eth0 -j MASQUERADE

in the host.

If still not working check the following:
- nameserver (8.8.8.8) correctly defined in /etc/resolv.conf in CT?
- can you ping to nameserver (from both host and CT)?

Can you give more details what you mean with the following?

if i check
/etc/network/interfaces

i think there is a part missing...
but if i do add the information, theye are deleted after a reboot

I think your /etc/network/interfaces is complete.

kind regards

Mr. Holmes
 
Last edited:
Hello Mr. Holmes
thanks for your feedback

with the missing part in the interface config i mean
network, Broadcast and the gateway are missing...

/etc/network/interfaces

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1====
and i am a bit confused about "venet" --> my server would have two Eth Port - would be nice to be able to bundle theme

have a nice day
vincent
 
Last edited:
i also just saw that the netmask is wrong - but i don't know where proxmox took them should be 255.255.255.0
vinc

No, 255.255.255.255 is correct for venet0 in CT. Because you can imagine it as a peer-to-peer connection between host and CT.
 
Hello vincent,


with the missing part in the interface config i mean
network, Broadcast and the gateway are missing...

I guess you mean you don´t have these entries in the CT´s /etc/network/interfaces

Not needed!
venet0 is a peer-to-peer connection and all traffic will use this channel

and i am a bit confused about "venet"

It´s a virtual peer-to-peer NIC and appears in both host and CT (see also my answer to your next post).


my server would have two Eth Port - would be nice to be able to bundle theme

I guess you mean two physical ports - depends what you mean with "to bundle":

- if you want to couple the two physical networks where the two NICs are belonging to you have to make a bridge containing both

- if the two NICs are connected to the same network and traffic should be shared between them you have to make a bond device consisting of these two - in that case the other ports on that network must run in the same bonding mode!

Kind regards

Mr.Holmes
 

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!