Missing command line tools

Feb 27, 2019
6
1
43
59
Vienna
Hello All,
I often found solutions for my 'proxmox' problems in searching this forum and perhaps doing some googling. But now I didn't find a suitable solution for my current problem.

I wanted to test openwrt as a virtual machine by starting an x86 image I downloaded from the openwrt download site. The first step should be to import the image into the proxmox filesystem. So I thought that 'qm importdisk <vmid> <source> <storage> [OPTIONS]' would be the command that will do the job.
Then I found out, that this command isn't known on my ProxmoxVE Node.... ?
And I searched the wiki for other command line tools and tested ....


# for prog in qm vzps pvectl vzctl vztop vzlist user_beancounters vzdump vzrestore qmrestore pvecm
> do
> which $prog
> done
/usr/bin/vzdump

/usr/bin/pvecm

which shows me, that the commands 'qm, vzps, pvectl, vzctl, vztop, vzlist, user_beancounters, vzrestore and qmrestore' are missing! ???
My guess was to install qemu-utils where I expected those tools to find, but this would have the consequence of uninstalling my proxmox environment...

Now I need help to figure out, how I can get this tools back to my node. I basically installed Proxmox VE 5.X on an existing Debian Stretch, because I wanted to configure my harddisks as raid1 pairs. Later I updated to Proxmox 6.X and Debian Buster with no problem following the instructions in the wiki.

I didn't know, where I lost this tools. Can someone give a hint on solving my problem, please?

regards
Thomas
 
Hi Dietmar,
thanks for your reply.
This is the command line output:

apt install proxmox-ve
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
proxmox-ve ist schon die neueste Version (6.0-2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

Seams like nothing happened....
 
So packages seems to be installed correctly.

Please note that newer version do not have tools like vzctl (we do not use openvz anymore).

What is the output of

# pveversion -v
 
root@zarniwoop:/etc/apt/sources.list.d# cat debian.list pve-enterprise.list

#Home-Config (my Debian-Mirror @ Home) - is up2date by ftpsync, four times a day

deb http://debian-security.beteigeuze.home/ buster/updates main contrib # non-free
deb http://debian.beteigeuze.home/ buster main contrib # non-free
deb http://debian.beteigeuze.home/ buster-updates main contrib # non-free

pve-enterprise.list
deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

if this would be the next question ... ;)
 
pveversion -v
proxmox-ve: 6.0-2 (running kernel: 5.0.21-1-pve)
pve-manager: 6.0-6 (running version: 6.0-6/c71f879f)
pve-kernel-5.0: 6.0-7
pve-kernel-helper: 6.0-7
pve-kernel-4.15: 5.4-6
pve-kernel-5.0.21-1-pve: 5.0.21-2
pve-kernel-5.0.15-1-pve: 5.0.15-1
pve-kernel-4.15.18-18-pve: 4.15.18-44
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.2-pve2
criu: 3.11-3
glusterfs-client: 5.5-3
libjs-extjs: 6.0.1-10
libknet1: 1.11-pve1
libpve-access-control: 6.0-2
libpve-apiclient-perl: 3.0-2
libpve-common-perl: 6.0-4
libpve-guest-common-perl: 3.0-1
libpve-http-server-perl: 3.0-2
libpve-storage-perl: 6.0-7
libqb0: 1.0.5-1
lvm2: 2.03.02-pve3
lxc-pve: 3.1.0-64
lxcfs: 3.0.3-pve60
novnc-pve: 1.0.0-60
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.0-7
pve-cluster: 6.0-7
pve-container: 3.0-5
pve-docs: 6.0-4
pve-edk2-firmware: 2.20190614-1
pve-firewall: 4.0-7
pve-firmware: 3.0-2
pve-ha-manager: 3.0-2
pve-i18n: 2.0-2
pve-qemu-kvm: 4.0.0-5
pve-xtermjs: 3.13.2-1
qemu-server: 6.0-7
smartmontools: 7.0-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.1-pve2
 
pveversion -v
proxmox-ve: 6.0-2 (running kernel: 5.0.21-1-pve)

Then as dietmar said above.

Your running Proxmox 6.x which does not support OpenVZ, so most of them commands are no longer valid, I imagine the guide your using is probably aimed at Proxmox 4.x or 5.x
 
@sg90
taken from Appendix A: Command Line Interface (https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_install_proxmox_ve_on_debian)
version 6.0


for prog in pvesm pvesubscription pveperf pveceph pvenode pvesh qm qmrestore pct pveam pvecm pvesr pveum vzdump ha-manager
> do
> which $prog
> done
/usr/bin/pvesubscription
/usr/bin/pveperf
/usr/bin/pveceph
/usr/bin/pvenode
/usr/bin/pvesh
/usr/bin/pveam
/usr/bin/pvecm
/usr/bin/pvesr
/usr/bin/vzdump


I still miss
'pvesm, qm, qmrestore, pct, pveum, ha-manager' and I think this tools should be installed...

for prog in pvesm qmrestore pveum ha-manager
> do
> apt-file search $prog
> done

shows no output ...

seams like there is no package for that tools listed in my repositories... ? and I did an
'apt-file update' before

regards Thomas
 
@sg90
taken from Appendix A: Command Line Interface (https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_install_proxmox_ve_on_debian)
version 6.0


for prog in pvesm pvesubscription pveperf pveceph pvenode pvesh qm qmrestore pct pveam pvecm pvesr pveum vzdump ha-manager
> do
> which $prog
> done
/usr/bin/pvesubscription
/usr/bin/pveperf
/usr/bin/pveceph
/usr/bin/pvenode
/usr/bin/pvesh
/usr/bin/pveam
/usr/bin/pvecm
/usr/bin/pvesr
/usr/bin/vzdump


I still miss 'pvesm, qm, qmrestore, pct, pveum, ha-manager' and I think this tools should be installed...

for prog in pvesm qmrestore pveum ha-manager
> do
> apt-file search $prog
> done

shows no output ...

seams like there is no package for that tools listed in my repositories... ? and I did an
'apt-file update' before

regards Thomas

On my 6.x install qm e.t.c are stored in /usr/sbin/
 
Sorry for the effort guys and shame on me :oops:

what a stupid noob mistake: su without a dash doesn't act like a new login and so /usr/sbin was not part of my $PATH-variable....
@sg90: -> /usr/sbin was the hint (I looked for with midnight commander and found the commands ...)


thanks for your help
 
  • Like
Reactions: sg90

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!