Hot answers tagged

20

To get out from a "virsh console": With an english keyboard try: # Ctrl+] # Ctrl+5 All those special keys are a great problem when using another keyboards than UK. Please provide with more examples below for different languages and OS. OSX Swedish map: Ctrl+'å'


19

Don't know if it's the ideal solution, but on an Ubuntu 12.04 guest I got it to work by adding the 9p modules to the initramfs. Added to /etc/initramfs-tools/modules: 9p 9pnet 9pnet_virtio Then: sudo update-initramfs -u


14

Add CDROM: attach-disk guest01 /root/disc1.iso hdc --driver file --type cdrom --mode readonly Change CDROM: attach-disk guest01 /root/disc2.iso hdc --driver file --type cdrom --mode readonly Remove CDROM: attach-disk guest01 " " hdc --driver file --type cdrom --mode readonly


11

Virtualbox will be much easier for use in the home. The GUI is great and its very simple to use... not to mention the amount of users and documentation out there. And with the recent hardware 3D acceleration addition its a great choice. Use Virtualbox.


11

what about prepending the root server pre-Routing module Mangle table rules by something like: iptables –I PREROUTING -t mangle -j ROUTE --gw 192.168.200.1 --tee and then prepending the post-Routing module Mangle table rules by something like iptables –I POSTROUTING -t mangle -j ROUTE --gw 192.168.200.1 --tee where 192.168.200.1 is the network ...


10

