lytsing.org logo GNU - 安装使用virtualbox虚拟机

最流行的虚拟机。 到http://www.virtualbox.org/wiki/Downloads 下载最新的版本,我现在用的版本是:

[deli@athena gnu]$ rpm -qa | grep VirtualBox
VirtualBox-3.1-3.1.6_59338_fedora12-1.i686

配置网络

安装Virtualbox后,生成一个网卡 vboxnet0, 如下:

deli@deli-laptop:~$ ifconfig

eth0      Link encap:Ethernet  HWaddr 00:24:21:F1:EF:98
          inet addr:192.168.1.104  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::224:21ff:fef1:ef98/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:216498 errors:0 dropped:0 overruns:0 frame:0
          TX packets:161490 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:277430047 (264.5 MiB)  TX bytes:16114904 (15.3 MiB)
          Interrupt:27 Base address:0x8000

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:14747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14747 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8013556 (7.6 MiB)  TX bytes:8013556 (7.6 MiB)

vboxnet0  Link encap:Ethernet  HWaddr 0A:00:27:00:00:00
          inet addr:192.168.56.1  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1040 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:551232 (538.3 KiB)
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     1      0        0 eth0
192.168.56.0    *               255.255.255.0   U     0      0        0 vboxnet0
link-local      *               255.255.0.0     U     1002   0        0 eth0
default         bogon           0.0.0.0         UG    0      0        0 eth0

Network Adapter 1:

Adapter 2:

XP:

C:\Documents and Settings\Administrator> ipconfig /all

dapter 本地连接:

Connection-specific DNS Suffix  . :
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapte
r
Physical Address. . . . . . . . . : 08-00-27-B4-A6-47
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.56.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.56.1
DNS Servers . . . . . . . . . . . : 8.8.8.8

Ethernet adapter 本地连接 2:

Connection-specific DNS Suffix  . : broncho.org
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapte
r #2
Physical Address. . . . . . . . . : 08-00-27-90-07-CA
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.0.2.15
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.2.2
DHCP Server . . . . . . . . . . . : 10.0.2.2
DNS Servers . . . . . . . . . . . : 210.21.196.6
221.5.88.88
Lease Obtained. . . . . . . . . . : 2010年3月31日 13:45:26
Lease Expires . . . . . . . . . . : 2010年4月1日 13:45:26

C:\Documents and Settings\Administrator>

文件共享