[libvirt-users] Building virt-top to SLES 11 SP3
by cjlove@san.rr.com
Hi all,
I was curious whether anyone has successfully built virt-top (version 1.0.8) on SUSE SLES11 SP3. SUSE's ocaml support is rather limited, so I've built ocaml 4.00.1 from source and installed the necessary dependencies using Opam.
I'm still running into a compile error on virt_top.ml, line 697:
Error: This expression has type int -> D.typed_param list array
but an expression was expected of type
(string * D.typed_param_value) list array
As a frame of reference I was able to build virt-top 1.0.8 from source on a Fedora Core 20 box with the necessary ocaml -devel RPMs installed (also ocaml 4.00.1), so I don't know if I'm running into other dependency issues or something else. The ocaml-libvirt package version 0.6.1.2 compiles successfully, which suggests that SLES 11 SP3 has a sufficient version of libvirt.
Thanks in advance,
Chris
10 years, 3 months
[libvirt-users] Remote connection. Get URI
by Pavel Khrulev
Hello. I have an app (virt-manager) for remote connection to server where libvirtd is running.
When I make a new connection with uri (qemu+tcp://paul@172.16.111.20/system) I want to know username (paul here) on the side of server. But an object virConnectPtr has URI (qemu:///system ) on the remote server. Why and how I can know username on the server's side?
10 years, 3 months
[libvirt-users] NetworkManager and bridged networking
by Gene Czarcinski
Adam Williamson (adamw) has done a fine job at determining how to get
bridged networking working with NetworkManager:
https://www.happyassassin.net/2014/07/23/bridged-networking-for-libvirt-w...
According to Adam, he did the work on Fedora 21 whereas I did it on
Fedora 20. the undesirable features (problems) I found may be corrected
on F21 but I believe that they have not been fixed.
While Adam's procedure for creating a bridge definition for
NetworkManager using the Gnome or nm-connection-editor are basically
correct. However, The virt-manager & libvirt do not "like" the default
names. [*not a show stopper but it should be fixed*] Instead, the the
bridge definition, use "br0" for the connection name and the device
name. For the "slave" definition (the real physical NIC), use the
<physical_device_name> such as p33p1 or p4p1 or em0 or whatever. I then
rebooted the host to make sure everything was clean and the netowrk came
up fine on br0.
Then, using virt-manager, I took an existing VM, deleted the virtual
NIC, added a new virtual NIC using br0. After booting up the VM, you
need to edit its network configuration to delete the existing definition
and add a new one pointing to the new virtual NIC.
This works!!! And on Fedora 20 ... oops, not quite Fedora 20. This was
done on a Fedora 20 host which as the updates from fedora-virt-preview
applied. I still have a system without the preview updates so I will go
back and see if it works or it needs the preview updates.
Gene
10 years, 3 months
[libvirt-users] vlan tags filtered in linux bridge interfaces?
by Dennis Jacobfeuerborn
Hi,
I've set up a virtual machine and plugged it into a bridge on the host.
When i configure an ip for eth0 in the guest i can ping other machines
fine but when I add an interface eth0.10 in the guest and add an ip
pings using this interface do not work.
When using tcpdump in vnet0 on the host I can see the icmp packets when
I ping using eth0 in the guest but not when I use the eth0.10 interface.
Do tagged packets get filtered by libvirt and can this be disabled so
that packets just get forwarded without such filtering?
Regards,
Dennis
10 years, 3 months
[libvirt-users] virt-sandbox-service
by Gene Czarcinski
Is there any documentation/tutorial that explains how to use
virt-sandbox-service?
After looking at some writeups about virt-sandbox-service, this looks
like a good tool for something I need to do. But, following the
"examples" I cannot get anything to work correctly.
With a simple xfce install with httpd, lighttpd, and libvirt-sandbox
installed, I tried:
1. virt-sandbox-service create -C -u lighttpd.service webserver1
which produced a python traceback??
2. virt-sandbox-service create -C -u httpd.service webserver2
Which appeared to work correctly but when I tried:
virt-sandbox-service start webserver2
I got an error message saying that "start" was not valid???
3. On another system with lighttpd and httpd already installed and able
to run, I updated libvirt and friends to the preview version. My virtual
systems seem to run OK. I then installed libvirt-sandbox and tried:
virt-sandbox-service create -C -u httpd.service tstserver
which got some error messages about sockets.
I assume that this stuff has to work for someone.
HELP!
Gene
10 years, 3 months
[libvirt-users] virsh snapshot
by Adam King
Hi,
I had a 'domain' called APP03. I was performing auto snapshots each night using /usr/bin/virsh snapshot-create APP03 .
I then wanted the domain to be called APP01 for clarity's sake, so I did virsh dumpxml APP03 > APP03.xml, edited the name to APP01 and changed the ID. I then did virsh define APP03.xml to get APP01.
I have now realised that the qcow2 images are huge (1.1TB image but 80G inside the virtual machine), I am assuming this is the snapshots tagged onto the virtual hard disk?
How do I reduce the size of those back to something realistic? I've removed old snapshots from APP03 using virsh snapshot-delete APP03 '<snapshotidnumber>
Hope this makes sense
10 years, 3 months
[libvirt-users] Reboot, halt, poweroff called inside an lxc domain
by Michal Witanowski
Hi all,
Is there any possibility (using libvirt C API or whatever else) to
"propagate" shutdown events (reboot, halt, power off) to a host? The API
seems to lack this functionality - there exists function
virConnectDomainEventRegisterAny, but the virDomainEventStoppedDetailType
enum does not distinguish between these 3 different situations.
Moreover, while rebooting a machine, an additional argument can be passed to
reboot() syscall, which will be used by bootloader during the startup.
Ideally, when calling e.g. "reboot recovery" inside an lxc container I'd
like to be informed (inside host) that "reboot" was called with "recovery"
as additional argument, so I can take appropriate actions.
Thanks in advance.
Best regards,
Michal
10 years, 3 months
[libvirt-users] failed to initialize directx in w7
by arnaud gaboury
I am not sure this issue is tight to Red Hat qxl GPU driver, but I
can't initialize directxX on a guest windows 7.
Trying to start a game, I get the error message :
Failed to initialize directX
Of course, directX is installed on the w7 guest, and properly.
The dxdiag command, a directx diagnostic tool, does not show any error.
Some summary under the video :
Driver name : Red Hat QXL GPU
Processor type : SeaBIOS VBEC(C) 2011
No Directx functionality are available (Direct Draw, Direct3D, AGP texture)
I am not a windows expert, but I would like to know if DirectX is
compatible with QXL driver.
If not, what is the process to be able to run directX on the windows
guest ? If both are compatible, what did I miss ? The VM is working
perfectly with virtio & qxl.
Please find below my virt-install command:
-----------------------------
virt-install --connect qemu:///system --name=tintinWinoz --memory 4096
--cpu host-model-only --os-variant=win7 --disk /myVM/tintin --boot
cdrom,hd --virt-type kvm --graphics spice --controller
scsi,model=virtio-scsi --cdrom /dev/cdrom --disk
/drawer/myIso/w7.iso,device=
cdrom
-----------------------------------------------------
I thereafter installed manually from the w7 guest virtio & qxl drivers.
Thank you for advises.
10 years, 3 months
[libvirt-users] Libvirt Java API to get CPU usage of VM (KVM)
by Restituto Marcus Arevalo
Hi all libvirt-users,
Is there a counterpart on Java of the function virDomainGetCPUStats that is based on C API? Because I am trying to create a program based on
java to get the CPU usage of a Guest/Domain/VM in KVM using the Libvirt
Java API.
Honestly, I am having a hard time in starting my program. I have no
idea where to start. I mean, what functions do I need to get the CPU
usage of the guest/domain in KVM? I know there are other options but I
am avoiding in connecting to the VM through SSH and get the CPU usage.
To make things easier to understand, I need to know how the Virtual
Machine Manager in Linux is able to output a graph of the CPU usage of
EACH VM.
I really need help. I have no idea where to start. Any suggestions
would be much appreciated. I'll try to post a screenshot of the graph
later.
regards,
Marco
10 years, 3 months