[libvirt-users] Libvirt newbie, need help with doubts
by PREETHI RAMESH
Hi,
These are my doubts:
1. I tried live migration of Ubuntu 11.04 from the one physical machine to
another using the migrate() function. I connected via tcp in the destination
URI and migrated successfully(lesser than 2 seconds). I tried running virsh
list --all on the destination PM and confirmed that the VM had been migrated
successfully.
When I tried checking ps aux | grep vmname where vmname was the name of the
VM migrated, I could see that on the source PM the thread was still active
with the PID though the machine had been migrated successfully.
Shouldn't the vmname not be listed at all on the source PM's side,if it has
been completely migrated?
Isn't 2 seconds too little(considering the memory allotted to the VM was
128MB and I'm using a 100Mbps LAN switch, time taken=size/speed~10 seconds).
Why is virsh list --all showing me that the VM migrated to be shutdown on
the source PM? If it's been completely migrated, shouldn't the entry be
removed completely?
2. Is there any way to set the CPU limit in terms of % of CPU used on a VCPU
using libvirt function? As in, if I want my VM to use just 10% of VCPU 1.
3. I'm developing an application in Java to monitor VM usage(Memory,CPU,
Network etc). Are there any easily integrable graph plotting applications I
could integrate with?
Thanks for your time.
Regards,
Preethi
13 years
[libvirt-users] Reg: shutdown/restart from within the container(system LXC)
by Alphonse Hansel Anthony
Hi,
Is it possible to shutdown/restart a system LXC from within the
container?
From what I have observed(Version - 0.8.4):
* The libvirt_lxc manager process, which listens on the /dev/pts for
console connection loops
infinitely.
Let me know If I am missing out something obvious or there exists any
other way to
shutdown/restart system LXC from within.
Any pointers in this regard would be useful.
Thanks,
Alphonse
13 years
[libvirt-users] Libvirt for custom VM
by ankur deshwal
Hi,
I need to create an application where I can use a single interface for
different VMs (libvirt becomes an obvious choice then). However I will
need to control a VM running on custom hypervisor other than ones
currently supported by libvirt. Is it possible to add a new interface
to the hypervisor (easily)? Shall I try to use "test-hypervisor"
supported by libvirt ??
I shall be grateful for some initial pointers to read which can help
me for the task.
Thanks and Regards,
Ankur
13 years
[libvirt-users] Need help debugging virtio net issue
by Darren Dao
This is what I use for creating the VM
sudo virt-install -n myvm -r 2048 --vcpus=1 --accelerate -v -w
bridge:br0,model=virtio --nographics -m 54:52:00:01:bb:8d --disk
path=/storage_pool/myvm.raw,size=20,bus=virtio --pxe
It used to work fine, but now it get stuck trying to do pxeboot/kickstart.
Here's what I see when trying to debug the pxeboot/kickstart process:
* Querying DHCP server for IP address went through fine
* vmlinuz.CentOS5-5.5-x86_64 was downloaded successfully
* initrd.img.CentOS5-5.5-x86_64 started to get transferred, but then
stopped. It looks like the VM's network interface just crashed (can't even
ping the VM anymore)
If I don't use virtio for networking, then everything went through fine.
What's strange that is virtio used to work fine.
I ran out of ideas/ways to debug this issue. Any has any idea?
Here's more info on my system:
Host:
* Scientific Linux 6, kernel version: 2.6.32-71.el6.x86_64
* libvirt: 0.8.1-27
* qemu-kvm: 0.12.1.2-2.113
Guest:
* Scientific Linux 6, kernel version: 2.6.32-71.el6.x86_64
13 years
[libvirt-users] libvir: Remote error : cannot recv data: : Connection reset by peer
by PREETHI RAMESH
I'm using Libvirt's Java API and connecting to the hypervisor using the
same. My program is such that periodic discovery of active VMs is done using
Libvirt's functions.
However, when I try to perform any VM related operations while the Java code
connecting to Qemu is running such as shutdown, start VM using virsh, I end
up with :
'libvir: Remote error : cannot recv data: : Connection reset by peer' on my
Java IDE and 'error: cannot recv data: : Connection reset by peer error:
failed to connect to the hypervisor' on the terminal running virsh.
I'm using QEMU emulator version 0.14.0 (qemu-kvm-0.14.0) and Libvirt version
0.4.7 on Ubuntu 11.04.
Please help me out! Thanks.
13 years
[libvirt-users] Usage serial device
by David Goulet
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm trying to connect the *same* serial device to two KVM Linux machines where
one is running KGDB and the other uses the connected serial to interact with the
target machine running under KGDB.
However, I'm unable to do so. Using a pty port, I am able to use my kgdb setup
with host/VM but unable to make it work with VM/VM since it's two different pty
created on the two machines.
Anyone on this list can help me with that kind of setup ?
Unfortunately, I must use libvirtd 0.7.5 for now... I'm aware that it might be a
version issue here but still...
Thanks!
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBAgAGBQJOihLOAAoJEELoaioR9I02GawH/1Ux197Pj3F+Qf54LcI3yy+w
Vhd8yOGIAreBES7FUIf/7dCFqUz2mXFbtRuo9KZi+M0qs02kEs/nbhgOJLmHdZFA
iRdCprzCR4Ue1x8H/tVogfBElfGhlJDaPHx5KIsxDmXwPJYhrPBt8qhyzLSTVQZG
/pibv03sQdGRM6ZIyIhbA3ZmZ7Yh0SToGl3Fodw5Yp6YjrxRtpTu/OkHuHweM+nq
wxthsgVstAEjJSxwV5O1+GzQ8xVDzjvZTvSRXnU2mTKXTiW2CkbnPbDG7cYfAcdx
jICcAOf4AHtuKt5ZTfXFMUT4qSPfEntoXKsjt1IpCOpYH70GNGxLkh96SKjS1+w=
=AYT3
-----END PGP SIGNATURE-----
13 years
[libvirt-users] Second VM cannot get dhcp ip in NAT mode
by Magicloud Magiclouds
Hi,
Yesterday I started to use libvirt with kvm under centos6. The first
VM works great.
Today I added another VM and start to initialize with virt-install.
Well, it seems that, the second VM cannot get dhcp ip. I did not
change the default libvirt network configuration.
What should I do?
--
竹密岂妨流水过
山高哪阻野云飞
13 years
[libvirt-users] qemu+ssh fails with "packet received from server too large"
by Trey Dockendorf
I'm attempting to connect to my KVM host from a remote system, but am unable
to connect using virsh. I'm able to connect if I disable sasl on the KVM
host...
The KVM host is on CentOS 6 x86_64 with libvirt-0.8.1
Here's the command I'm using,
---------
$ virsh -c qemu+ssh://kvmhost.tld/system
error: packet received from server too large
error: failed to connect to the hypervisor
Here's the uncommented lines in my /etc/libvirt/libvirtd.conf
-----------
listen_tls = 1
listen_tcp = 0
listen_addr = "...." (set to eth0)
key_file = "/var/lib/puppet/ssl/private_keys/kvmhost.tld.pem"
cert_file = "/var/lib/puppet/ssl/certs/kvmhost.tld.pem"
ca_file = "/var/lib/puppet/ssl/certs/ca.pem"
log_level = 1
log_filters="1:remote 1:event"
log_outputs="1:syslog:libvirtd 1:file:/var/log/libvirt/libvirtd.log"
There is no output in /var/log/libvirt/libvirtd.log while trying to connect
remotely through virsh. The only logs that are generated are
/var/log/secure,
--------------
Sep 30 19:34:53 kvmhost sshd[20074]: Accepted publickey for foreman from
10.1.0.1 port 55269 ssh2
Sep 30 19:34:53 kvmhost sshd[20074]: pam_unix(sshd:session): session opened
for user foreman by (uid=0)
Sep 30 19:34:53 kvmhost sshd[20074]: pam_unix(sshd:session): session closed
for user foreman
I've also opened up the port through iptables,
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp
dpt:16514
And I don't see anything being blocked by SELinux during these connection
attempts.
Is there possibly a log filter I could enable to shed more light on this?
Any help is greatly appreciated.
Thanks
- Trey
13 years