Tag Info

New answers tagged

0

I was able to get the libvirt configuration resynchronized by copying the XML from the xml dump into its own file, and then updated it back into the current configuration via virsh attach-device 4 filestore.xml --config After that, I reran nova volume-detach. It succeeded in cleaning up the compute node, the iscsi session is now idle. However, now the ...


0

Here is an example how you can test if a machine is online using ping: #!/bin/bash # test-online.sh ret=1 while [ $ret != 0 ] do ping -c 1 $1 2>/dev/null ret=$? done exit 0 You can adapt this to use ssh by replacing the ping line with something like ssh $1 "echo", assuming you can connect to the machine without a password. Using the above script ...


0

xml for hub: https://libvirt.org/formatdomain.html#elementsHub An example: <hub type='usb'> <address type='usb' bus='0' port='1'/> </hub> https://www.redhat.com/archives/libvir-list/2011-August/msg00816.html


2

To grant permanent access to the raw USB device nodes to the user the hypervisor runs as, you need to create an udev rule; the chown-based answer will only work until the next reboot. In /lib/udev/rules.d, create a file like 51-usb_passthrough.rules : SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{busnum}=="2" ATTRS{devpath}=="1" GROUP="kvm" Here I ...


1

You have to set up DNAT on the Host to forward ports from the outside IP address to the VMs in the private VM network you have set up. You cannot share the IP on the layer 3.


2

It's probably a problem with access rights. Your QEMU deamon is not allewed to access the USB devices. Try: chown libvirt-qemu /dev/bus/usb/ -R or whichever user your KVM is running as. This should do the trick.


0

run vm-install --use-xl as root Bug in 13.2. Read https://bugzilla.opensuse.org/show_bug.cgi?id=909547


1

Seems to me, we are facing the same problem. Please look at Bugzilla – Bug 909547 https://bugzilla.opensuse.org/show_bug.cgi?id=909547 and temporary partial workaround (until host reboot !!) described in opensuse forum https://forums.opensuse.org/showthread.php/502307-openSUSE-13-1-gt-13-2-upgrade-issues-with-xen-libvirt-and-virt-manager Workaround: 1. ...


1

I just had the same problem and came up with this solution: Check: Is kvm really enabled in your bios?? Run this: dmesg | grep kvm If it says kvm: disabled by bios go to the bios and enable it! in virt-manager you can now select kvm as emulator for new machines. I just recreated my machine without modifying the image and now virtio is available for disks. ...


2

Prepare a template VM, modify it with a tool like snf-image-creator to install the virtio drivers and sysprep, and clone it: sudo snf-mkimage -f --print-metadata --disable-sysprep=shrink --print-syspreps --install-virtio=/mnt/loop/win8/amd64 -o win2012-out.img win2012-template.img If you want to create each image from scratch, you can slipstream the ...


0

For the configuration you want, you need to have the virtual machine's NIC use your existing bridge br0 on the host. Unfortunately vagrant-libvirt doesn't seem to support this configuration (it only uses macvtap, which is meant to take over a physical interface completely and doesn't help you here because the host cannot use the interface). I would contact ...



Top 50 recent answers are included