Tried to update server and broke it

forcegc

Member
Feb 21, 2022
28
2
8
59
I have been trying to recover my dell r620 for a few weeks now with no luck. no etc hosts file and no etc hostname file. i can upgrade or update since no dns and cant figure out how to fix. i can remote in via idrac but cant resolve a lot of issues. 1656639649975.png

1656639688067.png
1656639723290.png

1656639748008.png
1656639782317.png
1656639798820.png
 
Hi,

@forcegc please check your network config at
Code:
/etc/network/interface
You have acces to the proxmox panel & your network interface is up or down ?

@300cpilot you can look here https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0#Linux_Bridge_MAC-Address_Change

Best Regards
1656652567213.png
How can i tell which one is up or down. I did ifup eno3 and it seemed like it did something but dns isnt resolving still so i cant run an apt update to fix pve-enviroment since i have no gui currently and cant access the web interface
 
Hi,

Can you explain since when you have the problem and what is your version of PVE ?

Code:
pveversion -v

You are sure your gateway is
Code:
192.168.254.000
?
You can look if your interface is up with
Code:
ip a
if you want ex :
Code:
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
You can see at state is UP
And try to
Code:
ping 1.1.1.1
if that work you have internet but your DNS is not working you can try to set 1.1.1.1 in
Code:
/etc/resolv.conf

Also have see you have old server please try to set
Code:
intel_iommu=off
in your grub :
https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#sysboot_edit_kernel_cmdline
After that just reboot for check if you have issue fixed that is a workaround for PVE 7.2

Best Regards
 
Last edited:
Hi,

Can you explain since when you have the problem and what is your version of PVE ?

Code:
pveversion -v

You are sure your gateway is
Code:
192.168.254.000
?
You can look if your interface is up with
Code:
ip a
if you want ex :
Code:
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
You can see at state is UP
And try to
Code:
ping 1.1.1.1
if that work you have internet but your DNS is not working you can try to set 1.1.1.1 in
Code:
/etc/resolv.conf

Also have see you have old server please try to set
Code:
intel_iommu=off
in your grub :
https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#sysboot_edit_kernel_cmdline
After that just reboot for check if you have issue fixed that is a workaround for PVE 7.2

Best Regards
pveversion -v returns 1657228864144.png

I think my gateway is 192.168.254.254 1657228994257.png
Thats what my gateway is on my other home pc.

i just tried modifying the gateway on etc/network/interfaces to match 192.168.254.254 instead of 192.168.254.000 on the vmbr0 interface thats bridged to eno3 and eno3 returns 1657229167066.png
on doing a ip a

pinging 1.1.1.1 after this returns 1657229195329.png

i set intel_iommu=off

1657229394724.png

this is my etc/resolv.conf currently.
 
@forcegc

you gateway is wrong

and also, don't use 2 ip in the same subnet (192.168.254.x),
a default gw is always going out to only 1 interface


(why do you need 2 ips in your server ?)
I figured that might be the case but i adjusted it to be the same gateway as my home pc and its still not working. also the reason for two ip addresses for two different nic's was that i was playing around with having two dedicated game servers. And thats before i knew how to split it into vlans with my switch and what not.
 
Last edited:
1657230197436.png
This is after a reboot. It still shows my old web gui that was used at my old house. But at least i have a pve version for you guys.
 
Sounds like it was my gateway since after reboot i am able to ping 1.1.1.1 now after editing the gateway in etc/network/interfaces now just need to modify the web gui
but running into this while trying to get proxmox-ve installed
1657230734242.png
and for some reason cant install ceph-common or python 3 with apt install python3

and while running
apt dist-upgrade
1657231459643.png
and then i fixed this issue by commenting out lines in the file remove the file /etc/apt/apt.conf.d/10pveapthook

now i can apt update and upgrade and full upgrade
 

Attachments

  • 1657231518735.png
    1657231518735.png
    30.7 KB · Views: 1
Last edited:
Did you change your /etc/hosts to the new IP address (192.168.254.121?) already? If not, do this first and reboot the host before doing any upgrades!

You should anyway first fix the problems, before you upgrade the system!

Regarding your last screenshot, you missed the leading slash in /etc/apt/sources.list.

Regarding your very first screenshot, you are mixing up buster (PVE 6 with Debian 10) and bullseye (PVE 7 with Debian 11) repositories.
If you are trying to upgrade from PVE 6 to PVE 7, read, understand and follow the guide [1] step-by-step and make sure to change all repositories from buster to bullseye [2]. (Don't know what this iteas.at repository is, but you should know.)

[1] https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
[2] https://pve.proxmox.com/wiki/Package_Repositories
 
Did you change your /etc/hosts to the new IP address (192.168.254.121?) already? If not, do this first and reboot the host before doing any upgrades!

You should anyway first fix the problems, before you upgrade the system!

Regarding your last screenshot, you missed the leading slash in /etc/apt/sources.list.

Regarding your very first screenshot, you are mixing up buster (PVE 6 with Debian 10) and bullseye (PVE 7 with Debian 11) repositories.
If you are trying to upgrade from PVE 6 to PVE 7, read, understand and follow the guide [1] step-by-step and make sure to change all repositories from buster to bullseye [2]. (Don't know what this iteas.at repository is, but you should know.)

[1] https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
[2] https://pve.proxmox.com/wiki/Package_Repositories
Yes i changed the /etc/hosts file to match 192.168.254.121 and did a reboot and then did the upgrade and it still boots and shows the old 10.0.0.121. Thank you for catching that leading slash i ended up realizing my mistake by not putting that slash after i posted. lol stupid me. So i did the upgrade a while back from 6 to 7 and thats what has caused me to be in this situation. So i have all of mine set to bullseye like this right now

1657235368374.png
i added the deb and deb-src ones just a few minutes ago to see if i got any better results and still nothing. I cant install proxmox-ve at all since i am missing dependencies still.
 
AH HA!!

1657235955103.png
i commented out all my bs and uncommented out the pve-no-subscription and bam bada bang it was able to get the pve updates and then i ran upgrades and now its letting me install pve now onto the ip issue. for the web gui to fix.
 
Thank you

liberodark

@Neobin

You both have helped me a lot!! I fixed it and i am finally in. I was able to install pve and then after i rebooted it showed the right web browser url that matched with my etc hosts file and my network. I am finally on 7.2.7 version of proxmox after over a month of downtime!​

 

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!