Tag Info

New answers tagged

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


0

Seems like you could use QEMU's -netdev socket option here, probably UDP version will fit better. Also -netdev vde may work, although is more complicated and requires VDE switch daemon configured. But I would try to overcome problem with Linux bridge anyway, with STP option enabled, as @Martin suggested. This is simple and very common setup.


0

I had the same problem on one of my KVM servers, Ubuntu 14.04. I had 2 identical dell poweredge severs and on 1 of the machines I had this problem. This turned out to be caused by a BIOS setting where "Logical Processor" was enabled. Disabling this feature solved the slow performing Windows 2012 issue.


1

I've been meaning to do this anyway so I did some installs. The default for IDE style devices in this setup does seem to run at PIO mode speed thought haparm is claiming DMA ... doing this inside the VM makes it about 70 times faster on my machine. hdparm -d1 /dev/hda echo hdparm -d1 /dev/hda > /etc/rcS.d/S00hdparm.sh chmod +x /etc/rcS.d/S00hdparm.sh ...


0

I've placed the answer in the original question above.


0

I also have this problem on Ubuntu 14.04.1 net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0 Are not set on reboot!!! I have to manually do: sudo brctl show sudo sysctl -p Only then the parameters are set?! This is so frustrating. I'm setting up a HA system and I need net.bridge.X ...


0

First about differences: KVM is a kernel based virtual machine. So virtualization becomes a job for the standard kernel of the host. There is no additional hypervisor in between. XEN is a hypervisor running underneath a ccontrolling VM, called Dom0 (priviledged VM). The hypervisor can run modified, XEN-aware Linux VMs in PV mode. ParaVirtualized VMs have ...


0

After further research, it seems that the best solution is to use libvirt's built in network filters: https://libvirt.org/formatnwfilter.html


0

Replace this: dd if=mytemplate.img of=myguest.img iflag=direct oflag=direct (vs cp for better copying speed) With: cp --sparse=always mytemplate.img mynewguest.img Assuming your file is sparse on the tail end, that will result in a much much smaller file. If it doesn't result in a smaller file, mount the template image: kpartx -va mytemplate.img mount ...


0

I normally set mine up like this: auto eth0 iface eth0 inet manual auto br0 iface br0 inet manual bridge_ports eth0 bridge_stp off bridge_fd 9 bridge_maxage 12 bridge_hello 2 Shutdown the guest, then run ifdown br0 && ifup br0, then startup the guest and configure the interface inside the guest with the static ip information.


1

Your guest has the same IP address than your host's bridge. This is wrong: guest should have a different IP address than host interface. As a side note, this is the very reason why pinging your guest address from your host cause a reply coming from the host itself: you are pinging an host IP! Try to configure your guest with a free IP address inside your ...


0

It looks like the REJECT lines in your FORWARD table are blocking everything.


1

ARP requires routing to work also. A common problem is that you have both an IP address assigned to both interfaces in the same subnet, on the host system's kernel. If you do this ARP replies will break - b/c only one interface will get replies. Make sure that you have a clean, single route back to the subnet. In the example above, if the tap1 and tap2 ...


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

It is not possible to create a bridged network for one IP address. It needs to be done to the entire network interface or not at all. If you only have one NIC, your only option is to assign all IP addresses on the host machine and then use a firewall (e.g. iptables) to do NAT to the guest OS. This article has a script that will do it for you automatically ...


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.


1

Most likely this is UFW, Ubuntu's own firewall control software.


0

You should only have the IP address for the host on the host bridge. The IP addresses for the guests should be assigned only in the guests.


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.


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. ...


1

Here is a more detailed walkthrough of bridging: Follow these steps on the kvm server: sudo stop network-manager echo "manual" | sudo tee /etc/init/network-manager.override That will disable your network-manager and prevent it from restarting. next we work on the interface config, starting by taking the interface down: ifdown eth0 edit ...


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 ...


0

My virtual machines use NAT networking and a virtual network controlled by libvirt, so libvirt tries to change the iptables rules to send the right traffic to the right VM but, apparently, it doesn't work properly. Basically, libvirt is adding rules to iptables after iptables has already loaded its configuration. Quick, dirty hack Simple, and functional: ...


0

Is there any chance that you are using some other script inside the file '/etc/network/interfaces' on the line "post-up iptables-restore < /etc/iptables.up.rules"


0

yes, virt-sparsify is what you need. to clone VMs, you can use virt-clone to properly copy disk images, qemu-img convert is the better approach. To really save disk space, you can make the golden image, then create some snapshots of it using qemu-img, and base your VMs on those snapshots. This way the base data will remain in the base image and the VMs ...


0

Have you perhaps enabled a setting that penalises "unknown" or encrypted traffic? This setting is usually intended to punish or make the network unusable for file sharing and p2p users, but perhaps pfsense is seeing that https is encrypted and penalising it accordingly.


1

help site includes info for using ipmitool and asmc4 both of which I cannot find on my machine Why not install them? With ipmitool(1) installed you could reset your BMC by typing $ sudo ipmitool mc reset cold — it often helps me when I deal with freezed IPMI/BMC.


0

Just to give a feedback about this issue. I also changed the SATA cables and the problem persists. After running the memtest for more than 24 hours, it started to increase the error counter. Now I'm trying to figure out which memory module is bad. -- The bad memory module was replaced and now let's see whether the problem is solved. I hope so, but I'm not ...



Top 50 recent answers are included