Tag Info

Hot answers tagged

15

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


10

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.


10

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


7

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


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

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

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


6

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+'å'


5

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.


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

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.


4

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


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

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

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


3

Found the answer myself. I had to change the path from the emulation tag in the xml definition file. Changed it to qemu-system-x86_64 and now all works fine.


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

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


3

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


2

Because you probably don’t have any device connected via the VirtIO storage controller, Windows didn’t install this specific driver. To work around this issue, create a small temporary disk image and connect it to your VM via VirtIO. Start it up and Windows will install the driver. After that, you should be able to switch the boot disk’s configuration to ...


2

I have a fair bit of experience switching between booting a Windows partition natively and running it as a VM. First of all, hardware and driver support were NOT an issue for me, nor was it necessary to uninstall VMware Tools when booting in a physical context. That aside, it sounds like a great idea, but product activation is where it really falls down. ...


2

The process of moving VM's in KVM to another disk takes several steps. The first thing you need to do is setup a new storage pool on your second disk. This can be accomplished in virsh or virt-manager. Do do this in virsh you first need to create a XML file that will be referenced during the creation of the storage pool. Here is a sample XML file that you ...


2

Using genpfault answer as reference, I created another answer, I think is more simple. The first step is the same as above: Then I created a file called /lib/modprobe.d/pci-stub.conf, whith the args I found: options pci-stub ids=1002:9715,1002:970f Then I created a file called /lib/modprobe.d/drm.conf, with softdep: softdep drm pre: pci-stub This ...


2

A VM and a host OS cannot share block devices and file systems natively, it's completely corrupt the file system within minutes. It'll probably make more sense to share a directory in your host file system via NFS and have the VM PXE NetBoot from it. But if you just wanna R/W access to a project tree rather than the whole root file system in the vm, just ...


2

After long hours of getting my hands dirty, I chanced to stumble upon this Epic link. Get the MAC address of the VM from the config file of the VM(since I'm using KVM, I queried the .xml file for the MAC address). Then use arp -a and get all the the MAC addresses and the Address of the interfaces and store it in a file Query the file for the MAC address ...


2

Also in my case (Fedora 16 32 bits) I've installed everything ...also I've activated bios visualization vt-x... cpu is compatible .. but the same error (KVM is not available. This may mean the KVM package is not installed,or the KVM kernel modules are not loaded. Your virtual machines may perform poorly.) Finaly I've executed manualy modprobe kvm_intel and ...


2

Maybe you can give this a shot Booting an Ubuntu 12.04 virtual machine in an LXC container . At least LXC on Ubuntu provides various distro templates, I believe you can boot different Linux distro from the host.



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