Proxmox Update Package Database Error

Update Package Database KB ID 0001873

Problem

More of an annoyance than a problem to be honest, but every 24 hours I get the following errors logged against every host in my Proxmox cluster.

Description ‘Update Package Database’

If you drill down into that error, you will see.

TASK ERROR: command ‘apt-get update’ failed: exit code 100

Solution : Update Package Database

This happens because (by default) the Proxmox VE install comes with the enterprise update repositories enabled, and you probably don’t have an Enterprise subscription. It’s a pretty easy fix, you just need to disable the Enterprise repositories, and enable the free (No subscription) repository.

Select the host you wish to change, Updates > Repositories > Locate the enterprise Repository and select it > Disable.

Here I have a second Enterprise repository so I’ve also disabled that > Add > Change the repository to ‘No Subscription‘ > Add.

This is what it should look like, Note: Green tick and ‘You get updates for Proxmox VE‘.

Now go to the updated tab > Refresh > Task should complete without error.

Repeat the process on your other Proxmox VE hosts.

Related Articles, References, Credits, or External Links

NA

Proxmox Windows Drive Missing

Proxmox Windows Drive Missing  KB ID 0001871

Problem

When attempting to deploy a Windows VM, in this case Server 2022, you do not see the local storage.

     

Solution

I’ve been in this situation a hundred times in the past, (usually on physical servers). The problem is simply Windows does not have the driver for the storage controller. There two ways you can approach the problem,

Option 1: Proxmox Windows Drive Missing

The simplest ‘fix’ is simply to redeploy the VM with a bus device type of IDE.

Option 2 : Proxmox Windows Drive Missing

The second option is to have an iso with the VirtIO driver on it, and Proxmox will present it for you is you use the following option. This will require you to have downloaded the drivers on an ISO file and have that file ready to present to the VM (in addition  to the Windows setup .ISO).

Then at the problem screen select ‘Load Drivers‘.

Browse.

Next > Follow the rest of the install procedure.

NOTE: Before I start getting emails! Yes you can also add the drivers to the Windows install media, this is a straight forward procedure using DISM and you can find instructions here.

Related Articles, References, Credits, or External Links

NA

Proxmox You Do Not Have a Valid Subscription

You Do Not Have a Valid Subscription KB ID 0001870

Problem

I’m only just getting comfortable with Proxmox, whilst building a three node cluster recently I was pestered with this ‘nag’ dialog.

You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.

Solution : You Do Not Have a Valid Subscription

I’m using this because it’s free, Even the community subscription has a fee (110 euros a socket?). To avoid a subscription and remove the nag dialog. Do the following.

SSH into the Proxmox host (or if you’re running it within VMware) open a console screen and logon as root.

Issue the following commands.

[box]

cd /usr/share/javascript/proxmox-widget-toolkit
cp proxmoxlib.js proxmoxlib.js.bak
nano proxmoxlib.js

[/box]

The nano editor will open, Press CTRL+W (to search) search for  locate checked_command > then directly below that line add the following text.

[box]

orig_cmd();
return;

[/box]

Exit (CTRL+X) then press Y to save the changes, and finally {Enter} to save the file with the same name.

Then issue the following command.

[box]

systemctl restart pveproxy.service

[/box]

IMPORTANT: At this point you will need to restart the browser connection you your Proxmox host, or the error will persist.

Repeat for your remaining Proxmox hosts.

Related Articles, References, Credits, or External Links

NA

Proxmox on VMware

Proxmox on VMware KB ID 0001867

Problem

In the wake of Broadcom doing its best to strangle VMware and its discontinuation of free ESX. I thought I’d look at the free alternatives. Previously I looked at Nutanix (and was not over enamoured.) So the next option is Proxmox.

Proxmox Virtual Environment (Proxmox VE) is a robust open-source server virtualisation platform that merges two cutting-edge virtualisation technologies Linux Containers (LXC) and Kernel-based Virtual Machine (KVM).

Installing it and getting to the management console is an absolute breeze.

Solution : Proxmox on VMware

Before you start, (as with most nested virtualisation products) you will need to make some adjustments to the security on the vSwich(es) that the VM will run on and change the three security options to ‘accept‘.

Download the iso file for Proxmox VE, and upload it onto one of your VMware Datastores, then create a new VM.

Give the VM a sensible Name > Next > Select the host (or cluster) to deploy the VM into > Next > Select storage with enough free space (Note: I’m going to use 500GB but you can deploy with as little as 16GB > Next > Next.

OS Family = Linux > Guest OS Version = Debian GNU Linux 12 (64 bit) > Next > CPU (I’m using 16 but you can use as low as 2) > Tick ” Expose hardware assisted virtualisation to the guest OS‘ > Scroll down > Memory (I’m using 64GB but you can go down to 16GB) > Scroll Down > Hard Disk (I’m using 500GB but you can go down to 16GB)  > Scroll Down >  Select the correct Port Group >  Set the CD/DVD image to the iso you uploaded earlier > Tick ‘Connect at Power On‘ > Next > Finish.

Power on the VM, and connect to its console.

Select “Install Proxmox VE (Graphical)” > Enter > At the EULA > I Accept > Ensure the disk information is correct > Next.

Set time zone and Keyboard > Next > Set the new root password and email address > Next > Set the hostname and IP address details > Next > Install > Proxmox will install and reboot.

Connect to the console via https://{ip-address}:8006 > Enter the root credentials you set earlier > Login.

And you are now at the management portal.

 

Related Articles, References, Credits, or External Links

Proxmox Creating HA Custers

Proxmox You Do Not Have a Valid Subscription 

Proxmox Update Package Database Error

Proxmox Windows Drive Missing