#!/bin/bash sudo su # install kvm apt-get install -y qemu kvm ubuntu-vm-builder # install PXE boot ROM apt-get install kvm-pxe http://rom-o-matic.net/etherboot/etherboot-git/etherboot.git/contrib/rom-o-matic/ 1. NIC/ROM type: e1000:e1000-0x1026-82545gm-copper -- [8086,1026] 2. ROM output format: Binary ROM Image(.zrom) 3. Configure, ASK_BOOT: -1 4. Get ROM # copy rom to kvm directory mv ~/eb-git-e1000.zrom /usr/share/kvm/pxe-e1000.bin # EXAMPLES # create image qemu-img create disk.img -f qcow2 4G # livecd boot kvm -m 256 -cdrom cd.iso -boot d disk.img -soundhw es1370 -usb -usbdevice tablet -net nic,model=virtio -net user # -net nic,model=rtl8139 -net user # pxe network boot kvm -net nic,model=e1000,macaddr=00:22:22:22:22:22 -net tap -boot n ubuntu-vm-builder kvm hardy \ --mem 256 \ --domain test \ --dest kvmhost \ --arch i386 \ --hostname kvmhost \ --user test \ --pass test \ --mirror http://archive.ubuntu.com/ubuntu \ --components main,universe \ --addpkg vim \ --libvirt qemu:///system # windows xp installation qemu-img create winxp.img -f qcow2 4G kvm -m 1024 -cpu host -smp 2 -cdrom ../iso/xppro.iso -boot d winxp.img -usb -usbdevice tablet -net nic,model=virtio -net user # windows xp run kvm -m 1024 kvm_xp.img -usb -usbdevice tablet -net nic,model=virtio -net user # LINKS https://help.ubuntu.com/community/KVM http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers http://www.linux-kvm.com/content/preview-redhat-54-windows-virtio-drivers-part-1 http://kvm.qumranet.com/kvmwiki/Front_Page http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:qemu http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html # test -pcidevice host=bus:dev.func
Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!