installing qemu-utils in 4.4 removes most of pve.

mathx

Renowned Member
Jan 15, 2014
172
3
83
I accidentally didn't pay enough attention trying to get qemu-utils on the server.

TL;DR: DONT INSTALL QEMU-UTILS in 4.4

I installed pve from proxmox-ve_4.4-eb2d6f1e-2.iso

# pveversion
pve-manager/4.4-5/c43015a5 (running kernel: 4.4.19-1-pve)

# apt-get install qemu-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libiscsi2 sharutils
Suggested packages:
debootstrap
The following packages will be REMOVED:
proxmox-ve pve-container pve-ha-manager pve-manager pve-qemu-kvm qemu-server spiceterm
The following NEW packages will be installed:
libiscsi2 qemu-utils sharutils
0 upgraded, 3 newly installed, 7 to remove and 0 not upgraded.

[etc... it removed those packages. ]

Restoring the missing packages from the official repo doesnt work either.

# apt-get install proxmox-ve pve-container pve-ha-manager pve-manager pve-qemu-kvm qemu-server spiceterm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libiscsi2 sharutils
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
pve-kernel-4.4.35-2-pve
The following packages will be REMOVED:
qemu-utils
The following NEW packages will be installed:
proxmox-ve pve-container pve-ha-manager pve-kernel-4.4.35-2-pve pve-manager pve-qemu-kvm qemu-server spiceterm
0 upgraded, 8 newly installed, 1 to remove and 22 not upgraded.
Need to get 54.9 MB of archives.
After this operation, 20.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
pve-kernel-4.4.35-2-pve pve-qemu-kvm pve-ha-manager qemu-server spiceterm pve-container pve-manager proxmox-ve
Install these packages without verification? [y/N] y
Get:1 http://download.proxmox.com/debian/ jessie/pve-no-subscription pve-kernel-4.4.35-2-pve amd64 4.4.35-78 [44.2 MB]
Get:2 http://download.proxmox.com/debian/ jessie/pve-no-subscription pve-qemu-kvm amd64 2.7.1-1 [5471 kB]
Get:3 http://download.proxmox.com/debian/ jessie/pve-no-subscription pve-ha-manager amd64 1.0-38 [50.9 kB]
Get:4 http://download.proxmox.com/debian/ jessie/pve-no-subscription qemu-server amd64 4.0-102 [140 kB]
Get:5 http://download.proxmox.com/debian/ jessie/pve-no-subscription spiceterm amd64 2.0-1 [49.1 kB]
Get:6 http://download.proxmox.com/debian/ jessie/pve-no-subscription pve-container all 1.0-90 [89.1 kB]
Get:7 http://download.proxmox.com/debian/ jessie/pve-no-subscription pve-manager amd64 4.4-5 [4915 kB]
Get:8 http://download.proxmox.com/debian/ jessie/pve-no-subscription proxmox-ve all 4.4-78 [6048 B]
Fetched 54.9 MB in 3s (14.7 MB/s)
Preconfiguring packages ...
(Reading database ... 37569 files and directories currently installed.)
Removing qemu-utils (1:2.1+dfsg-12+deb8u6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Selecting previously unselected package pve-kernel-4.4.35-2-pve.
(Reading database ... 37557 files and directories currently installed.)
Preparing to unpack .../pve-kernel-4.4.35-2-pve_4.4.35-78_amd64.deb ...
Unpacking pve-kernel-4.4.35-2-pve (4.4.35-78) ...
Selecting previously unselected package pve-qemu-kvm.
Preparing to unpack .../pve-qemu-kvm_2.7.1-1_amd64.deb ...
Unpacking pve-qemu-kvm (2.7.1-1) ...
Selecting previously unselected package pve-ha-manager.
Preparing to unpack .../pve-ha-manager_1.0-38_amd64.deb ...
Unpacking pve-ha-manager (1.0-38) ...
Selecting previously unselected package qemu-server.
Preparing to unpack .../qemu-server_4.0-102_amd64.deb ...
Unpacking qemu-server (4.0-102) ...
Selecting previously unselected package spiceterm.
Preparing to unpack .../spiceterm_2.0-1_amd64.deb ...
Unpacking spiceterm (2.0-1) ...
Selecting previously unselected package pve-container.
Preparing to unpack .../pve-container_1.0-90_all.deb ...
Unpacking pve-container (1.0-90) ...
Selecting previously unselected package pve-manager.
Preparing to unpack .../pve-manager_4.4-5_amd64.deb ...
Unpacking pve-manager (4.4-5) ...
Selecting previously unselected package proxmox-ve.
Preparing to unpack .../proxmox-ve_4.4-78_all.deb ...
Unpacking proxmox-ve (4.4-78) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up pve-kernel-4.4.35-2-pve (4.4.35-78) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.35-2-pve /boot/vmlinuz-4.4.35-2-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.35-2-pve /boot/vmlinuz-4.4.35-2-pve
update-initramfs: Generating /boot/initrd.img-4.4.35-2-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.35-2-pve /boot/vmlinuz-4.4.35-2-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.35-2-pve
Found initrd image: /boot/initrd.img-4.4.35-2-pve
/usr/sbin/grub-probe: error: unknown filesystem.
Found linux image: /boot/vmlinuz-4.4.19-1-pve
Found initrd image: /boot/initrd.img-4.4.19-1-pve
/usr/sbin/grub-probe: error: unknown filesystem.
Found memtest86+ image: /ROOT/pve-1@/boot/memtest86+.bin
Found memtest86+ multiboot image: /ROOT/pve-1@/boot/memtest86+_multiboot.bin
done
Setting up pve-qemu-kvm (2.7.1-1) ...
Setting up spiceterm (2.0-1) ...
Setting up qemu-server (4.0-102) ...
Setting up pve-ha-manager (1.0-38) ...
Setting up pve-container (1.0-90) ...
Setting up pve-manager (4.4-5) ...
Job for pvedaemon.service failed. See 'systemctl status pvedaemon.service' and 'journalctl -xn' for details.
dpkg: error processing package pve-manager (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of proxmox-ve:
proxmox-ve depends on pve-manager; however:
Package pve-manager is not configured yet.

dpkg: error processing package proxmox-ve (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pve-manager
proxmox-ve
W: Duplicate sources.list entry http://security.debian.org/ jessie/updates/main amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_jessie_updates_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/ jessie/updates/contrib amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_jessie_updates_contrib_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
E: Sub-process /usr/bin/dpkg returned an error code (1)

As for why:


# systemctl status pvedaemon.service
* pvedaemon.service - PVE API Daemon
Loaded: loaded (/lib/systemd/system/pvedaemon.service; enabled)
Active: active (running) (Result: exit-code) since Thu 2016-12-15 15:36:19 EST; 1 months 0 days ago
Process: 4411 ExecReload=/usr/bin/pvedaemon restart (code=exited, status=255)
Main PID: 3018 (pvedaemon)
CGroup: /system.slice/pvedaemon.service
|- 3018 pvedaemon
|-26466 pvedaemon worker
|-26854 pvedaemon worker
`-28490 pvedaemon worker

Jan 15 22:43:46 vespa pvedaemon[4411]: Compilation failed in require at /usr/share/perl5/PVE/API2/Cluster.pm line 15.
Jan 15 22:43:46 vespa pvedaemon[4411]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/Cluster.pm line 15.
Jan 15 22:43:46 vespa pvedaemon[4411]: Compilation failed in require at /usr/share/perl5/PVE/API2.pm line 13.
Jan 15 22:43:46 vespa pvedaemon[4411]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2.pm line 13.
Jan 15 22:43:46 vespa pvedaemon[4411]: Compilation failed in require at /usr/share/perl5/PVE/Service/pvedaemon.pm line 8.
Jan 15 22:43:46 vespa pvedaemon[4411]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Service/pvedaemon.pm line 8.
Jan 15 22:43:46 vespa pvedaemon[4411]: Compilation failed in require at /usr/bin/pvedaemon line 11.
Jan 15 22:43:46 vespa pvedaemon[4411]: BEGIN failed--compilation aborted at /usr/bin/pvedaemon line 11.
Jan 15 22:43:46 vespa systemd[1]: pvedaemon.service: control process exited, code=exited status=255
Jan 15 22:43:46 vespa systemd[1]: Reload failed for PVE API Daemon.

 
The tools provided by qemu-utils should be available by the pve-qemu-kvm package already. Is there anything you're missing?
 
Was trying to convert a qcow2, and accidentally followed old instructions that suggested installing qemu-utils - question is why can't I reinstall the removed packages now? I removed qemu-utils and reinstalled, but the failure as above.
 
Hi,
how looks your pve-package?

On my home-system I have following installed:
Code:
dpkg -l | egrep "pve|proxmox"
ii  cgmanager  0.39-pve1  amd64  Central cgroup manager daemon
ii  corosync-pve  2.4.0-1  amd64  Standards-based cluster framework (daemon and modules)
ii  dmeventd  2:1.02.93-pve3  amd64  Linux Kernel Device Mapper event daemon
ii  dmsetup  2:1.02.93-pve3  amd64  Linux Kernel Device Mapper userspace library
ii  drbdmanage-proxmox  1.0-1  all  DRBD distributed resource management utility
ii  grub-common  2.02-pve5  amd64  GRand Unified Bootloader (common files)
ii  grub-efi-amd64-bin  2.02-pve5  amd64  GRand Unified Bootloader, version 2 (EFI-AMD64 binaries)
ii  grub-efi-ia32-bin  2.02-pve5  amd64  GRand Unified Bootloader, version 2 (EFI-IA32 binaries)
ii  grub-pc  2.02-pve5  amd64  GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin  2.02-pve5  amd64  GRand Unified Bootloader, version 2 (PC/BIOS binaries)
ii  grub2-common  2.02-pve5  amd64  GRand Unified Bootloader (common files for version 2)
ii  libcgmanager0:amd64  0.39-pve1  amd64  Central cgroup manager daemon (client library)
ii  libcorosync4-pve  2.4.0-1  amd64  Standards-based cluster framework (libraries)
ii  libdevmapper-event1.02.1:amd64 2:1.02.93-pve3  amd64  Linux Kernel Device Mapper event support library
ii  libdevmapper1.02.1:amd64  2:1.02.93-pve3  amd64  Linux Kernel Device Mapper userspace library
ii  liblvm2app2.2:amd64  2.02.116-pve3  amd64  LVM2 application library
ii  liblvm2cmd2.02:amd64  2.02.116-pve3  amd64  LVM2 command library
ii  libnvpair1  0.6.5.8-pve13~bpo80  all  transitional package
ii  libnvpair1linux  0.6.5.8-pve13~bpo80  amd64  Solaris name-value library for Linux
ii  libpve-access-control  4.0-19  amd64  Proxmox VE access control library
ii  libpve-common-perl  4.0-85  all  Proxmox VE base library
ii  libpve-storage-perl  4.0-71  all  Proxmox VE storage management library
ii  libuutil1  0.6.5.8-pve13~bpo80  all  transitional package
ii  libuutil1linux  0.6.5.8-pve13~bpo80  amd64  Solaris userland utility library for Linux
ii  libzfs2  0.6.5.8-pve13~bpo80  all  transitional package
ii  libzfs2linux  0.6.5.8-pve13~bpo80  amd64  OpenZFS filesystem library for Linux
ii  libzpool2  0.6.5.8-pve13~bpo80  all  transitional package
ii  libzpool2linux  0.6.5.8-pve13~bpo80  amd64  OpenZFS pool library for Linux
ii  lvm2  2.02.116-pve3  amd64  Linux Logical Volume Manager
ii  lxc-pve  2.0.6-5  amd64  Linux containers usersapce tools
ii  lxcfs  2.0.5-pve2  amd64  LXC userspace filesystem
ii  novnc-pve  0.5-8  amd64  HTML5 VNC client
ii  proxmox-ve  4.4-77  all  The Proxmox Virtual Environment
ii  pve-cluster  4.0-48  amd64  Cluster Infrastructure for Proxmox Virtual Environment
ii  pve-container  1.0-90  all  Proxmox VE Container management tool
ii  pve-docs  4.4-1  all  Proxmox VE Documentation
ii  pve-firewall  2.0-33  amd64  Proxmox VE Firewall
ii  pve-firmware  1.1-10  all  Binary firmware code for the pve-kernel
ii  pve-ha-manager  1.0-38  amd64  Proxmox VE HA Manager
ii  pve-kernel-4.4.35-1-pve  4.4.35-77  amd64  The Proxmox PVE Kernel Image
rc  pve-kernel-4.4.6-1-pve  4.4.6-48  amd64  The Proxmox PVE Kernel Image
ii  pve-libspice-server1  0.12.8-1  amd64  SPICE remote display system server library
ii  pve-manager  4.4-5  amd64  The Proxmox Virtual Environment
ii  pve-qemu-kvm  2.7.0-10  amd64  Full virtualization on x86 hardware
ii  smartmontools  6.5+svn4324-1~pve80  amd64  control and monitor storage systems using S.M.A.R.T.
ii  spl  0.6.5.8-pve7~bpo80  amd64  Solaris Porting Layer user-space utilities for Linux
ii  tar  1.27.1+pve.3  amd64  GNU version of the tar archiving utility
ii  zfs-initramfs  0.6.5.8-pve13~bpo80  all  OpenZFS root filesystem capabilities for Linux - initramfs
ii  zfs-zed  0.6.5.8-pve13~bpo80  amd64  OpenZFS Event Daemon
ii  zfsutils  0.6.5.8-pve13~bpo80  all  transitional package
ii  zfsutils-linux  0.6.5.8-pve13~bpo80  amd64  command-line tools to manage OpenZFS filesystems
manual install all missing (or rc ) packages (except old kernels ;-) )

Udo
 

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!