libguestfs-tools breaks Proxmox 4.4

eddyah

New Member
Dec 28, 2016
2
0
1
36
Hi All,

I wanted to mount a qcow2 image using the 'guestmount' command and I ran the following:
apt-get install libguestfs-tools --fix-missing

However, I've found this has broken something and I can't start VMs or containers anymore:

qemu-system-x86_64: -id: invalid option
TASK ERROR: start failed: command '/usr/bin/kvm -id 1000 -chardev 'socket,id=qmp,path=/var/run/qemu-server/1000.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/1000.pid -daemonize -smbios ' ...blah'' failed: exit code 1

TASK ERROR: command 'lxc-start -n 1011' failed: exit code 1
lxc-start: tools/lxc_start.c: main: 258 Failed to load rcfile


Any suggestions on a fix?
 
hi eddyah,
As I would like to have libguestfs-tools available as well could you please resopond if:
- after reinstalling proxmox-ve to fix, were the guest libguestfs-tools then available/usable/operational?
- did you found other broken things during time after?
Otherwise I will step back form doing own install on my pve hosts.
 
Thank you for quick reply.
Out of curiousity: May I ask if it can be made 'compatible' or what will/is the root cause for being 'incompatible'. PVE is using no special formats for the Disks.....
 
Out of curiousity: May I ask if it can be made 'compatible' or what will/is the root cause for being 'incompatible'. PVE is using no special formats for the Disks.....

They depend on 'libvirt', and we do not use libvirt at all.
 
Thank you. Sorry for asking again and if that's 'obvious' (but I am not an Linux 'expert').
If you don't use libvirt at all, why can't it be installed side by side with proxmox and why does it conflict then?
I understand that I might not be able to manage Proxmox VMs with libvirt/libguestfs-tools. BUT i should be able to work with the VM-Disk-Files that libguestfs-tools support (just have to know where they are located in Proxmox host filesystem)
Or where is my 'missing the obvious'?
 
I know libvirt can't handle pve managed VMs.
BUT libguestfs-tools should be able to handle the VMs disk-files (different formats), as PEV isn't using anything PVE-specific for this.
And libguestfs-tools is exactly for this kind of use case (among others that 'might' not work).
But e.g. sparsifying qcow files etc _should_ work, as this is not pve specific.
Or am I missing something?!
 
Can you explain what you like to do with libvirt?

There is no usecase in PVE

Image manipulation is made with qemu-img.
libvirt also use this tool.
 
I have to repeat: I DON'T want to use libvirt.
I know, there is no use case for libvirt with PVE.
libvirt came into discussion, because you said it is a dependency for libguestfs-tools (an this is all about using libguestfs-tools).
You mentioned libvirt is the culprit why libguestfs-tools is conflicting with PVE, but i doubth this, because if PVE isn't using libvirt at all, why should they then 'conflict'?

I KNOW about image-handling by qemu-img.
But again: libguestfs-tools is offering additonal/extended image manipulation/rescue/.... functionality not offered by qemu-img (I would be happy, if you can prove me wrong).
It's all about libguestfs-tools NOT about libvirt.
 
libguestfs-tools dependence on qemu-system-x86 and this conflict with pve-qemu.
 
so qemu-system-x86 and pve-qemu can't coexist? (and can't be made coexist by some linking trickey?)
If so, then that's to accept.
I just wanted to have the tools on the pve hosts rathern than have to have them on separate system and then have to copy over the vm disk files in case I need to work with them by using libguestfs-tools.
Thank you for looking into this and your continued support. Verry well appreciated.
 
Pls file an low priority enhancement request (e.g. evaluate possible libguestfs for Proxmox VE) on https://bugzilla.proxmox.com

This needs to be analysed in full detail (use case, security isse, packageing, etc.).