Stephen Liu wrote:
--- David Mair <[EMAIL PROTECTED]> wrote:
Stephen Liu wrote:
Hi folks,
Can I run serveral guests on KVM at the same time similar to VMware
hypervisor?
Yes.
--
Hi David.
Thanks for your advice.
Any document for reference?
Assuming you have done a configure/make/make install then you need to
load the drivers. I load the kvm drivers via initrd so that means
arranging for them to be included and running mkinitrd. A reboot will
cause them to load but you can modprobe or insmod to load them without a
reboot.
I change the group of /dev/kvm to be the default group for most users
(you need to be able to read/write it to run a VM in my experience). I
did that with an init script. It's been a few kvm releases since I last
checked if that's still necessary.
After that you'll probably find more useful information if you search
for material about qemu rather than kvm. qemu is the userspace host
application for kvm VMs.
An example of the process of creating a VM is to create a virtual disk
image with qemu-img:
> qemu-img create -f qcow2 /path/to/my-vm-disk.img 8G
That creates a virtual disk that appears to a VM to be 8GB (the actual
file will start at about 40kB and grow with use).
Now, you can start a VM with qemu, the command lines can be quite long.
Here's a very basic example:
> qemu-system-x86_64 -m 512 \
-hda /path/to/my-vm-disk.img \
-cdrom /path/to/OSinstallDiskOrISO \
-boot d \
-name "My groovy new VM"
Replace the 512 with the amount of memory you want the VM to have. The
VM's IDE primary:master hard disk will be the virtual disk file you
created earlier. The VM's optical drive (IDE secondary:master) will have
"inserted" media that is whatever you use as the argument to -cdrom. It
can be an iso file or the dev file for an optical drive (and more).
The boot argument specifies which device the BIOS will try to boot from
(the optical drive in this case). You'll probably want to change the
boot d to boot c after the OS is installed.
The guest will have no networking as shown. Network configuration can be
intimidating. Try getting the basics working then ask for more help with
networking.
You'll also find in this mailing list archive a few wrapper scripts
people have done that make a lot of it easier to deal with.
On googling I only found;
Re: [kvm-devel] KVM and Perf Counters
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01133.html
http://synergy2.sourceforge.net/
synergy2.sourceforge.net — Synergy lets you easily share a single
mouse and keyboard between multiple computers with different operating
systems, each with its own display, without special hardware. It's
intended for users with multiple computers on their desk since each
system uses its own monitor(s).
There are several documents for Xen and VMware.
--
David.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html