Use the vmvga Video Card I use virt-manager (as I'm a complete noob to kvm and libvirt). I was able to get higher resolutions on a Windows 7 guest by changing the video card from vga to vmvga in the virtual machine's settings window.


10

I had had some pci_stub-related lines in my rc.local but this was apparently too late in the boot process to help, running after radeon started fiddling with things. I fixed things by moving the pci_stub kernel module stuff to the initramfs: lspci -nn | grep Cayman to find the vendor:device numbers (at the very end of the line) for the 6950 and its HDMI ...


7

In libvirt 0.9.12 and maybe earlier, a command change-media exists: change-media <domain> <path> [<source>] [--eject] [--insert] [--update] [--current] [--live] [--config] [--force] Change CD: change-media guest01 hdb /pool/disc.iso Eject CD: change-media guest01 hdb --eject


6

You have a couple of different options to get USB into KVM. KVM does allow for you to map a USB port into the VM. There is a basic tutorial here. You will need to try this out, I have never had much success for non hard drives keyboards and mice. Your other solution is using usb over ethernet. You install a driver on another machine (server) where you ...


6

What's wrong with VirtualBox OSE then? I have it running on an LXDE system, and it's possible to run it completely headless. It will run Windows, it's relatively lightweight, great performance, and it's open source. KVM might be better when you have lots of VMs to run, but if you're used to using VMWare Workstation, VirtualBox will be the easiest thing ...


6

For testing and virtualized XP for daily use I recommend VirtualBox. It's free and has all the necessary features to run desktop OS's. It is also cross platform which means you can move your virtual machines around. For server type scenarios and always on machines I would use VMWare Server. It makes the management of machines simpler and easier.


6

virt-install does not appear to support multiple CD ROMs natively. Fortunately, there is a fairly direct way to get it to do so: Use virt-install to create the virtual machine with the first CD-ROM, in your case named xpsp1. Behind the scenes, libvirt will create an XML configuration file. Turn off the machine now (virsh destroy xpsp1); you were only ...


6

KVM images are restricted by selinux. Putting them in /var/lib/libvirt/images should suffice. http://libvirt.org/drvqemu.html#securityselinux goes into more detail.


6

/etc/polkit-1/rules.d/10.virt.rules: polkit.addRule(function(action, subject) { if (action.id == "org.libvirt.unix.manage" && subject.local && subject.active && subject.isInGroup("libvirt")) { return polkit.Result.YES; } }); You'll have to perform common steps including restarting ...


6

There's a few small issues with your conversion stanza. qemu-img convert -f qcow2 original.img -O vdi converted.vdi tells you to explicitly convert a qcow2 file to a VDI, and you have an raw image file. You essentially told your computer to translate a french text, using a spanish translator, into english. You are better off with qemu-img convert -O vdi ...


5

How much memory have you allocated to each instance? IIRC, Some VM's allocate exactly the amount you set for each VM, so with only 2GB of ram you are probably swapping a whole lot, causing performance issues. The obvious fix would be to get more than 2GB of ram, because low amounts of ram in addition to a slow CPU cause major performance issues.


4

Fast and dirty example for KVM on Centos 63 x86_64. Short ping in background to all possible IP addresses that the VMs may have in this segment for i in {1..249} do ping -c 1 -n -q -r -t 1 -s 1 -W 1 192.168.100.$i > /dev/null & done Extract the names and MAC addresses of the VMs via virsh and extract IP from ARP table for name in `virsh ...


4

The reason why you need a dedicated video output is that there is no way the host OS can currently access the output framebuffer of the card assigned to the guest OS. VT-d restricts the host from accessing/memory mapping the graphics memory directly. Normally, a modified driver (Nvidia Optimus or Bumblebee on Linux) exposes the results of a window running ...


4

Please do at least some basic research. The Wikipedia article on KVM says that it is implemented as a Linux kernel module (and later ported to Illumos), thus mostly type-2 like VirtualBox. But since KVM comes as a standard part of the OS, you could also say it's right in the middle. (However, you still need to install the user-space tools (qemu -enable-kvm)...


4

VirtualBox doesn't support hardware assisted VM's inside another VM. (It's a known issue with VirtualBox.) You can also tell from the cpuinfo readout: The VMX flag is not present.


3

a easy solution would be to edit the /etc/libvirt/qemu.conf file and uncommenting the following lines: User = "root" group = "root" Don't forget to restart libvirtd


3

Ubuntu and Debian use Upstart as a replacement for init, but legacy init scripts are supported. Chances are that you can add the option in a script in /etc/init.d with the same name as the service. Also look in /etc/init for .conf files that control the runlevels that services are started and stopped on and how they're respawned, etc.


3

Unfortunately I believe you have to buy a fully licensed copy, even for a virtual machine. I know you can install it in a vm though, as said in the EULA: Instead of using the software directly on the licensed device, you may install and use the software within only one virtual (or otherwise emulated) hardware system on the licensed device.


3

As of 2014, if you want to get better than the 1024x768 resolution offered by the Cirrus vGPU, and you are running KVM as your hypervisor on an x86_64 hostOS platform, you should look into using the QXL vGPU driver in the guestOS, coupled with the spice-server display. This can be configured from your virt-manager GUI settings (or of course from CLI args). ...


3

virsh console DOMAIN will open a terminal connected to serial console of DOMAIN.


3

If I recall correctly, serial ports don't have a standard means of detecting whether there is a terminal connected to the other side – or if they do, most virtual serial consoles simply don't bother implementing them. Hence the agetty instance for ttyS0 is started when the guest boots, and the login banner is simply sent to nowhere (to a disconnected ...


3

I don't have any experience with KVM myself, but for VirtualBox, VMWare and Parallels this will work. It takes several reboots of the W7 VM to recognize the new (virtual) hardware and you will have to install the Guest Additons/VMWare Tools/device drivers, whatever your virtualization software calls it. Be warned that switching back to using the partition "...


3

This may be what you are looking for. Sounds like it is possible, but bleeding edge.


3

Emulating cores will make things slower, not faster. Go with one unless you need several to test some applications. Your memory is set at 10 MB, which is hardly enough for anything. I have never used XML files for configuration, but some good command line options include -m 1024 -smp 1. A gig of memory should be enough for Windows XP, although you can go ...


3

You can easily do this, just specify hard disk (using kvm or virt-install), for ex.: kvm -hdd /dev/sda -m 1024 will boot OS from specified disk and allocate 1024 MB ofRAM. You also may install it on hard disk using kvm or xen, but installer need access to full drive (/dev/sd$), so if you have one physical drive on ore computer installing OS from ...



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