https://linux-kvm.org/api.php?action=feedcontributions&user=Xming&feedformat=atomKVM - User contributions [en]2024-03-28T09:45:32ZUser contributionsMediaWiki 1.39.5https://linux-kvm.org/index.php?title=KvmOnGentoo&diff=4749KvmOnGentoo2013-05-09T11:34:53Z<p>Xming: </p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally (if you want to use vhost)<br />
CONFIG_VHOST_NET=y<br />
<br />
== Installing ==<br />
* printf '%s\n' 'QEMU_SOFTMMU_TARGETS="i386 x86_64"' 'QEMU_USER_TARGETS="i386 x86_64"' >> /etc/portage/make.conf<br />
(If you haven't migrated /etc/make.conf to /etc/portage/make.conf yet, use /etc/make.conf instead or migrate it to /etc/portage/make.conf)<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0="null" # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm="192.168.254.254/24" # the ip of the original eth0, or dhcp<br />
brctl_brkvm="setfd 0<br />
sethello 30<br />
stp off"<br />
<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default<br />
<br />
== VM start/stop ==<br />
* there are no standard Gentoo way to do this, you will need 3rd party scripts/front-ends.<br />
<br />
== Spice ==<br />
(TODO)</div>Xminghttps://linux-kvm.org/index.php?title=KvmOnGentoo&diff=4748KvmOnGentoo2013-05-09T11:34:07Z<p>Xming: typo</p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally (if you want to use vhost)<br />
CONFIG_VHOST_NET=y<br />
<br />
== Installing ==<br />
* printf '%s\n' 'QEMU_SOFTMMU_TARGETS="i386 x86_64"' 'QEMU_USER_TARGETS="i386 x86_64"' >> /etc/portage/make.conf<br />
(If you haven't migrated /etc/make.conf to /etc/portage/make.conf yet, use /etc/portage instead or migrate it to /etc/portage/make.conf)<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0="null" # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm="192.168.254.254/24" # the ip of the original eth0, or dhcp<br />
brctl_brkvm="setfd 0<br />
sethello 30<br />
stp off"<br />
<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default<br />
<br />
== VM start/stop ==<br />
* there are no standard Gentoo way to do this, you will need 3rd party scripts/front-ends.<br />
<br />
== Spice ==<br />
(TODO)</div>Xminghttps://linux-kvm.org/index.php?title=KvmOnGentoo&diff=4746KvmOnGentoo2013-05-09T11:29:59Z<p>Xming: </p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally (if you want to use vhost)<br />
CONFIG_VHOST_NET=y<br />
<br />
== Installing ==<br />
* printf '%s\n' 'QEMU_SOFTMMU_TARGETS="i386 x86_64"' 'QEMU_USER_TARGETS="i386 x86_64"' >> /etc/protage/make.conf<br />
(If you haven't migrated /etc/make.conf to /etc/protage/make.conf yet, use /etc/portage instead or migrate it to /etc/protage/make.conf)<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0="null" # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm="192.168.254.254/24" # the ip of the original eth0, or dhcp<br />
brctl_brkvm="setfd 0<br />
sethello 30<br />
stp off"<br />
<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default<br />
<br />
== VM start/stop ==<br />
* there are no standard Gentoo way to do this, you will need 3rd party scripts/front-ends.<br />
<br />
== Spice ==<br />
(TODO)</div>Xminghttps://linux-kvm.org/index.php?title=KvmOnGentoo&diff=4630KvmOnGentoo2013-03-13T12:46:46Z<p>Xming: </p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally (if you want to use vhost)<br />
CONFIG_VHOST_NET=y<br />
<br />
== Installing ==<br />
* printf 'QEMU_SOFTMMU_TARGETS="i386 x86_64"\nQEMU_USER_TARGETS="i386 x86_64"\n' >> /etc/make.conf<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0="null" # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm="192.168.254.254/24" # the ip of the original eth0, or dhcp<br />
brctl_brkvm="setfd 0<br />
sethello 30<br />
stp off"<br />
<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default<br />
<br />
== VM start/stop ==<br />
* there are no standard Gentoo way to do this, you will need 3rd party scripts/front-ends.<br />
<br />
== Spice ==<br />
(TODO)</div>Xminghttps://linux-kvm.org/index.php?title=KvmOnGentoo&diff=4629KvmOnGentoo2013-03-13T12:42:14Z<p>Xming: deleted wrong quotes</p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally (if you want to use vhost)<br />
CONFIG_VHOST_NET=y<br />
<br />
== Installing ==<br />
* printf 'QEMU_SOFTMMU_TARGETS="i386 x86_64"\nQEMU_USER_TARGETS="i386 x86_64"\n' >> /etc/make.conf<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0="null" # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm="192.168.254.254/24" # the ip of the original eth0, or dhcp<br />
brctl_brkvm="setfd 0<br />
sethello 30<br />
stp off"<br />
<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default</div>Xminghttps://linux-kvm.org/index.php?title=UsingVhost&diff=3513UsingVhost2011-03-08T10:24:57Z<p>Xming: </p>
<hr />
<div>As of September 2010, vhost is not included in any released tarballs, so you need the git version.<br />
<br />
[[VhostNet]] provides better latency (10% less than e1000 on my system) and greater throughput (8x the normal virtio, around 7~8 Gigabits/sec here) for network.<br />
<br />
=== Obtaining the code ===<br />
<br />
'''You need the at least qemu-kvm-0.13.0''' (http://sourceforge.net/projects/kvm/files/qemu-kvm/)<br />
<br />
=== kernel requirements ===<br />
<br />
On the host you need a kernel with CONFIG_VHOST_NET=y and in the guest you need a kernel with CONFIG_PCI_MSI=y<br />
<br />
=== example command line ===<br />
To start a guest with vhost:<br />
* kvm -netdev type=tap,id=guest0,script=kvm-ifup,'''vhost=on''' -device virtio-net-pci,netdev=guest0,mac=''ma:c:a:dd:re:ss'' ..''other options''..<br />
<br />
=== Caveats ===<br />
Some DHCP clients have problems with this implementation, more [http://www.spinics.net/lists/kvm/msg37660.html details here].</div>Xminghttps://linux-kvm.org/index.php?title=UsingVhost&diff=3468UsingVhost2011-01-13T12:41:37Z<p>Xming: </p>
<hr />
<div>As of September 2010, vhost is not included in any released tarballs, so you need the git version.<br />
<br />
[[VhostNet]] provides better latency (10% less than e1000 on my system) and greater throughput (8x the normal virtio, around 7~8 Gigabits/sec here) for network.<br />
<br />
=== Obtaining the code ===<br />
<br />
you need the at least qemu-kvm-0.13.0 (http://sourceforge.net/projects/kvm/files/qemu-kvm/)<br />
<br />
=== kernel requirements ===<br />
<br />
On the host you need a kernel with CONFIG_VHOST_NET=y and in the guest you need a kernel with CONFIG_PCI_MSI=y<br />
<br />
=== example command line ===<br />
To start a guest with vhost:<br />
* /usr/bin/kvm -netdev type=tap,id=guest0,script=kvm-ifup,vhost=on -device virtio-net-pci,netdev=guest0,mac=00:16:3e:00:00:01 ..other options..<br />
<br />
=== Caveats ===<br />
Some DHCP clients have problems with this implementation, more [http://www.spinics.net/lists/kvm/msg37660.html details here].</div>Xminghttps://linux-kvm.org/index.php?title=KvmOnGentoo&diff=3369KvmOnGentoo2010-10-28T12:08:47Z<p>Xming: </p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally (if you want to use vhost)<br />
CONFIG_VHOST_NET=y<br />
<br />
== Installing ==<br />
* printf 'QEMU_SOFTMMU_TARGETS="i386 x86_64"\nQEMU_USER_TARGETS="i386 x86_64"\n' >> /etc/make.conf<br />
* echo "app-emulation/qemu-kvm ~amd64" >> /etc/portage/package.keywords<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0=( "null" ) # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm=( "192.168.254.254/24" ) # the ip of the original eth0, or dhcp<br />
brctl_brkvm=(<br />
"setfd 0"<br />
"sethello 30"<br />
"stp off"<br />
)<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default</div>Xminghttps://linux-kvm.org/index.php?title=UsingVhost&diff=3257UsingVhost2010-09-20T09:36:19Z<p>Xming: </p>
<hr />
<div>As of September 2010, vhost is not included in any released tarballs, so you need the git version.<br />
<br />
[[VhostNet]] provides better latency (10% less than e1000 on my system) and greater throughput (8x the normal virtio, around 7~8 Gigabits/sec here) for network.<br />
<br />
=== Obtaining the code ===<br />
<br />
* git clone git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git<br />
* git checkout refs/remotes/origin/stable-0.13<br />
* cd kvm<br />
* compile as usual<br />
<br />
=== kernel requirements ===<br />
<br />
On the host you need a kernel with CONFIG_VHOST_NET=y and in the guest you need a kernel with CONFIG_PCI_MSI=y<br />
<br />
=== example command line ===<br />
To start a guest with vhost:<br />
* /usr/bin/kvm -netdev type=tap,id=guest0,script=kvm-ifup,vhost=on -device virtio-net-pci,netdev=guest0,mac=00:16:3e:00:00:01 ..other options..<br />
<br />
=== Caveats ===<br />
Some DHCP clients have problems with this implementation, more [http://www.spinics.net/lists/kvm/msg37660.html details here].</div>Xminghttps://linux-kvm.org/index.php?title=UsingVhost&diff=3255UsingVhost2010-09-20T08:59:39Z<p>Xming: wrong unit</p>
<hr />
<div>As of September 2010, vhost is not included in any released tarballs, so you need the git version.<br />
<br />
[[VhostNet]] provides better latency (10% less than e1000 on my system) and greater throughput (8x the normal virtio, around 7~8 Gigabits/sec here) for network.<br />
<br />
=== Obtaining the code ===<br />
<br />
* git clone git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git<br />
* git checkout refs/remotes/origin/stable-0.13<br />
* cd kvm<br />
* compile as usual<br />
<br />
=== kernel requirements ===<br />
<br />
On the host you need a kernel with CONFIG_VHOST_NET=y and in the guest you need a kernel with CONFIG_PCI_MSI=y<br />
<br />
=== example command line ===<br />
To start a guest with vhost:<br />
* /usr/bin/kvm -netdev type=tap,id=guest0,script=kvm-ifup,vhost=on -device virtio-net-pci,netdev=guest0,mac=00:16:3e:00:00:01 ..other options..</div>Xminghttps://linux-kvm.org/index.php?title=UsingVhost&diff=3243UsingVhost2010-09-15T11:43:31Z<p>Xming: </p>
<hr />
<div>As of September 2010, vhost is not included in any released tarballs, so you need the git version.<br />
<br />
Vhost provides better latency (10% less than e1000 on my system) and greater throughput (8x the normal virtio, around 7~8 Gigabytes/sec here) for network.<br />
<br />
=== Obtaining the code ===<br />
<br />
* git clone git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git<br />
* git checkout refs/remotes/origin/stable-0.13<br />
* cd kvm<br />
* compile as usual<br />
<br />
=== kernel requirements ===<br />
<br />
On the host you need a kernel with CONFIG_VHOST_NET=y and in the guest you need a kernel with CONFIG_PCI_MSI=y<br />
<br />
=== example command line ===<br />
To start a guest with vhost"<br />
* /usr/bin/kvm -m 1024 -netdev type=tap,id=guest0,script=kvm-ifup,vhost=on -device virtio-net-pci,netdev=guest0,mac=00:16:3e:00:00:01 -drive file=/dev/volume01/guest0,if=virtio,boot=on -daemonize</div>Xminghttps://linux-kvm.org/index.php?title=HOWTO&diff=3242HOWTO2010-09-15T11:31:02Z<p>Xming: </p>
<hr />
<div>= Howto's =<br />
<br />
== General ==<br />
* [[HOWTO1 | Getting KVM to run on your machine]]<br />
* [[choose the right kvm & kernel version]]<br />
* [[How To Migrate From Vmware To KVM]]<br />
* [http://www.basicsedv.de/bthesis.html Migrating User Mode Linux to Xen and KVM]<br />
<br />
== Network related ==<br />
<br />
* [[Networking| Setting guest network]]<br />
* [[NetConsole| set up a network console]]<br />
<br />
== Hardware related ==<br />
<br />
* [[How to assign devices with VT-d in KVM]]<br />
* [[Enable VT-X on Mac Pro (Early 2008)]] <br />
<br />
=== USB ===<br />
* [[usb related]]<br />
<br />
=== Ethernet ===<br />
* [[ethernet_related]]<br />
<br />
=== PCI ===<br />
* [[hotadd pci devices]]<br />
<br />
=== Sound ===<br />
* Using [[Sound]] in the guest<br />
<br />
=== virtio ===<br />
<br />
* [[boot from virtio block device]]<br />
* [[Using VirtIO NIC|use virtio_net interface]] in the guest (Debian)<br />
<br />
=== vhost ===<br />
* [[UsingVhost|Using vhost]]<br />
<br />
=== cdrom ===<br />
* [[Change cdrom| Changing disks in the cdrom drive]]<br />
<br />
<br />
== Operating System related ==<br />
<br />
=== Gentoo ===<br />
* [[KvmOnGentoo|KVM on Gentoo hosts]]<br />
<br />
=== Ubuntu ===<br />
* [http://www.howtoforge.com/using-kvm-on-ubuntu-gutsy-gibbon using-kvm-on-ubuntu-gutsy-gibbon]<br />
* [[AnthonyLiguori/Networking| Setting up NAT with KVM in Ubuntu]]<br />
* [https://help.ubuntu.com/community/KVM Running Guest Systems on Ubuntu 7.04 Feisty Fawn]<br />
* [http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-9.04 Virtualization With KVM On Ubuntu 9.04 Jaunty]<br />
<br />
=== Fedora ===<br />
* [http://fedoraproject.org/wiki/Virtualization_Quick_Start Fedora Virt Quick Start]<br />
<br />
=== ArchLinux ===<br />
* [http://wiki.archlinux.org/index.php/Kvm Setting up KVM on ArchLinux]<br />
* [http://wiki.archlinux.org/index.php/Qemu Detailed QEMU Tutorial ]<br />
<br />
=== BSD ===<br />
* [http://www.linux-kvm.org/page/BSD KVM on BSD, FreeBSD]<br />
<br />
=== Windows ===<br />
* [[WindowsGuestDrivers|Information about guest drivers]]<br />
* [[Windows7Install|Install Windows 7]]<br />
<br />
=== Windows Vista ===<br />
* [[Vista Networking Workaround]]<br />
<br />
== Scripting & Software ==<br />
* [[HowToConfigScript|Configuration Script for KVM]] - a complete management utility, configuration file format, and init script.<br />
* [http://www.roessner-net.com/?p=219 Another script for KVM] - Init scripts for kvm, using it with time scheduled start order (German)<br />
* [[simple shell script to manage your virtual machine with bridged networking]]<br />
* [http://www.papercut.com/blog/chris/2008/11/14/using-kvm-to-securely-host-servers-in-a-dmz/ Hosting your VMs in a DMZ] - a management and configuration script to assist with setting up a VM in a semi-secured demilitarized zone.<br />
* [http://pve.proxmox.com/wiki/Bare-metal_ISO_Installer Bare-metal] installer with KVM<br />
<br />
=== libvirt ===<br />
<br />
* [[Running libvirt with KVM]]<br />
<br />
== Other ==<br />
<br />
* [[HOWTO VMGL]] - OpenGL support for Linux guests</div>Xminghttps://linux-kvm.org/index.php?title=KvmOnGentoo&diff=3241KvmOnGentoo2010-09-15T11:20:28Z<p>Xming: </p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally<br />
CONFIG_VIRTIO=y<br />
CONFIG_VIRTIO_RING=y<br />
CONFIG_VIRTIO_PCI=y<br />
CONFIG_VIRTIO_BALLOON=y<br />
<br />
== Installing ==<br />
* printf 'QEMU_SOFTMMU_TARGETS="i386 x86_64"\nQEMU_USER_TARGETS="i386 x86_64"\n' >> /etc/make.conf<br />
* echo "app-emulation/qemu-kvm ~amd64" >> /etc/portage/package.keywords<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0=( "null" ) # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm=( "192.168.254.254/24" ) # the ip of the original eth0, or dhcp<br />
brctl_brkvm=(<br />
"setfd 0"<br />
"sethello 30"<br />
"stp off"<br />
)<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default</div>Xminghttps://linux-kvm.org/index.php?title=KvmOnGentoo&diff=3240KvmOnGentoo2010-09-15T11:19:24Z<p>Xming: </p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally<br />
CONFIG_VIRTIO=y<br />
CONFIG_VIRTIO_RING=y<br />
CONFIG_VIRTIO_PCI=y<br />
CONFIG_VIRTIO_BALLOON=y<br />
<br />
== Installing ==<br />
* printf 'QEMU_SOFTMMU_TARGETS="i386 x86_64"\nQEMU_USER_TARGETS="i386 x86_64"\n' >> /etc/make.conf<br />
QEMU_USER_TARGETS="i386 x86_64"<br />
* echo "app-emulation/qemu-kvm ~amd64" >> /etc/portage/package.keywords<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0=( "null" ) # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm=( "192.168.254.254/24" ) # the ip of the original eth0, or dhcp<br />
brctl_brkvm=(<br />
"setfd 0"<br />
"sethello 30"<br />
"stp off"<br />
)<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default</div>Xminghttps://linux-kvm.org/index.php?title=KvmOnGentoo&diff=3239KvmOnGentoo2010-09-15T11:10:47Z<p>Xming: </p>
<hr />
<div>== Requirement ==<br />
* a Gentoo install on a vt (Intel) or svm (AMD) machine<br />
* kernel compiled with at least, either y or m<br />
<br />
CONFIG_HAVE_KVM=y<br />
CONFIG_HAVE_KVM_IRQCHIP=y<br />
CONFIG_HAVE_KVM_EVENTFD=y<br />
CONFIG_KVM=y<br />
<br />
and CONFIG_KVM_INTEL=y or CONFIG_KVM_AMD=y depending if you are using Intel or AMD CPU<br />
<br />
optionally<br />
CONFIG_VIRTIO=y<br />
CONFIG_VIRTIO_RING=y<br />
CONFIG_VIRTIO_PCI=y<br />
CONFIG_VIRTIO_BALLOON=y<br />
<br />
== Installing ==<br />
* echo "app-emulation/qemu-kvm ~amd64" >> /etc/portage/package.keywords<br />
* emerge app-emulation/qemu-kvm<br />
<br />
== Network setup ==<br />
=== Bridged ===<br />
* edit /etc/conf.d/net<br />
config_eth0=( "null" ) # any any other interfaces you want to bridge<br />
bridge_brkvm="eth0"<br />
config_brkvm=( "192.168.254.254/24" ) # the ip of the original eth0, or dhcp<br />
brctl_brkvm=(<br />
"setfd 0"<br />
"sethello 30"<br />
"stp off"<br />
)<br />
* cd /etc/init.d<br />
* ln -s net.lo net.brkvm<br />
* rc-update add net.brkvm default<br />
* rc-update del net.eth0 default</div>Xminghttps://linux-kvm.org/index.php?title=HOWTO&diff=3238HOWTO2010-09-15T10:52:34Z<p>Xming: </p>
<hr />
<div>= Howto's =<br />
<br />
== General ==<br />
* [[HOWTO1 | Getting KVM to run on your machine]]<br />
* [[choose the right kvm & kernel version]]<br />
* [[How To Migrate From Vmware To KVM]]<br />
* [http://www.basicsedv.de/bthesis.html Migrating User Mode Linux to Xen and KVM]<br />
<br />
== Network related ==<br />
<br />
* [[Networking| Setting guest network]]<br />
* [[NetConsole| set up a network console]]<br />
<br />
== Hardware related ==<br />
<br />
* [[How to assign devices with VT-d in KVM]]<br />
* [[Enable VT-X on Mac Pro (Early 2008)]] <br />
<br />
=== USB ===<br />
* [[usb related]]<br />
<br />
=== Ethernet ===<br />
* [[ethernet_related]]<br />
<br />
=== PCI ===<br />
* [[hotadd pci devices]]<br />
<br />
=== Sound ===<br />
* Using [[Sound]] in the guest<br />
<br />
=== virtio ===<br />
<br />
* [[boot from virtio block device]]<br />
* [[Using VirtIO NIC|use virtio_net interface]] in the guest (Debian)<br />
<br />
=== cdrom ===<br />
* [[Change cdrom| Changing disks in the cdrom drive]]<br />
<br />
<br />
== Operating System related ==<br />
<br />
=== Gentoo ===<br />
* [[KvmOnGentoo|KVM on Gentoo hosts]]<br />
<br />
=== Ubuntu ===<br />
* [http://www.howtoforge.com/using-kvm-on-ubuntu-gutsy-gibbon using-kvm-on-ubuntu-gutsy-gibbon]<br />
* [[AnthonyLiguori/Networking| Setting up NAT with KVM in Ubuntu]]<br />
* [https://help.ubuntu.com/community/KVM Running Guest Systems on Ubuntu 7.04 Feisty Fawn]<br />
* [http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-9.04 Virtualization With KVM On Ubuntu 9.04 Jaunty]<br />
<br />
=== Fedora ===<br />
* [http://fedoraproject.org/wiki/Virtualization_Quick_Start Fedora Virt Quick Start]<br />
<br />
=== ArchLinux ===<br />
* [http://wiki.archlinux.org/index.php/Kvm Setting up KVM on ArchLinux]<br />
* [http://wiki.archlinux.org/index.php/Qemu Detailed QEMU Tutorial ]<br />
<br />
=== BSD ===<br />
* [http://www.linux-kvm.org/page/BSD KVM on BSD, FreeBSD]<br />
<br />
=== Windows ===<br />
* [[WindowsGuestDrivers|Information about guest drivers]]<br />
* [[Windows7Install|Install Windows 7]]<br />
<br />
=== Windows Vista ===<br />
* [[Vista Networking Workaround]]<br />
<br />
== Scripting & Software ==<br />
* [[HowToConfigScript|Configuration Script for KVM]] - a complete management utility, configuration file format, and init script.<br />
* [http://www.roessner-net.com/?p=219 Another script for KVM] - Init scripts for kvm, using it with time scheduled start order (German)<br />
* [[simple shell script to manage your virtual machine with bridged networking]]<br />
* [http://www.papercut.com/blog/chris/2008/11/14/using-kvm-to-securely-host-servers-in-a-dmz/ Hosting your VMs in a DMZ] - a management and configuration script to assist with setting up a VM in a semi-secured demilitarized zone.<br />
* [http://pve.proxmox.com/wiki/Bare-metal_ISO_Installer Bare-metal] installer with KVM<br />
<br />
=== libvirt ===<br />
<br />
* [[Running libvirt with KVM]]<br />
<br />
== Other ==<br />
<br />
* [[HOWTO VMGL]] - OpenGL support for Linux guests</div>Xminghttps://linux-kvm.org/index.php?title=HOWTO&diff=3237HOWTO2010-09-15T10:52:15Z<p>Xming: </p>
<hr />
<div>= Howto's =<br />
<br />
== General ==<br />
* [[HOWTO1 | Getting KVM to run on your machine]]<br />
* [[choose the right kvm & kernel version]]<br />
* [[How To Migrate From Vmware To KVM]]<br />
* [http://www.basicsedv.de/bthesis.html Migrating User Mode Linux to Xen and KVM]<br />
<br />
== Network related ==<br />
<br />
* [[Networking| Setting guest network]]<br />
* [[NetConsole| set up a network console]]<br />
<br />
== Hardware related ==<br />
<br />
* [[How to assign devices with VT-d in KVM]]<br />
* [[Enable VT-X on Mac Pro (Early 2008)]] <br />
<br />
=== USB ===<br />
* [[usb related]]<br />
<br />
=== Ethernet ===<br />
* [[ethernet_related]]<br />
<br />
=== PCI ===<br />
* [[hotadd pci devices]]<br />
<br />
=== Sound ===<br />
* Using [[Sound]] in the guest<br />
<br />
=== virtio ===<br />
<br />
* [[boot from virtio block device]]<br />
* [[Using VirtIO NIC|use virtio_net interface]] in the guest (Debian)<br />
<br />
=== cdrom ===<br />
* [[Change cdrom| Changing disks in the cdrom drive]]<br />
<br />
<br />
== Operating System related ==<br />
<br />
=== Gentoo ===<br />
[[KvmOnGentoo|KVM on Gentoo hosts]]<br />
<br />
=== Ubuntu ===<br />
* [http://www.howtoforge.com/using-kvm-on-ubuntu-gutsy-gibbon using-kvm-on-ubuntu-gutsy-gibbon]<br />
* [[AnthonyLiguori/Networking| Setting up NAT with KVM in Ubuntu]]<br />
* [https://help.ubuntu.com/community/KVM Running Guest Systems on Ubuntu 7.04 Feisty Fawn]<br />
* [http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-9.04 Virtualization With KVM On Ubuntu 9.04 Jaunty]<br />
<br />
=== Fedora ===<br />
* [http://fedoraproject.org/wiki/Virtualization_Quick_Start Fedora Virt Quick Start]<br />
<br />
=== ArchLinux ===<br />
* [http://wiki.archlinux.org/index.php/Kvm Setting up KVM on ArchLinux]<br />
* [http://wiki.archlinux.org/index.php/Qemu Detailed QEMU Tutorial ]<br />
<br />
=== BSD ===<br />
* [http://www.linux-kvm.org/page/BSD KVM on BSD, FreeBSD]<br />
<br />
=== Windows ===<br />
* [[WindowsGuestDrivers|Information about guest drivers]]<br />
* [[Windows7Install|Install Windows 7]]<br />
<br />
=== Windows Vista ===<br />
* [[Vista Networking Workaround]]<br />
<br />
== Scripting & Software ==<br />
* [[HowToConfigScript|Configuration Script for KVM]] - a complete management utility, configuration file format, and init script.<br />
* [http://www.roessner-net.com/?p=219 Another script for KVM] - Init scripts for kvm, using it with time scheduled start order (German)<br />
* [[simple shell script to manage your virtual machine with bridged networking]]<br />
* [http://www.papercut.com/blog/chris/2008/11/14/using-kvm-to-securely-host-servers-in-a-dmz/ Hosting your VMs in a DMZ] - a management and configuration script to assist with setting up a VM in a semi-secured demilitarized zone.<br />
* [http://pve.proxmox.com/wiki/Bare-metal_ISO_Installer Bare-metal] installer with KVM<br />
<br />
=== libvirt ===<br />
<br />
* [[Running libvirt with KVM]]<br />
<br />
== Other ==<br />
<br />
* [[HOWTO VMGL]] - OpenGL support for Linux guests</div>Xming