Statistics
| Branch: | Tag: | Revision:

root / lib / hypervisor @ 6d1b57f0

Name Size
__init__.py 2 kB
hv_base.py 13.9 kB
hv_chroot.py 9.4 kB
hv_fake.py 8 kB
hv_kvm.py 42.2 kB
hv_lxc.py 13.8 kB
hv_xen.py 22.3 kB

Latest revisions

# Date Author Comment
43fcf0d3 05/04/2011 04:07 pm Apollon Oikonomopoulos

kvm: check that the ISO image is there if it's a URL

Perform a simple urllib2 check on ISO images specified as URL before instance
start, so as to work around qemu bug #597575 [1].

[1] https://bugs.launchpad.net/qemu/+bug/597575

Signed-off-by: Apollon Oikonomopoulos <>

f7d61653 04/20/2011 11:22 am Apollon Oikonomopoulos

KVM: reduce 'info migrate' polling period to 1s

Signed-off-by: Apollon Oikonomopoulos <>

1477a16f 04/20/2011 11:20 am Apollon Oikonomopoulos

KVM: use cache=none for shared disk templates

Disable host cache for externally mirrored disks to avoid cache incoherency.
Without this, migrations between the same two nodes may end up in disk
corruption.

This is a runtime override of cluster defaults, mostly a workaround....

823bfa49 04/20/2011 11:20 am Apollon Oikonomopoulos

Allow KVM to boot from HTTP

New versions of KVM support booting from HTTP-hosted ISO
images, via libcurl. This patch adds a proper check to
allow defining either a sane, absolute path or an HTTP
URL as an iso image path.

Remove "format=raw" from the cdrom device options when iso_image...

199b2053 01/18/2011 02:55 pm Apollon Oikonomopoulos

KVM: Add auxiliary functions to handle tap devices

Add two new functions, _OpenTap and _ProbeTapVnetHdr, to
hypervisors.hv_kvm.

_ProbeTapVnetHdr checks if the host kernel supports the virtio net header
(IFF_VNET_HDR) feature. This feature allows KVM to ask the the host kernel to...

5d9bfd87 01/18/2011 02:55 pm Apollon Oikonomopoulos

KVM: Perform network configuration in Ganeti

This patch introduces network configuration for KVM in Ganeti.

There are three problems with having KVM perform network configuration via ifup
scripts:
a) Ganeti never gets to know the tap interface that is associated with an...

7be85163 01/18/2011 02:55 pm Guido Trotter

KVM: don't fail removing non-existing nic path

This shouldn't normally happen, but if it does no need to fail.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

55cc0a44 01/07/2011 05:34 pm Michael Hanselmann

Use new console information in hypervisor abstraction

This makes use of the new way of returning console information from the
master daemon. Unittests are included.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

049383d9 12/06/2010 08:48 pm Adeodato Simo

hv_kvm.py: fix some lint issues introduced in 4b784cf

In particular:

- break as couple lines that were longer than 80 characters
- fix a couple "comma not followed by a space"
- fix an unused variable warning

Signed-off-by: Adeodato Simo <>...

4b784cf8 12/03/2010 05:48 pm Miguel Di Ciurcio Filho

kvm: Improve network syntax and tests

The current syntax when defining a NIC uses a pair of arguments, like this:

-net tap,vlan=0 -net nic,vlan=0,model=virtio

When using this pair, internally KVM will create a VLANState structure to send
ethernet frames between the guest NIC and the host tap device. This is...

View revisions

Also available in: Atom