求助:ubuntu下kvm虚拟机跑win2k,win2k网络如何设置?
发表于 : 2010-03-18 13:30
目前宿主系统ubuntu 8.04 server可以正常使用网络,但虚拟机下的Guest OS Win2k Server无法访问网络,Ping不通任何IP,浏览器也无法打开网页,在Win2k的网络设置里试过自动获取IP或指定IP:192.168.122.1,都不行,请求高人指点,我目前的情况该如何设置虚拟机和Win2k的网络?
服务器:Xeon 5420,机器在机房,IDC给分配的IP为:211.99.195.***
宿主系统:ubuntu 8.04 server 64bit
虚拟机:qemu-kvm
Guest OS:windows 2000 advance server
按照这个方法安装的KVM虚拟机:
https://help.ubuntu.com/community/KVM/Installation
按照这个方法配置的虚拟机网络桥接:
https://help.ubuntu.com/community/KVM/Networking
按照这个方法在虚拟机里安装的操作系统:
https://help.ubuntu.com/community/KVM/CreateGuests
/etc/network/interfaces 文件设置如下:
***@ubuntu:~$ ifconfig
/etc/libvirt/qemu/win2k_server.xml 文件内容如下:
服务器:Xeon 5420,机器在机房,IDC给分配的IP为:211.99.195.***
宿主系统:ubuntu 8.04 server 64bit
虚拟机:qemu-kvm
Guest OS:windows 2000 advance server
按照这个方法安装的KVM虚拟机:
https://help.ubuntu.com/community/KVM/Installation
按照这个方法配置的虚拟机网络桥接:
https://help.ubuntu.com/community/KVM/Networking
按照这个方法在虚拟机里安装的操作系统:
https://help.ubuntu.com/community/KVM/CreateGuests
/etc/network/interfaces 文件设置如下:
代码: 全选
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 211.99.195.***
netmask 255.255.255.128
gateway 211.99.208.254
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
代码: 全选
br0 Link encap:Ethernet HWaddr 00:21:5a:d1:ca:34
inet addr:211.99.195.*** Bcast:211.99.208.255 Mask:255.255.255.128
inet6 addr: fe80::221:5aff:fed1:ca34/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3396172 errors:0 dropped:0 overruns:0 frame:0
TX packets:2846448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:492730854 (469.9 MB) TX bytes:5891386331 (5.4 GB)
eth0 Link encap:Ethernet HWaddr 00:21:5a:d1:ca:34
inet6 addr: fe80::221:5aff:fed1:ca34/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3455890 errors:0 dropped:0 overruns:0 frame:0
TX packets:4717199 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:569201802 (542.8 MB) TX bytes:6015028753 (5.6 GB)
Interrupt:16 Memory:f8000000-f8012100
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2451666 errors:0 dropped:0 overruns:0 frame:0
TX packets:2451666 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2269696652 (2.1 GB) TX bytes:2269696652 (2.1 GB)
virbr0 Link encap:Ethernet HWaddr 00:ff:ec:29:75:f2
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::fc6a:63ff:fed6:1645/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:866 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:101401 (99.0 KB) TX bytes:468 (468.0 B)
vnet0 Link encap:Ethernet HWaddr 00:ff:ec:29:75:f2
inet6 addr: fe80::2ff:ecff:fe29:75f2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:866 errors:0 dropped:0 overruns:0 frame:0
TX packets:35193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:113525 (110.8 KB) TX bytes:1830192 (1.7 MB)
代码: 全选
<domain type='qemu'>
<name>win2k_server</name>
<uuid>709303e1-b426-28b8-8967-fdf308b9e23e</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<pae/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<disk type='file' device='disk'>
<source file='/home/***/kvm/windows.qcow2'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='bridge'>
<mac address='00:10:78:f6:6b:c6'/>
<source bridge='virbr0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<input type='tablet' bus='usb'/>