[libvirt-users] Updates to cucmber-vhost - guineapigs wanted! :)
by Matthew Macdonald-Wallace
Hi all,
For those of you that are using cucumber for Continuous Integration or
similar I've created a set of steps that enable you to use cobbler and
cucumber to auto-provision using Libvirt.
I've just made some changes to the code however I don't have access to
all the hardware/software required to test it fully.
If you are able to, please check out the code from
http://tinyurl.com/virtcuke (my github repo) and test, posting bugs
against the project.
Thanks in advance,
Matt
14 years, 6 months
[libvirt-users] virDomainSetSchedulerParameters() does not support KVM?
by Zhang Qian
Hi,
I have one RHEL 5.5 Xen box and one RHEL 5.5 KVM box. In the Xen box, the
following command works well:
$ virsh schedinfo RHELu3T
Scheduler : credit
weight : 256
cap : 0
But in KVM box, it can not work:
$ virsh schedinfo RHEL5u3
Scheduler : Unknown
error: this function is not supported by the hypervisor:
virDomainGetSchedulerType
Is it because that the libvirt APIs virDomainGetSchedulerParameters() and
virDomainSetSchedulerParameters() does not support KVM?
…
[View More]Is there any plan for libvirt to support that? Or any equivalent in libvirt
can be used to do the same thing for KVM?
Thanks!
Qian
[View Less]
14 years, 8 months
[libvirt-users] Too many active clients?
by jeremy avnet
Hello,
I'm receiving a lot of these since a couple of days ago:
libvirtd: 16:30:10.960: error : qemudDispatchServer:1282 : Too many active
clients (20), dropping connection
I'm trying to figure out where all these active clients are coming from. I
have a daemon running the interacts with libvirtd, but it only creates two
long-lived connections (I'm very sure). What constitutes an active
connection?
The only other libvirtd access that goes on are some quick lived munin
process which connect …
[View More]in various ways and using virsh on the command line.
Libvirt version 0.7.5-5ubuntu27 on Ubuntu 10.04.
Thanks!
.:. jeremy
[View Less]
14 years, 8 months
[libvirt-users] Hello world help needed
by Dale Amon
I am trying to work my way up the learning curve through
a forest of conflicting and mostly non-working examples
and help pages spread about the internet.
I have had no trouble getting a basic vm to build
and to then start it up. But I have utterly failed
to gain access to the machine.
The only host I have available that can run it is a
remote server. I have not got the networking side
working yet, but I can live with that for the moment
because I have thus far not been able to get access
to …
[View More]a simple console on the vm.
Here is the machine:
<domain type='kvm' id='2'>
<name>ubuntu</name>
<uuid>8904d893-87dc-dc1f-0219-486745a370f6</uuid>
<memory>262144</memory>
<currentMemory>262144</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-0.12'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<source file='/home/myhome/ubuntu-kvm/tmpl3Xutj.qcow2'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='network'>
<mac address='52:54:00:be:d5:c2'/>
<source network='default'/>
<target dev='vnet0'/>
<model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
</video>
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
</console>
</devices>
<seclabel type='dynamic' model='apparmor'>
<label>libvirt-8904d893-87dc-dc1f-0219-486745a370f6</label>
<imagelabel>libvirt-8904d893-87dc-dc1f-0219-486745a370f6</imagelabel>
</seclabel>
</domain>
I dumped the original and added the pty stuff from an example, but
when I create it and connect to the console:
# virsh -c qemu:///system create ubuntu2.xml --console
Domain ubuntu created from ubuntu2.xml
Connected to domain ubuntu
Escape character is ^]
nothing appears and nothing I type echoes.
At least I can escape though...
I seem to have no trouble creating them, but it sure would
be nice to be able to access them.
Oh, and btw. Every time I create a VM with the ubuntu
ubuntu-vm-builder kvm hardy --mem 256 --iso /path/to/ubuntu-8.10-server-i386.iso
ubuntu-vm-builder kvm lucid --mem 256 --iso ubuntu-10.04-server-amd64.iso
It leaves a loopback disk behind that never goes away. I've
had to reboot the server once already and upped loop_max to 32
so I would be able to work longer before doing so again.
[View Less]
14 years, 8 months
[libvirt-users] libvirt use spice
by Songwen Liao
Hi,friends,
i am the new guy for here...i met a problem with libvirt.
i create a new virtual machine with kvm,i want to use the spice protocol to
connect the machine's destop.
but it's appears that libvirt cannot support spice.
So,any idears,what should i do,a patch file ?
thanks a lot.
--
Name: Ben
-----------------------------------------------------------------------------------------------
Mobile: 15800910495
Msn: liaosongwen(a)live.cn
QQ: 43455134
14 years, 8 months
[libvirt-users] libvir: Domain error <domName>: invalid argument in virDomainGetXMLDesc
by Priya
All,
I just downloaded and installed libvirt-bin and this is my first email
to the group, so I apologize in advance if my questions are too naive!
So, I am trying to access VMs running on xen3.2 hypervisor (host with
kernel 2.6.24-24-xen) using virt-manager installed on a machine
running Ubuntu 9.04 (client machine). I got to the point where I can
connect to my virtual machine and my domain-0 through the virt-manager
client (meaning that I already have libvirt, ssh-askpass downloaded
and the …
[View More]libvirtd and xend running on my host machine), and on the
client machine I can view the window showing the statistics of CPU
utilization of my domain-0 and user domain. The attachment shows a
shapshot of the virt-manager on my client machine.
Now when I try to access the GUI of either of domain-0 or the user
domain (by selecting the specific domain and clicking open) I get the
following error message in a pop-up on my client and in the libvirtd
console on the host:
"libvir: Domain error xen_2: invalid argument in virDomainGetXMLDesc"
I tried to Google this error, but I don't find any clear answers. It
seems to be a bug in the libvirt implementation that has been detected
and resolved already. And I am confused as to why is it that such a
recent version is still buggy? Should I have downloded another version
instead? I desperately wish to resolve this problem and would
appreciate any guidance.
Many thanks!
--
Priya Bhat
[View Less]
14 years, 9 months
[libvirt-users] How to create a guest os from existing disk image file with virt-install
by Rajiv Rajaian
Hi
I have configured KVM with Fedora Core 13 by enabling the KVM virtualization
option while installing OS.
I have successfully created the guest OS by using the virt-install API
/usr/sbin/virt-install --name centos5 --ram 512 --disk
path=/var/lib/libvirt/images/
centos.img,size=5 --network network:default --accelerate --vnc -c
/tmp/CentOS-5.3-i386-bin-DVD.iso
Os installed successfully and after rebooting am able to login to the guest
OS using the virt-viewer command using vnc viewer ..It …
[View More]shows
Booting from Hard Disk...
GRUB Loading stage2.....
But the guest os is not booted
I want to the create the guest os from existing configured disk
/var/lib/libvirt/images/centos.img.. What modifications should be done with
my configuration file ??
Pleas help me to solve this.
[root@kvmcluster ~]# virsh dumpxml centos5
<domain type='qemu' id='2'>
<name>centos5</name>
<uuid>cabfad09-ff8b-e1ca-051a-6729e301f6a1</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='i686' machine='fedora-13'>hvm</type>
<boot dev='cdrom'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/centos.img'/>
<target dev='hda' bus='ide'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu'/>
<source file='/tmp/CentOS-5.3-i386-bin-DVD.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<alias name='ide0-1-0'/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
<controller type='ide' index='0'>
<alias name='ide0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<interface type='network'>
<mac address='52:54:00:bf:32:c2'/>
<source network='default'/>
<target dev='vnet0'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
<alias name='serial0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
</devices>
<seclabel type='dynamic' model='selinux'>
<label>system_u:system_r:svirt_t:s0:c370,c413</label>
<imagelabel>system_u:object_r:svirt_image_t:s0:c370,c413</imagelabel>
</seclabel>
</domain>
[View Less]
14 years, 9 months