想在CentOS下用kvm的虚拟机安装win7!使用win7
第一步:先要在CentOS5.5下能上网!当然是使用无线网卡最方便!
第二步:用yum安装软件!
第三步:安装kvm!
第四步:使用kvm安装win7!
先来实现第一步!
首先,安装驱动。从附带的光盘里的linux驱动目录把压缩文件传到CentOS里,解压进入目录:
#make
#make install
在目录下的os/linux里就有了rt5370sta开头的四个文件!
#cp rt5370sta.ko /tmp
#modprobe rt5370sta
#ifconfig -a
# ifconfig ra0 down
# ifconfig ra0 up
# iwlist scan
#wpa_supplicant -B -Dwext -ira0 -c/etc/wpa_supplicant/wpa_supplicant.conf -d
Initializing interface 'ra0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='wheel' (DEPRECATED)
update_config=1
Priority group 0
id=0 ssid='any'
Initializing interface (2) 'ra0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
(wext) Device ra0 kernel driver name: usb.
ioctl[SIOCSIWPMKSA]: Network is down
ioctl[SIOCSIWMODE]: Network is down
Could not configure driver to use managed mode
SIOCGIWRANGE: WE(compiled)=20 WE(source)=14 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:25:22:43:6b:80
wpa_driver_wext_set_wpa
Device ra0 kernel driver name: usb.
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
ctrl_interface_group=10 (from group name 'wheel')
Added interface ra0
Daemonize..
# iwconfig ra0 essid "ZBD-2F" key xxxxxxxx
# iwpriv ra0 connStatus
ra0 connStatus:Connected(AP: ZBD-2F[B8:55:10:B9:59:70])
总算连上网了!
第二步:使用yum安装软件!
首先,更新yum源!
#cd /etc/yum.repos.d/
#mv CentOS-Base.repo CentOS-Base.repo.bk
#vi dvd.repo
#vi rpmforge.repo
均把enabled=1改成0
然后,进入
欢迎访问网易开源镜像站
点击
CentOS镜像使用帮助
下载CentOS5的repo文件,放入/etc/yum.repos.d
# yum clean all
# yum makecache
第三步:安装kvm
#yum install -y kvm-qemu-img libvirt bridge-utils
阅读(1295) | 评论(0) | 转发(0) |