Tag Info

Hot answers tagged

12

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


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


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.


5

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.


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.


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

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


4

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


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

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


3

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

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

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


2

I think this is an easy setup, but that might just be me. I would install the VMWare Hypervisor on all of the nodes, then on a Windows Server 2008 machine, install the VMWare VSphere Server, and optionally, on the same (or different) server, install the VMware VSphere client (which is what you will manage everything from). Have the nodes setup for HA (high ...


2

Use Vitual Machine Manager to run a VNC shell. Ctrl+Alt will lock you in the window and any further commands will go directly to that shell.


2

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.


2

I believe all Windows 7 versions can be installed in virtual machines. However, there are many limitations of what you're allowed, many more so on server versions than on workstation. If you don't care about the version, and just want one virtual machine, just search for the cheapest offer. For example, if you have a college email address you may get ...


2

This probably depends on your ISP and what type of connection you have, but if you don't have an IP configured, you are probably pretty safe. If your ISP happens to allow other protocols down the wire (most don't), then you might be vulnerable through one of them, if it were configured. EDIT: To answer the question in the comments, I believe ifconfig will ...


2

Your existing Windows XP partition was installed assuming certain things about your hardware (your particular motherboard, CPU, chipset, etc.). When you boot that partition inside a virtual machine, Windows sees a radically different set of hardware. Windows' installed configuration is unlikely to match the virtual hardware that KVM is presenting it, and ...


2

I have filed the same bug in ubuntu: https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/419182 Short answer: windows7 has no builtin driver for es1370.


2

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


2

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

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.


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

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



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