Version 4 (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
增加虛擬網卡tap0,並且啟動
sudo chmod 666 /dev/net/tun sudo tunctl -u vm1(我的使用者) -t tp0 sudo ifconfig tap0 10.0.0.1 up
檢查tap0是否啟動起來
sudo ifconfig -a
Attachments (4)
- Ubuntu網路開機1.jpg (20.6 KB) - added by adherelinux 13 years ago.
- Ubuntu網路開機2.jpg (40.9 KB) - added by adherelinux 13 years ago.
- Debian網路開機1.jpg (19.1 KB) - added by adherelinux 13 years ago.
- Debian網路開機2.jpg (23.9 KB) - added by adherelinux 13 years ago.
Download all attachments as: .zip