[libvirt-users] ps/2 mouse cannot be removed from guest
by Hisao Taguchi
Hi,
I installed Solaris 11(x86_64) as a guest in Fedora 19 KVM host and it works well.
It seems that Solaris 11 can recognize only USB mouse but cannot recognize PS/2 mouse.
When a PS/2 mouse is attached to the solaris 11 guest, something conflict occured and the mouse pointer is not moving on the solaris desktop.
So, I tried to remove the PS/2 mouse from the guest, but I cannot remove it using virt manager.
The "remove" button is grayed out by virt manager.
I have to edit the /etc/libvirt/qemu/xxx.xml file to remove it.
Why is it prevented from removing the PS/2 mouse by virt manager?
I hope it wil be fixed.
--
hisao
11 years
[libvirt-users] Kvm Libvirt dirty page log facility
by hellen maziku
Greetings!
I am new to kvm Libvirt and are writing a python script to get the number of pre-copy cycles during a remote vm migration given memory size M of a VM in MB, the page dirty rate R of a vm in MB/s. My question is on how to get the page dirty rate. Does kvm libvirt provide a dirty page log facility that provides user space with a bitmap of modified pages since the last call? And if yes, please kindly direct me on how to get started. I have searched and come across things like
VIR_NODE_MEMORY_STATS and kvm_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log, int *is_dirty),
I do not know if these are the ones and if yes how I can use them.
Thank you very much
11 years
[libvirt-users] pom for 0.5.1
by Daan Hoogland
H,
I am using libvirt from maven using a nexus proxy pointing to http://www.libvirt.org/maven2/
It downloads the jar fine but is expecting libvirt-0.5.1.pom (and ...sha1). In the proxy only the jar appears. When I download and rename the pom to my local .m2 cache my build works fine. Is this a bug in the distribution of libvirt in its maven repo or is my dependency wrong somehow?
Kind regards,
Daan Hoogland
11 years
[libvirt-users] failing connections w/ virt-manager
by Stefan G. Weichinger
Greetings ...
I already spent quite some time to debug this ...
See the thread on gentoo-user ml for reference:
http://permalink.gmane.org/gmane.linux.gentoo.user/270091
basically I get dropped connections when I try to edit a VM via
virt-manager. Tested from my gentoo workstation and a fresh ubuntu
installation inside a VM at my office.
The server is a new and shiny gentoo box with (gentoo release-numbers):
libvirt-1.1.2-r3
qemu-1.5.3
openssh-5.9_p1-r4
...
64bit, lots of RAM and CPUs .. installed last week ... so no obvious
cruft on there.
plain ssh sessions work fine for me.
I access the server over an IPSEC-VPN terminated on my pfsense-router
and on the customers side there is a firewall. This firewall allows full
access for my private subnet, TCP/UDP ports 1:65535 ... so there should
be no restrictions.
Another issue: the server runs with systemd-204-r1 ... maybe important.
# systemctl status libvirtd
libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib64/systemd/system/libvirtd.service; enabled)
Active: active (running) since Do 2013-10-03 17:39:37 CEST; 13h ago
Main PID: 1242 (libvirtd)
CGroup: name=systemd:/system/libvirtd.service
└─1242 /usr/sbin/libvirtd --listen
Okt 03 17:39:38 jupiter libvirtd[1242]: [251B blob data]
Okt 03 17:39:38 jupiter libvirtd[1242]: [254B blob data]
Okt 03 17:39:38 jupiter libvirtd[1242]: [301B blob data]
Okt 03 17:39:38 jupiter libvirtd[1242]: firewall tools were not found or
cannot be used
Okt 03 17:39:41 jupiter libvirtd[1242]: [338B blob data]
Okt 03 17:39:41 jupiter libvirtd[1242]: failed to add iptables rule to
allow DHCP requests from 'virbr0'
Okt 03 17:41:07 jupiter libvirtd[1242]: No response from client
0x7fe8b0c19450 after 5 keepalive messages in 31 seconds
Okt 04 06:35:28 jupiter libvirtd[1242]: No response from client
0x7fe8b0c171a0 after 5 keepalive messages in 32 seconds
Okt 04 06:40:05 jupiter libvirtd[1242]: No response from client
0x7fe8b0c164e0 after 5 keepalive messages in 31 seconds
Okt 04 06:58:36 jupiter libvirtd[1242]: No response from client
0x7fe8b0c17050 after 5 keepalive messages in 31 seconds
What to install for the "firewall tools"? Gentoo didn't pull anything
related ... Is that relevant?
What about these keepalive messages, I assume this is responsible for my
failing virt-manager-connections.
Thanks for any help on this, I am quite stuck here already ...
Stefan
11 years
[libvirt-users] @problem in vm while accessing internet
by anagha b
Hi
I am using virt-manager and created bridge at host .
My host nw interfaces is
auto br0
iface br0 inet static
address x.x.x.178
network x.x.x.0
netmask x.x.x.x
broadcast
gateway x.x.x.x[gateway of eth0 earlier]
bridge_ports eth0
bridge_fd 0
bridge_hello 2
bridge_maxage 12
bridge_stp off
#dns-search google.com
dns-nameservers x.x.x.x x.x.x.x
with this config
1] net inside host is working
2]net inside vms created using nat is working but i have to manually ser
interface file inside the NATD vm.
3] when i create virtualnetwork in routed mode using shared physical device
br0 and assign vm to it
the net inside vm not working .
4] created virtual network using only routed mode with any physical device
instaead og br0 still net inside vm not working.
I followed documentation on libvirt site .
I want vms indifferent nw should communicate with each other like net1 and
vm1 can ping vm2 in net2 .
11 years
[libvirt-users] (Xen + libvirt) Installing and workin with xen -4.2.1 and libvirt 1.1.2
by cooldharma06
hi
i want to install libvirt-1.1.2 in xen -4.2.1.
i installed int he following manner:
1. downloaded source from libvirt/org (libvirt-1.1.2)
2. untarred & run ./configure --with-xen=yes --with-libxl=yes
3. then make and make install.
i also enabled the (xend-unix-server yes) in xend config file.
i run libvirtd -v and getting the followning error:
root@boss[libexec]#libvirtd -v
2013-09-27 07:24:46.501+0000: 29517: info : libvirt version: 1.1.2
2013-09-27 07:24:46.501+0000: 29517: error : libxlCapsInitHost:86 :
internal error: Failed to get node physical info from libxenlight
2013-09-27 07:24:46.501+0000: 29517: error : libxlStateInitialize:1362 :
cannot create capabilities for libxenlight
2013-09-27 07:24:46.502+0000: 29517: error : virStateInitialize:840 :
Initialization of LIBXL state driver failed: internal error: Failed to get
node physical info from libxenlight
2013-09-27 07:24:46.502+0000: 29517: error : daemonRunStateInit:909 :
Driver state initialization failed
If i missed anything in the installation plz correct me.
and guide me to solve this error.
regards,
cooldharma06.
11 years
Re: [libvirt-users] Automatically assign static ipv4 via dhcp to new VMs (Tim)
by Chandana De Silva
You can do this with the built in dhcp server for the virtual network.
The definition is passed to dnsmasq.
...
<ip address="192.168.122.1" netmask="255.255.255.0">
<dhcp>
<range start="192.168.122.100" end="192.168.122.254" />
<host mac="00:16:3e:e2:ed" name="foo.example.com" ip="192.168.122.10" />
</dhcp>
</ip>
...
See :
http://wiki.libvirt.org/page/VirtualNetworking#XML_format
On 05/10/13 20:50, libvirt-users-request(a)redhat.com wrote:
> 1. Automatically assign static ipv4 via dhcp to new VMs (Tim)
> Subject: [libvirt-users] Automatically assign static ipv4 via dhcp to
> new VMs
> Message-ID: <524EE851.2010009(a)online-mail.biz>
> Content-Type: text/plain; charset=ISO-8859-15
>
> Hi guys,
>
>
> What I would like to do:
>
> 1) Right know it seems like dnsmasq assigns ip-addresses randomly to
> VMs, is there any way to assign them in ascending order?
>
> 2) IPs are not statically assigned. Is it possible to add something like
> this automatically at the first VM-start to the xml definition?:
> <host mac='AA:BB:CC:DD:EE:FF' ip='192.168.122.2' name='foobar'/>
>
11 years
[libvirt-users] network filter and openvswitch bridge
by Pavel Tokarev
Hello all!
I try to use network filters for openvswitch interfaces. This is the xml configuration of my bridge interface
<interface type='bridge'>
<mac address='00:11:22:33:44:55'/>
<source bridge='virbr1'/>
<virtualport type='openvswitch'>
<parameters interfaceid='0529d6b5-627c-4330-803f-0d7018e6d496'/>
</virtualport>
<model type='virtio'/>
<filterref filter='myfilter'>
<parameter name='IP' value='10.10.10.99'/>
</filterref>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</interface>
The filter 'myfilter' is defined. If I start a domain with this interface all ports are correctly added to the 'virbr1' bridge, plus libvirt creates firewall rules using ebtables tool. BUT ebtables controls linux bridges, not openvswich bridges. As far as I know OVS has its own tool to create firewall rules for its bridges - ovs-ofctl. How to make libvirt to use the right tool for creating firewall rules for OVS bridges?
If I remove ebtables tool and try to start the domain, libvirt complains "cannot create rule since ebtables tool is missing."
Thank you.
11 years
[libvirt-users] libvirt crash when using libxl (xen 4.3)
by dienet
Hi
I was trying out the libxl backend of xen 4.3 with libvirt, but I found it
very unstable and unusable.
I'm in xen 4.3 dom0 and starting:
1. xen stuff:
echo "Starting Xen..."
/etc/init.d/xencommons start
#/etc/init.d/xend start
. /etc/rc.d/rc.xen_bridge start
/etc/init.d/xendomains start
#libvirtd -l -d
hsflowd
2. Starting libvirt -v to see what is going on.
After that I'm using virsh to do some simple tasks:
virsh # list
Id Name State
----------------------------------------------------
Where is dom0?
virsh # create debian_pv.xml
error: Failed to create domain from debian_pv.xml
error: End of file while reading data: Input/output error
error: One or more references were leaked after disconnect from the
hypervisor
error: Failed to reconnect to the hypervisor
And log from libvirt:
2013-10-06 11:24:17.693+0000: 2162: debug :
remoteDispatchDomainCreateXMLHelper:3017 : server=0x7fe92c017760
client=0x7fe92c029970 msg=0x7fe92c029520 rerr=0x7fe92511bd50
args=0x7fe90c000af0 ret=0x7fe90c000930
2013-10-06 11:24:17.693+0000: 2162: debug : virDomainCreateXML:1996 :
conn=0x7fe904000a80, xmlDesc=<domain type='xen'>
<name>debian_pv</name>
<uuid>4590a985-69c1-4407-8517-da3da4673d9b</uuid>
<memory unit='KiB'>262144</memory>
<currentMemory unit='KiB'>262144</currentMemory>
<vcpu placement='static' cpuset='1'>1</vcpu>
<bootloader>pygrub</bootloader>
<os>
<type arch='x86_64' machine='xenpv'>linux</type>
</os>
<clock offset='utc' adjustment='reset'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<disk type='file' device='disk'>
<driver name='file'/>
<source file='/root/vms/debian_pv/debian_pv.img'/>
<target dev='sda' bus='xen'/>
</disk>
<interface type='bridge'>
<mac address='00:16:3e:59:78:01'/>
<source bridge='xenbr0'/>
</interface>
<console type='pty'>
<target type='xen' port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' autoport='no' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
</devices>
</domain>
, flags=0
2013-10-06 11:24:17.693+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe914075300
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe92c012fb0
2013-10-06 11:24:17.694+0000: 2162: debug :
virAccessManagerCheckDomain:231 : manager=0x7fe92c012fb0(name=stack)
driver=xenlight domain=0x7fe90c009130 perm=2
2013-10-06 11:24:17.694+0000: 2162: debug :
virAccessManagerCheckDomain:231 : manager=0x7fe92c017360(name=none)
driver=xenlight domain=0x7fe90c009130 perm=2
2013-10-06 11:24:17.694+0000: 2162: debug :
virAccessManagerCheckDomain:231 : manager=0x7fe92c012fb0(name=stack)
driver=xenlight domain=0x7fe90c009130 perm=4
2013-10-06 11:24:17.694+0000: 2162: debug :
virAccessManagerCheckDomain:231 : manager=0x7fe92c017360(name=none)
driver=xenlight domain=0x7fe90c009130 perm=4
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe92c012fb0
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectNew:199 : OBJECT_NEW:
obj=0x7fe90c002d10 classname=virDomainObj
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectNew:199 : OBJECT_NEW:
obj=0x7fe90c005b60 classname=libxlDomainObjPrivate
2013-10-06 11:24:17.694+0000: 2162: debug : virDomainObjNew:2063 :
obj=0x7fe90c002d10
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe914075300
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe914075300
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe914075300
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCleanupTimeouts:517 : Cleanup 2
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollCleanupHandles:565
: Cleanup 11
2013-10-06 11:24:17.694+0000: 2158: debug : virEventRunDefaultImpl:271 :
running default event implementation
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCleanupTimeouts:517 : Cleanup 2
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollCleanupHandles:565
: Cleanup 11
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=0 w=1, f=5 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=1 w=2, f=7 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=2 w=3, f=9 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=3 w=4, f=10 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=4 w=5, f=11 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=5 w=6, f=12 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=6 w=7, f=13 e=0 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=7 w=8, f=13 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=8 w=9, f=14 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=9 w=34, f=21 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=10 w=36, f=22 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCalculateTimeout:332 : Calculate expiry of 2 timers
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCalculateTimeout:340 : Got a timeout scheduled for
1381058662693
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCalculateTimeout:353 : Schedule timeout then=1381058662693
now=1381058657694
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCalculateTimeout:362 : Timeout at 1381058662693 due in 4999 ms
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollRunOnce:630 :
EVENT_POLL_RUN: nhandles=10 timeout=4999
2013-10-06 11:24:17.707+0000: 2162: debug : virFileClose:90 : Closed fd 28
2013-10-06 11:24:17.726+0000: 2162: error : libxlVmStart:627 : internal
error: libxenlight failed to create new domain 'debian_pv'
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe914075300
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe90c002d10
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe90c002d10
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe90c002d10
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectUnref:258 :
OBJECT_DISPOSE: obj=0x7fe90c002d10
2013-10-06 11:24:17.726+0000: 2162: debug : virDomainObjDispose:2029 :
obj=0x7fe90c002d10
2013-10-06 11:24:17.727+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe90c005b60
2013-10-06 11:24:17.727+0000: 2162: debug : virObjectUnref:258 :
OBJECT_DISPOSE: obj=0x7fe90c005b60
====== end of log =====
Segmentation fault
Why crash?
Am I doing something wrong?
--
pozdr0
dienet
"Old C programmers never die. They're just cast into void."
11 years