wiki:adherelinux/KVM/qemu-pxe

Version 3 (modified by adherelinux, 13 years ago) (diff)

--

qemu-pxe

這邊我們引用Stan http://superstanwu.blog.ithome.com.tw/post/775/76131

利用指令檢查cpu是否支援,目前的機器幾乎都有支援

egrep '(vmx|svm)' --color=always /proc/cpuinfo

應該要出現vmx字眼

安裝qemu,uml-utilities是為了模擬虛擬網路(tun)及虛擬網卡(tap)

sudo apt-get install vde2 uml-utilities

安裝dhcp server,tftp server 是為了PXE伺服器

sudo apt-get install dhcp3-server  tftpd-hpa

下載PXE的韌體

cd /usr/share/qemu
wget -O pxe-ne2k_pci.bin http://svn.savannah.gnu.org/viewvc/*checkout*/trunk/pc-bios/pxe-ne2k_pci.bin?root=qemu
wget -O pxe-rtl8139.bin http://svn.savannah.gnu.org/viewvc/*checkout*/trunk/pc-bios/pxe-rtl8139.bin?root=qemu
wget -O pxe-e1000.bin http://svn.savannah.gnu.org/viewvc/*checkout*/trunk/pc-bios/pxe-e1000.bin?root=qemu

Attachments (4)

Download all attachments as: .zip