Proxmox can't download update

  • Thread starter PointlessMiracle
  • Start date
P

PointlessMiracle

Guest
Hello everybody,

I'm running Proxmox 2.1-1, but it can't install updates.
The guest has internet connection, so I assume the host has it too.
The web interface runs fine.

I use the command "aptitude update" and it stays at 0% downloading,
after a while it says: could not resolve 'ftp.nl.debian.org' three times. (I'm in the Netherlands)
The same with 'security.debian.org' and 'download.proxmox.com'
What am I doing wrong?
The server is a SuperMicro and has 2 LAN ports, maby that is a problem?

I'm sure you need more info, please ask.

And does anybody know if there is a way to have a 'Scheduled startup/shutdown' (for the host)?
Couldn't find it with google :)
It doesn't need to run the whole night.

This is my first server and I'm not really handy with it yet.
So please awnser in 'noob language'



Thanks,
Wout
 
Last edited by a moderator:
Hello everybody,

I'm running Proxmox 2.1-1, but it can't install updates.
The guest has internet connection, so I assume the host has it too.
The web interface runs fine.

I use the command "aptitude update" and it stays at 0% downloading,
after a while it says: could not resolve 'ftp.nl.debian.org' three times. (I'm in the Netherlands)
The same with 'security.debian.org' and 'download.proxmox.com'
What am I doing wrong?
Hi,
sounds like your DNS-resolving don't work.
Look at /etc/resolv.conf if there is an nameserver configured, which is reachable from the host (port 53).
test with "host www.google.com IP.OF.NAME.SERVER".
The server is a SuperMicro and has 2 LAN ports, maby that is a problem?

I'm sure you need more info, please ask.

And does anybody know if there is a way to have a 'Scheduled startup/shutdown' (for the host)?
Couldn't find it with google :)
It doesn't need to run the whole night.

This is my first server and I'm not really handy with it yet.
So please awnser in 'noob language'



Thanks,
Wout
automaticly power on work perhaps with you bios? Have you take a look there?
Power down can be done with an script (crontab).

Udo
 
Oke,

I wrote nano /etc/resolv.conf and replaced
"search server.home
nameserver 8.8.8.8"

8.8.8.8 is the IP of google I was told.

with:
"host www.google.com IP.OF.NAME.SERVER"

server.home was just a random name
Sorry if I made a stupid mistake ;)

Is that ok?
because it still doesn't connect.
 
Oke,

I wrote nano /etc/resolv.conf and replaced
"search server.home
nameserver 8.8.8.8"

8.8.8.8 is the IP of google I was told.

with:
"host www.google.com IP.OF.NAME.SERVER"

server.home was just a random name
Sorry if I made a stupid mistake ;)

Is that ok?
because it still doesn't connect.

Hi,
does your resolving work now?
If yes, work the routing?
Test with "traceroute download.proxmox.com"

Do you get the index.html with "wget http://download.proxmox.com" ?
Have you defined an proxy with apt and is this working?

Udo
 
Oké, My /etc/resolv.conf is still "host www.google.com IP.OF.NAME.SERVER" (1 line)
I tested with traceroute download.proxmox.com and the response is:
download.proxmox.com: Name or service not known
Cannot handle "host" cmdline arg 'download.proxmox.com' on position 1 (argc 1)

The response on wget http://download.proxmox.com is not much better:
Resolving download.proxmox.com... failed: Name or service not known.
wget: unable to resolve host address 'download.proxmox.com'

How do I define a proxy? I do not have a proxy, do I need this?

Wout,
 
For some reason my post is not being placed right after the post button,
But this was before your last post


Hello,

No that didn't change anything.
Same error; but faster
none of your command works, all 'not known'

That script about the shutdown, how does this look like?
And then I have to execute it with cron I assume?
/etc/cron.daily/ will be the place to be I think, but that is a directory.
Further:
I found this thread :
http://forum.proxmox.com/threads/11619-Shutdown-Proxmox-automatically-at-2200
but I do not really understand it :p

