Tag Info

Hot answers tagged

11

If you don't want to do any configuration inside the guest, then the only option is a DHCP server that hands out static IP addresses. If you use bridge mode, that will probably be some external DHCP server. Consult its manual to find out how to serve static leases. But at least in forward modes nat or route, you could use libvirt's built-in 'dnsmasq' (More ...


11

TRIM works at the filesystem level so as you're giving your KVM domains a raw block device then you need to enable TRIM from within the domain; your host can't know the domains filesystem utilisation without examining it. To enable this you need to ensure there's a discard='unmap' attribute added to the disk definition in the XML for the domain, this is ...


10

You can't use switch port security on the Cisco since all the VMs will be sharing a physical switch port. And you can't use Linux iptables because the traffic is being bridged, not routed, through the hypervisor machine. But you can emulate switch port security on the hypervisor with Linux ebtables, which is a lesser-known layer 2/3 firewall on the Linux ...


6

This is how I currently do installs of Windows with virtio drivers at install: Create the new VM with a genuine Windows installation ISO image. I cannot guarantee that anything will work if you use a pirated copy of Windows or if your ISO image download is incomplete or corrupt. Choose to customize the machine configuration before install. Select the ...


6

While it might not look like one, Hyper-V actually is a type-1 hypervisor, because the virtualization layer is placed below the Windows operating system and mediates all hardware access (some time ago, before hardware-assisted virtualization improved a lot, it was very common to experience really slow graphic performance on Hyper-V hosts, due to the O.S. ...


6

This is for google guys like me. Those answers are pretty useless, this is not a distro problem but a bug in Windows: http://keyliner.blogspot.se/2009/11/windows-7-slow-keyboard-response.html (second clause) That is what helped me: a. Start, Run, "Regedit" If the RUN command is not visible, see this link. b. Tunnel to this key: ...


5

The Problem I've got the same problem and I haven't found a good solution. Here's what I found: The problem is that after resume, the system and hardware clock times on the guest are different: root@guest:~# date; hwclock Sat Oct 11 13:09:38 UTC 2014 Sat Oct 11 13:10:42 2014 -0.454380 seconds On the host, they agree: root@four:~# date; hwclock Sat ...


4

So I'm managed to run the nested Hypervisor inside KVM and it turns out to me that the Red Hat Kernel 2.6.32 did not support the nested keyword when it was passed using kvm-intel.nested=1 so that is the reason there was no file such as /sys/module/kvm_intel/parameters/nested It worked for me in kernel 3.10 I installed it set the nested parameter. ...


4

Set the wanted disk as virtio-disk0, with target of /dev/vda. The order the disks appear in, in the XML is also important, so make sure the OS disk comes first


4

No, it doesn't work like that. Among the reasons is that for a single thread, you can never get more than the 2 GHz clock speed one single core offers and virtualization is no trick around this fundamental restriction.


4

You can, but you probably shouldn't. The DL360 G7 doesn't present disks in a JBOD fashion. If you're using the onboard HP Smart Array controller, this won't work the way you expect. Depending on the OS you use, there are swap and other I/O activity considerations. Why go through all of this? If you want ZFS, just use it on the server in a baremetal OS ...


4

Here is a serious problem: <domain type='qemu'> This should appear as: <domain type='kvm'> If this is set to qemu, then qemu will run the machine without any sort of hardware virtualization support. Without this option set, qemu will not be told to enable KVM hardware acceleration. This is fine for, e.g. emulating non-Intel processors, but ...


3

Is it safe to boot Linux from a USB drive? Yes, why not? I do it regularly. But having said that, it's not entirely trivial to do it well. If you just straight install Linux to a USB disk it's usually really slow and doesn't really work that great. However, if you use a tool like unetbootin it'll create a more optimal installation with which you can ...


3

Define "safe". As in: Does the system boot from USB? Yes Data integrity? No Fault tolerance? No I would not trust a file server to be booted from a single USB pen, unless it's a server just for testing/lab etc. We use USB drives (expensive ones) in our vSphere Cluster, and I've encountered failures many times. You've indicated that you have replaced the ...


3

You may be overthinking this. The manual assignment of cores here could actually result in lower performance. In the VMware world, we don't do this unless there are very specific requirements, but for the workload and applications you've described, it's not necessary. Let KVM schedule things and be done. If in doubt, get more cores and sockets. But CPU ...


3

-device e1000,netdev=hostnet0 This. Switch to virtio_net before you try anything else. step two: try to play with the NIC offload settings using ethtool -K turn off TSO, LSO, LRO, see if you get different results. step three: try a different distro. Ubuntu is notorious for KVM related bugs, so switch to CentOS or even Fedora as a test.


3

Check that your VMs have ip addresses on 10.x.x.x/24 (netmask 255.255.255.0) Set 10.x.x.11 (br0 ip address) as the default gateway of your VMs Enable ip forwarding on the physical host Enable SNAT with: iptables -t nat -A POSTROUTING -s 10.x.x.x/24 -o eth1 -j SNAT --to y.y.y.102


3

To change the state of the network link for a KVM guest it would be much better to use the appropriate tool, i.e. the hypervisor virsh domif-setlink domain interface-device state Modify link state of the domain’s virtual interface. Possible values for state are "up" and "down". If --config is specified, only the persistent configuration of the ...


3

On my RHEL6 and CentOS6 that is established by creating a symbolic link to VM XML description in /etc/libvirt/qemu/autostart/ : ls -la /etc/libvirt/qemu/autostart/ total 4 drwxr-xr-x. 2 root root 4096 Dec 19 2012 . drwx------. 4 root root 4096 Dec 21 08:50 .. lrwxrwxrwx. 1 root root 29 Mar 3 2012 hosting2.xml -> ../hosting2.xml lrwxrwxrwx. 1 root ...


3

You need to specify a valid URI for the migration to be successful. What kind of transport is available depends on your setup, but try qemu+ssh://10.8.1.9.


3

After verifying base guest configuration file (xml) found the problem. <vcpu placement='static' cpuset='2'>1</vcpu> Since I used same template for creating all VMs after cloning, all VMs were using same CPU.


2

Theres a lot of free memory, but these zones are totally fragmented: Node 0 Normal: 1648026*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 6592104kB Node 1 Normal: 8390977*4kB 1181188*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB There are very few non-zero order pages left, none in one ...


2

Since KVM is a part of Linux, any Linux based monitoring solutions will work, from the standard nagios checks to proprietary hardware health monitoring solutions, like Dell OMSA. RHEV will monitor the hosts' health, keep the VMs working and make sure all hosts can access all the required cluster resources, but it is not meant to monitor hardware level ...


2

If a forwarder is configured, dnsmasq will forward all DNS queries that it has no explicit data for. This includes records for configured static DHCP clients that have no active lease, AAAA records unless IPv6 addresses are defined explicitly, and more. There are several ways to avoid this: Don't configure a forwarder Simply omit the fowarder entries in ...


2

bond-mode 0 This is the problem. Bridging doesn't support modes 0 and 6, In fact, for optimal performance, you should stick to either mode 1 or 4


2

the procedure that we use to generate the official Windows Server 2012 R2 evaluation images for OpenStack is detailed here: https://github.com/cloudbase/windows-openstack-imaging-tools Windows OpenStack images (KVM and Hyper-V): http://www.cloudbase.it/ws2012r2/


2

If i'm not wrong, you are trying to pass through host's present VGA to a VM. frankly this is a bit tricky, there are many requirements, starts from hardware. First, you need A proper CPU that supports Intel VT-d (directed I/O) A Mobo that supports VT-d and iommu. Your linux kernel must be compiled with intel_iommu (Fedora & Ubuntu supports by ...


2

You seem to have installed the NVIDIA proprietary graphics drivers on the host. If you mean to use this card on the guest, and you aren't using any other NVIDIA cards, try uninstalling this driver.


2

Easy solution: connect with nc -U socket-file to your QEMU monitor, where socket-file is the path to monitor. How to find: ps -FA | grep qemu. You will find there at the command line. And run the command at the monitor: device_add usb-host,id=<ANY string>,hostbus=<BUS>,hostport=<PORT> this is pass-through by port number. You can pass ...



Only top voted, non community-wiki answers of a minimum length are eligible