Re: [libvirt-users] no connection driver available for openvz:///system
by Trey Dockendorf
2011/10/12 张立洪 <zlh_086(a)126.com>
> thanks for help.
>
> I download a new libvirt 0.8.1,and compile libvirt.spec. and I success.I
> can use virsh command connect openvz.
>
> but I want use libvirt manager KVM and openvz simultaneously.can you tell
> me how can I implement.....?
> openvz and kvm 's VMs can network interconnect?
> the end I want to ask whether libvirt0.9.6 support openvz,vbox,lxc etc?
>
> thanks very much again!!!! look forward to your replies.
>
>
>
>
>
Replying back to the list as this may be useful for others.
Personally, I don't know openvz or its capabilities, but you can use
something like virt-manager to manage anything controlled by Libvirt. If
the openvz server connects via libvirt then virt-manager should be able to
manage that also. In virt-manager you'd just do "File" -> "Add Conection"
to connect a new server to the same interface.
I'd recommend also upgrading the CentOS 6 CR. The version of libvirt fixes
many issues I've run into, primarily the snapshot capabilities. Also the
virt-manager version in CentOS 6 is very dated. I have one you can download
that is the latest I've found to work with libvirt-0.8.1 and libvirt-0.8.7
(CentOS 6.1 / CR).
http://itscblog.tamu.edu/virt-manager-0-8-7-for-centos-6/ . I'll be
updating the virt-manager RPM shortly, to just incorporate changes from
upstream RedHat.
- Trey
13 years, 1 month
[libvirt-users] Virtio Balloon- Can not see the results
by d hee
with kvm and virtio- would -m 1024 take proceedence over -balloon
virtio? when i use both together, i see memory stay around 1024 MB less on my host side. I know the guest is not taking but a fraction of that ram, so I would expect the virtio balloon to take the majority of the guests ram and hand it back to the host. this is using the free util/command to take snapshots of the host memory.
thanks,
-dman
13 years, 1 month
[libvirt-users] Help with running virt-top from Java file
by PREETHI RAMESH
I've been trying to run virt-top to save the usage statistics to a csv file
from my Java code using process builder. However, this gets executed in the
Java file but I don't seem to find the file created anywhere. Is executing
virt-top possible via a Java code? I'm using the example
here<http://forums.devx.com/showthread.php?t=147403>replacing ls -l
with virt-top --csv file2.csv.
I plan to generate the graphs from the csv files to load them on to my Java
UI. If there are other alternatives to my method, please tell me as I've
been trying to get one for almost a week now.
Thanks a lot!
Preethi
13 years, 1 month
[libvirt-users] libvirt ESXI driver's capabilities
by חץ בן חמו
Hello,
I've read a bit about libvirt in the web site, and I couldn't find anywhere
whats the VMWare driver is capable of.
I'm planning to build something that will let me manage multiple ESXI hosts
(without vcenter) and before I hire a developer, I would like to ask if it
supports the following items:
* creating thin provisioning disks (when creating a new vm for example)
* snapshots - create / restore / limit amounts of snapshots
* modifications of live machines (if possible)
* graphs (is it possible to build graph with libvirt??)
* shutdown / pause / restart
I really wish there was a document which would show the driver's
limitations..
Another question: is there any book / pdf which is updated and can provide
the info of what libvirt capabilities are there and how to use them?
Thanks,
Hetz
13 years, 1 month
[libvirt-users] virt-install.
by Chuck LaVerde
Why does virt-install shutdown the guest after the initial install? Is there
a way to have the guest reboot after the initial installation?
Chuck
13 years, 1 month
[libvirt-users] XML file format for snapshot-create
by Trey Dockendorf
I've created a very basic snapshot XML file, to allow for a description of
the snapshot. However when running the virsh command, it doesn't like the
formatting.
# virsh snapshot-create proxy_0 /vmstore/proxy_0/proxy_0_ss.xml
error: XML description for failed to parse snapshot xml document is not well
formed or invalid
This are the XML file contents...
# cat proxy_0_ss.xml
<domainsnapshot>
<name></name>
<description>Before updating to CR repo</desciption>
</domainsnapshot>
I'm running libvirt-0.8.7 on CentOS 6 x86_64. I can take snapshots just
fine without defining the XML file, but I'd like to be able to add a
description.
Thanks
- Trey
13 years, 1 month
[libvirt-users] BIOS Delay
by xuteng
Hi,
Does the libvirt support the bios delay ?
I mean that after set a special number of seconds or minutes, when the domain starts, the bios will delay after the time I set
Thanks for your time
wade
xuteng via foxmail
13 years, 1 month
[libvirt-users] Live Migration using Libvirt migrate()
by PREETHI RAMESH
Hi,
This is a follow up of the mail regd migration I'd posted a few days ago. My
scenario:
I'm creating two virtual machines images from an Ubuntu 10.10 iso of RAM
size 128 and 700 MB.
Using the migrate() , I migrate it from the current physical machine to the
destination machine via a 100 Mbps switch LAN connection. BOTH migrations
take the same amount of time.
Checking out the eth0's transmitted and received bytes after and before the
migration, I find that there's NO change in the readings. Using any other
method to migrate(virsh,Qemu) takes a substantial amount of time(close to 10
seconds) for the 128 and 700 MB images.
How can this drastic change in migration time be accounted for?
Are there any other ways to check if the VM has been successfully migrated
to the destination(i tried using virsh console after migrate() but for some
reason it just hangs. I tried out the suggested patches on various sites but
to no avail)?
Is pinging the migrated VM from its PM a sure test for successful migration?
Thanks guys.
13 years, 1 month
[libvirt-users] Performance tuning questions for mail server
by Alex
Hi,
I have a fedora15 x86_64 host with one fedora15 guest running
amavis+spamassassin+postfix and performance is horrible. The host is a
quad-core E13240 with 16GB and 3 1TB Seagate ST31000524NS and all
partitions are ext4. I've allocated 4 processors and 8GB of RAM to
this guest. I really hoped someone could help me identify areas in
which performance can be improved at both the guest and host.
Load on the server is regularly above 20, yet the processors generally
are idle and the host is still responsive.
Should the concentration of the performance tuning be done on the
guest or the host? I've read through the information at
http://libvirt.org/formatdomain.html#elementsMemoryTuning but I don't
know how the settings apply to my configuration and which ones apply
to my hardware.
I've included my libvirt xml config below. It was built using
virt-manager on fedora15. There appears to be quite a few other
options that are available and not provided by virt-manager that I
would like to be able to use.
I've done a little kernel tuning on the host, although it doesn't
appear to have made much difference. Are there a set of values for
kernel parameters that would be advisable to make for a mail server?
Here is what I currently have:
# sysctl -p
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.all.log_martians = 0
net.ipv4.conf.default.log_martians = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
vm.vfs_cache_pressure = 35
vm.nr_hugepages = 512
net.ipv4.tcp_max_syn_backlog = 2048
fs.aio-max-nr = 1048576
vm.dirty_background_ratio = 3
vm.dirty_ratio = 40
After making changes, do you have any recommendations on which tools
to use to monitor those changes and see how they perform?
I have noatime set in fstab in the guest for the /var partition, where
much of the spamassassin occurs.
I've included below my libvirt xml config for the guest and hoped
someone could make some recommendations on how to apply the cputune
and memtune parameters to my system.
<domain type='kvm'>
<name>mail02</name>
<uuid>ec4f3cf5-2f27-fb3e-72f6-3fa3176b13b6</uuid>
<memory>8388608</memory>
<currentMemory>8388608</currentMemory>
<vcpu>8</vcpu>
<os>
<type arch='x86_64' machine='pc-0.14'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/mail02.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:67:2c:4c'/>
<source bridge='br0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
</memballoon>
</devices>
</domain>
Thanks,
Alex
13 years, 1 month
Re: [libvirt-users] Libvirt newbie, need help with doubts
by Eric Blake
Forwarding to the list (this was mistakenly sent to just me)
On 10/07/2011 11:32 AM, Mohammed Naser wrote:
> On 2011-10-07, at 12:13 PM, Eric Blake<eblake(a)redhat.com> wrote:
>
>> On 10/07/2011 05:28 AM, PREETHI RAMESH wrote:
>>>
>>> 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?
>>
>> Sorry, I can't answer this one.
>
> There is a plugin that collects resource details of libvirt for
> collectd. I believe that collectd collects data in an RRD database and
> I'm sure you can find an RRD charting library for Java.
>
>>
>> --
>> Eric Blake eblake(a)redhat.com +1-801-349-2682
>> Libvirt virtualization library http://libvirt.org
>>
>> _______________________________________________
>> libvirt-users mailing list
>> libvirt-users(a)redhat.com
>> https://www.redhat.com/mailman/listinfo/libvirt-users
>
> Regards,
> Mohammed Naser
>
> Sent from my iPhone
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
13 years, 1 month