Sorry, but can you explain this a little to me? (I'm still 14 :))
 
Last edited by a moderator:
Oké, My /etc/resolv.conf is still "host www.google.com IP.OF.NAME.SERVER" (1 line)
I tested with traceroute download.proxmox.com and the response is:
download.proxmox.com: Name or service not known
Cannot handle "host" cmdline arg 'download.proxmox.com' on position 1 (argc 1)

The response on wget http://download.proxmox.com is not much better:
Resolving download.proxmox.com... failed: Name or service not known.
wget: unable to resolve host address 'download.proxmox.com'

How do I define a proxy? I do not have a proxy, do I need this?

Wout,
Hi,
in the resolv.conf should be the nameserver - host is the command to check the resolving.
You had before the 8.8.8.8 nameserver (google) inside the resolv.conf.
If your routing is right (and no firewall stop the traffic) you should be able to contct this nameserver.
You can test this with
Code:
host www.google.de 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases: 

www.google.de has address 74.125.132.94
www.google.de has IPv6 address 2a00:1450:400c:c06::5e
If you don't get an answer, check the routing:
Code:
traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
Do you use the host on your home-network? Often the router is also the DNS-Server,

so you can also test to resolv an DNS-Name with your router-IP like "host www.google.de 192.168.x.1".

If you have an working nameserver use this as entry in /etc/resolv.conf
Code:
cat /etc/resolv.conf
search my-domain.com
nameserver 8.8.8.8
Udo
 
Hi,
in the resolv.conf should be the nameserver - host is the command to check the resolving.
You had before the 8.8.8.8 nameserver (google) inside the resolv.conf.
If your routing is right (and no firewall stop the traffic) you should be able to contct this nameserver.
You can test this with
Code:
host www.google.de 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases: 

www.google.de has address 74.125.132.94
www.google.de has IPv6 address 2a00:1450:400c:c06::5e

I did this, but it dit not make any changes.
(what I did is write this in resolv.conf, right?)


If you don't get an answer, check the routing:
Code:
traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets

Tested this
Response:
Code:
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1   home.server (192.168.2.133)    3000.657 ms !H  3000.648 ms !H

Response after changing the resolv.conf (to what you said)
1 * * *
2 * * *
3 * * *
4 * * *
ETC... till 30.

Do you use the host on your home-network? Often the router is also the DNS-Server,

Yes I do,

so you can also test to resolv a DNS-Name with your router-IP like "host www.google.de 192.168.x.1".

Tested, the response of traceroute changed into:
Code:
1   home.server (192.168.2.133)  3000.512 ms !H 3000.497 ms !H 3000.490 ms !H

If you have an working nameserver use this as entry in /etc/resolv.conf



Code:
cat /etc/resolv.conf
search my-domain.com
nameserver 8.8.8.8
Udo
I do not have a working nameserver.
I'm in the Netherlands, so can I change this .de to .nl?
it is also ftp.nl.debian.org
 
I did this, but it dit not make any changes.
(what I did is write this in resolv.conf, right?)




Tested this
Response:
Code:
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1   home.server (192.168.2.133)    3000.657 ms !H  3000.648 ms !H

Response after changing the resolv.conf (to what you said)
1 * * *
2 * * *
3 * * *
4 * * *
ETC... till 30.



Yes I do,



Tested, the response of traceroute changed into:
Code:
1   home.server (192.168.2.133)  3000.512 ms !H 3000.497 ms !H 3000.490 ms !H


I do not have a working nameserver.
I'm in the Netherlands, so can I change this .de to .nl?
it is also ftp.nl.debian.org
Hi,
you can change .de to .nl but the issue is still your routing.
Can you post the output of
Code:
ip route
cat /etc/network/interfaces
I guess you have an wrong gateway entry. Normaly your gateway should be the 192.168.2.1 or 192.168.2.254. Ok - there are plenty free IPs in this range, which the router can have but mostly the first or last ip is used.

You can test from your desktop-pc, which is the next hop with traceroute (or tracert if you use win).

Udo
 
Erm,

It said (in the VM, back then) that the gateway is 192.168.2.1, that was also in the /etc/network/interfaces
But since the last reboot of the server, I do no longer have any contact with it. The web interface is no longer working (?).
What should I change? I forgot to post, but after the last changes the VMs also no longer have internet connection.

But what I found in my router config is that it has a DNS 195.121.1.34/195.121.1.66/0.0.0.0 (ZTE H220N)
Our routing is kinda weard, The ZTE is connected to a Sitecom router and that one gives the signal to my PC, the Server is in direct contact with the ZTE

The router has a Firewall, FTP, internal SIP server (proxy server it sais, with ip .254) and DMZ host (.4)
I can't change the firewall (as far as I know) but it has a grey button to change it.

After the command you said, I'll change the configs back to their original state, so I can connect to it (I hope).

For some reason this forum doesn't post my reaction right after the submit button, so I don't know if you have seen it.
Maby there is a better way to speak with eachother, like mail or Skype, what do you think?


Wout

- - - Updated - - -

test
 
Test,

Forget about my last post (which isn't posted yet), it did shutdown, but stayed at "type ctrl-D to continue" and the server was running but did nothing.
But my VMs some has, and then has no internet connection (currently not)
EDIT: restart, and now they have internet connection :)

network interfaces (how to copy and paste that screen from the shell ?!)
screenshots:
proxmox network interfaces.PNG

and

proxmox ip route.PNG

If this one lets me see the old one, I'll place a "test" post to let this one be active.

EDIT:
This one is posted directly after submit button ???!
 

Attachments

  • proxmoxnetworkinterface.png
    proxmoxnetworkinterface.png
    6.1 KB · Views: 18
  • proxmox ip route.PNG
    proxmox ip route.PNG
    4 KB · Views: 14
  • proxmox network interfaces.PNG
    proxmox network interfaces.PNG
    8.4 KB · Views: 19
Last edited by a moderator:
Test,

Forget about my last post (which isn't posted yet), it did shutdown, but stayed at "type ctrl-D to continue" and the server was running but did nothing.
But my VMs some has, and then has no internet connection (currently not)
EDIT: restart, and now they have internet connection :)

network interfaces (how to copy and paste that screen from the shell ?!)
screenshots:
View attachment 1372

and

View attachment 1371

If this one lets me see the old one, I'll place a "test" post to let this one be active.

EDIT:
This one is posted directly after submit button ???!

Hi,
one screenshot shows the wrong network 192.168.1.0 - I assume you have fixed that?! Normaly you don't need an network-entry - linux know through the netmask which is the right network and broadcast adress.

do you get an right answer, if you do an
Code:
host www.google.nl 192.168.2.1
Udo
 
I Will try That code tomorrow,
And yes, I fixed that. But like you said; no difference. In the post that didn't show up, I said that my router has a firewall, DNS and a proxy server built in
I can change some IPs of those.
And on the scheduler; my bios does not have that feature. Or I couldn't find it. (Searched really hard :p)
The Motherboard is an X7DBU from supermicro, with I think PhoenixBIOS 1.5 (from 08,08,07). You know if a Bios update could fix this? And if it is worth it? The motherboard does support WOL and WOR.
Router: (ZTE H220N)
 
Last edited by a moderator:
Code:
;; connection timed out; no servers could be reached
I guess that's a no.
BUT:
Tried the same thing with 192.168.2.254 and the response looked a lot better
Code:
Using domain server:
Name: 192.168.2.254
Adress: 192.168.2.254#53
Aliases: 

www.google.nl has address 74.125.132.94
www.google.nl has IPv6 address 2a00:1450:400c:c06::5e

Did this one more time (little later)
and now google has address 173.194.66.94

My router supports multiple host/servers: FTP, DMZ, UPnP, samba server, DLMA-DMS.
And I didn't make an exception for the server, didn't found a place to create one.

I do not have DNS set up.

The ports I have forwarded for the server (I port-forwarded the address I selected in network/interfaces, the same as I write for the web interface, that's 192.168.2.133 for me)

443 (Don't know why, but I can not connect to the server outside our network)
5900-5999 (VNC)
8006 (Web interface)
21 (FTP)

Maby I forgot something ?

EDIT:
Shutting down is now completely working :D
The server shuts down at 11PM, but I can only manually start it up.
I contacted SuperMicro to ask if they know if a BIOS update will give me the option to automaticly start up.
The IP of google is still 173.194.66.94
So I assume I need to change the gateway in /etc/network/interfaces to 192.168.2.254?
 
Last edited by a moderator:
IT'S WORKING :D, thanks Udo for helping me out!
For everybody with the same problem(s) and are just as stupid as me:

It was actually a really easy problem to fix (after all, but you need to know what the problem is..)
check:
Code:
host www.google.nl 192.168.x.1
OR:
host www.google.nl 192.168.x.254
.nl can be changed to where ever you live.
The one with the right awnser like (this one), will be your gateway:
Code:
Using domain server:
Name: 192.168.2.254
Address: 192.168.2.254#53
Aliases: 
[URL="http://www.google.nl"]
www.google.nl[/URL] has address 173.194.66.94
[URL="http://www.google.nl"]www.google.nl[/URL] has IPv6 address 2a00:1450:400c:c06::5e

Then change your
DNS search domain to www.google.nl
and DNS server 1 to 192.168.x.1 or 192.168.x.254
Restart server and done.

Then, for automatic shutdown at any set time:

Code:
nano /etc/crontab

then add this below the last #
Code:
#Shutdown at 11PM (write here whatever you want)
00 23   * * *   root    shutdown -h -P now

OR with 5 minute warning:

00 23   * * *   root    shutdown -h -P +5

I haven't set it up to power on at 9:00, My BIOS (PhoenixBIOS, date: 08/08/07) does not support wake up on RTC.
Maby a BIOS update will do the job.

Thanks Udo again :D
 
Last edited by a moderator:

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!