Browsed by
Tag: KVM

Linux bridge: MAC addresses and dynamic ports

Linux bridge: MAC addresses and dynamic ports

Scenario: KVM virtualization host running several bridged guests. The host has a bridge interface br0 that starts out containing only eth0, and other interfaces are dynamically added and removed from the bridge as guests are started and stopped. The problem is, the host seems to randomly suffer some loss of connectivity (from a few to 30-40 seconds) when some guest is started or stopped. Initially one might think of something related to STP, but it turns out that it is…

Read More Read More

Redirect port to guest in libvirt

Redirect port to guest in libvirt

If you want to redirect ports from WAN to quest Virtual Machine than you may do this: Go to edit VM from Virsh virsh edit my-vm-namevirsh edit my-vm-name In header add xmlns <domain type=’kvm’ xmlns:qemu=’http://libvirt.org/schemas/domain/qemu/1.0′><domain type=’kvm’ xmlns:qemu=’http://libvirt.org/schemas/domain/qemu/1.0′> Change interface type to user <interface type=’network’><interface type=’network’> to this: <interface type=’user’><interface type=’user’>

Vagrant: libvirt library not found in default locations (RuntimeError)

Vagrant: libvirt library not found in default locations (RuntimeError)

vagrant plugin install vagrant-libvirt Installing the ‘vagrant-libvirt’ plugin. This can take a few minutes… Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is:   An error occurred while installing ruby-libvirt (0.5.2), and Bundler cannot continue. Make sure that `gem install ruby-libvirt -v ‘0.5.2’` succeeds before bundling.   Warning: this Gemfile contains multiple primary sources….

Read More Read More

Конвертация xva в KVM формат qcow2

Конвертация xva в KVM формат qcow2

Итак…имеем XenServer на котором крутятся виртуалки. Задача: нужно перенести их в другое место. А под рукой есть только сервак с KVM Заходим на Xenserver, делаем Snapshot и сохраняем его куда то. Закидываем бекап на сервер с KVM Наш файл имеет формат xva, это ни что иное как обычный архив Распаковываем его tar vxf vm1.xva ….. tar: Ref:50/00008193: implausibly old time stamp 1970-01-01 01:00:00 tar: Ref:50/00008193.checksum: implausibly old time stamp 1970-01-01 01:00:00 …tar vxf vm1.xva ….. tar: Ref:50/00008193: implausibly old time…

Read More Read More