[libvirt-users] qemu-attach fails
by DS DS
Hi,
I am using "qemu-attach" in virsh to attach to an existing qemu process so
I can send monitor commands to it.
the VM is started using
qemu-kvm -net none -hda ./out.img -m 4G -nographic
The VM gets started and the OS boots fine.
Then, I start virsh and do a "qemu-attach 44273" which is the PID of the
qemu process.
virsh # qemu-attach 44273
error: Failed to attach to pid 44273
error: Cannot check QEMU binary qemu-kvm: No such file or directory
qemu-kvm is in /usr/libexec. There is a symlink to it from /usr/bin and
/bin.
The virsh command "create" (for a different VM) works fine.
What could be missing? Are there any debug/log messages/config files that
can shed some light.
Thanks.
7 years, 8 months
[libvirt-users] Help needed on a gentoo system after update to libvirtd 3.1.0
by Marko Weber | 8000
(sorry, dont know how i put my posting into an reply to an other issue
before,
new posting to sepearte it, big sorry)
Hello list,
i updated on a gentoo system from libvirtd 2.5 to 3.1.0
Now my windows machines cant access internet.
I did a virbr1 with virt-manager and route it to the eth0, works fine on
2.5
Hello list,
i updated on a gentoo system from libvirtd 2.5 to 3.1.0
Now my windows machines cant access internet.
I did a virbr1 with virt-manager and route it to the eth0, works fine on
2.5
on install i get this:
Important: The openrc libvirtd init script is now broken up into two
separate services: libvirtd, that solely handles the daemon, and
libvirt-guests, that takes care of clients during shutdown/restart of
the
host. In order to reenable client handling, edit
/etc/conf.d/libvirt-guests
and enable the service and start it:
$ rc-update add libvirt-guests
$ service libvirt-guests start
For the basic networking support (bridged and routed networks) you don't
need any extra software. For more complex network modes including but
not
limited to NATed network, you can enable the 'virt-network' USE flag. It
will pull in required runtime dependencies
If you are using dnsmasq on your system, you will have to configure
/etc/dnsmasq.conf to enable the following settings:
bind-interfaces
interface or except-interface
Otherwise you might have issues with your existing DNS server.
For openrc users:
Please use /etc/conf.d/libvirtd to control the '--listen'
parameter for
libvirtd.
Use /etc/init.d/libvirt-guests to manage clients on
restart/shutdown of
the host. The default configuration will suspend and resume
running kvm
guests with 'managedsave'. This behavior can be changed under
/etc/conf.d/libvirt-guests
virt-manager starts fine and shows my vm´s. i dont touched /etc/dnsmasq
cause i dont used it. so left untouched.
yes, i added libvirt-guests with rc-update
the virbr1 has 192.168.18.1 as address, and is reachable via ping from
vm guest.
but it cant resolve hostnames and cant ping ip´s outside the
virtualisation host.
anyone knows this effect after update?
do i have to change some more things?
or is this a bug?
any help and hints are welcome
thank you
marko weber
on install i get this:
Important: The openrc libvirtd init script is now broken up into two
separate services: libvirtd, that solely handles the daemon, and
libvirt-guests, that takes care of clients during shutdown/restart of
the
host. In order to reenable client handling, edit
/etc/conf.d/libvirt-guests
and enable the service and start it:
$ rc-update add libvirt-guests
$ service libvirt-guests start
For the basic networking support (bridged and routed networks) you don't
need any extra software. For more complex network modes including but
not
limited to NATed network, you can enable the 'virt-network' USE flag. It
will pull in required runtime dependencies
If you are using dnsmasq on your system, you will have to configure
/etc/dnsmasq.conf to enable the following settings:
bind-interfaces
interface or except-interface
Otherwise you might have issues with your existing DNS server.
For openrc users:
Please use /etc/conf.d/libvirtd to control the '--listen'
parameter for
libvirtd.
Use /etc/init.d/libvirt-guests to manage clients on
restart/shutdown of
the host. The default configuration will suspend and resume
running kvm
guests with 'managedsave'. This behavior can be changed under
/etc/conf.d/libvirt-guests
virt-manager starts fine and shows my vm´s. i dont touched /etc/dnsmasq
cause i dont used it. so left untouched.
yes, i added libvirt-guests with rc-update
the virbr1 has 192.168.18.1 as address, and is reachable via ping from
vm guest.
but it cant resolve hostnames and cant ping ip´s outside the
virtualisation host.
anyone knows this effect after update?
do i have to change some more things?
or is this a bug?
any help and hints are welcome
thank you
marko weber
--
zbfmail - Mittendrin statt nur Datei!
OpenDKIM, SPF, DSPAM, Greylisting, POSTSCREEN, AMAVIS, Mailgateways
Mailfiltering, SMTP Service, Spam Abwehr, MX-Backup, Mailserver Backup
Redundante Mailgateways, HA Mailserver, Secure Mailserver
7 years, 8 months
[libvirt-users] events dispatching in synchronous mode
by Matczak, KrzysztofX
Hi
Is there any way to get events dispatching in synchronous mode ?
I mean I'm running my own events polling loop which calls virEventRunDefaultImpl each turn . I'd expect to get my callback function called synchronously , but it's not . Seems that's async call.
Maybe it's my general misunderstanding and I shouldn't use virEventRunDefaultImpl for that ?
Thanks in advance for any guidance
Krzysztof
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
7 years, 8 months
[libvirt-users] Cache / IO Setting for qcow2 disks with prealloc=metadata?
by Marko Weber | 8000
Hello,
i´ve done 2 vm with qcow2 disks and created them with qemu-img with
prealloc=metadata.
Virt-Manager shows me under the performance settings for the Storage,
Cache= Hypervisor Default IO= Hypervisor Default
Is this the best setting? Or do i choose "native" IO on
prealloc=metadata created disks? And do i have to change Cache too?
The Virtualisation Host is gento linux, the qcow2 files are stored on a
xfs partition, qemu is build with "xfs" Flag.
thanks for hints and tipps
marko
--
zbfmail - Mittendrin statt nur Datei!
OpenDKIM, SPF, DSPAM, Greylisting, POSTSCREEN, AMAVIS, Mailgateways
Mailfiltering, SMTP Service, Spam Abwehr, MX-Backup, Mailserver Backup
Redundante Mailgateways, HA Mailserver, Secure Mailserver
7 years, 8 months
Re: [libvirt-users] Compile DLL for Windows
by Kartik Vaishnav
I would like to know if there is a proper documentation for compiling
libvirt for Windows.
This is in regard to the latest versions of libvirt.
Also, most answers are outdated and the scripts by Matthias Bolte on github
don't use the latest versions and patches for libvirt.
Regards,
Kartik Vaishnav
7 years, 8 months
[libvirt-users] Insert/eject USB
by Leroy Tennison
Is it possible to insert and eject a USB image in kvm/qemu/libvirt or
are the only dynamically changeable devices cdroms and floppies? I've
searched the web and I'm either not looking for the right terms or it's
obscure. I should mention that I'm not talking about a connecting a
physical host USB drive to a guest image, I want to be able to use a
qcow image as the source.
The context is that I want to be able to revert a VM image back to a
prior state (internal snapshot) when testing but be able to retain some
data without having to go to the effort of transferring it across the
network. I've excluded cdroms as an option because they are read-only
(correct me if I'm wrong on this) and require some effort to (re)build.
Floppy drives appear to be limited to 1.44M which makes sense but is
very limiting. Network mounts (NFS, Samba, etc.) require a server
supporting the selected style of filesystem sharing over the network.
I'm not sure I want to find out what happens to filesystem passthrough
when a revert is done (unless someone knows and it's beneficial).
I tried creating a partition associated with the VM but not
auto-mounted, even if I unmounted the partition before reverting its
state was rolled back. I possibly could get exotic here by setting the
immutable attribute after unmounting the partition but, again, I'm
hoping for something a little simpler and more straightforward. If
there's a workable option I haven't considered I'm open to that.
Thanks for any input.
7 years, 8 months
[libvirt-users] domain reinitalization detection
by Matczak, KrzysztofX
Hello
I'm trying to find out how to detect if domain was destroyed and brought up between two time moments, let's call it reads.
So far the best approach I could find is to compare domain ID from previous and current read.
And this is my first question : is that reliable solution ? Or do you know any better ?
And related question is how to resolve virDomainPtr into domain ID ?
The only verified way of getting domain ID I know is to memorize it's UUID, then call virConnectListDomains , then iterate over all returned domain IDs and resolve each one's pointer using virDomainLookupByID , then get UUID by virDomainGetUUIDString get domain ID of matching UUID's .
It seems too complex and I expect noticeable performance overhead, so looking for something lighter.
I'm trying to get current domain ID using API function :
char * virDomainGetMetadata (virDomainPtr domain, int type, const char * uri, unsigned int flags)
I'm not sure it's relevant function, since domain ID is contained not in metadata subsection but in opening <domain> markup.
In fact I wasn't even able to get any data using that function call since I don't know how to construct valid URI. Do you know any doc or examples explaining that ?
Any help appreciated
Krzysztof
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
7 years, 8 months
[libvirt-users] Bluetooth Device Support
by Max Ehrlich
Hi,
I want to create a virtual hci device on my virtual machine. I have seen
that qemu has options supporting this
https://qemu.weilnetz.de/doc/qemu-doc.html#Bluetooth_0028R_0029-options
and
https://qemu.weilnetz.de/doc/qemu-doc.html#pcsys_005fusb
Is there any support for these options in libvirt? I was not able to find
anything in documentation so I added the qemu command line xml as follows
<qemu:commandline>
<qemu:arg value='-usbdevice'/>
<qemu:arg value='bt:hci'/>
<qemu:arg value='-bt'/>
<qemu:arg value='hci,host'/>
</qemu:commandline>
but when I try to run my machine from virt-manager i get the following
error:
Error starting domain: internal error: process exited while connecting to
monitor: 2017-02-28T21:25:51.735987Z qemu-system-x86_64: -device
ich9-usb-ehci1,id=usb,bus=pcie.0,addr=0x1d.0x7: PCI: slot 29 function 7 not
available for ich9-usb-ehci1, in use by ich9-usb-ehci1
this error does not appear if I remove the commandline xml nodes
Does anyone have any guidance for troubleshooting this?
If it helps at all, virsh -v gives 2.1.0, virt-manager about page lists
1.3.2 and qemu-system-x86_64 --help gives 2.6.1 I am running Ubuntu 16.10.
thanks,
Max Ehrlich
7 years, 8 months