怎么在VirtualBox中安装DELL OEM XP


因为需要跨平台测试Spark,使用VMWare运行了REHL5,Ubuntu Server, XP,最近升级了Host,从Ubuntu 9.04到Ubuntu 9.10,发现VMWare 6.3.5不能安装了,KVM的网络桥接模式又不能支持无线网卡,于是想到了在论坛里经常被大家提起的VirtualBox,于是就有了下文。

之前使用VMWare通过修改二进制文件可以达到修改虚拟机的BIOS信息的目的。

在VirtualBox中,修改BIOS信息的方法更加简单,阅读VirtualBox手册的9.14节,VirtualBox提供了一套命令用于修改BIOS信息。

9.14 Configuring the BIOS DMI information
The DMI data VirtualBox provides to guests can be changed for a specific VM. Use the
following commands to configure the DMI BIOS information:
VBoxManage setextradata "My VM"
       "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor"
       "Host BIOS Vendor"
VBoxManage setextradata "My VM"
       "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion"
       "Host BIOS Version"
VBoxManage setextradata "My VM"
       "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate"
       "Host BIOS Release Date"
VBoxManage setextradata "My VM"
       "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor"

下面详细说说修改BIOS的步骤,首先创建一个虚拟机,我创建 的虚拟机名称为xp
然后获取本机真实的BIOS信息,这一步可以通过sudo dmidecode -t0命令来执行,设置虚拟机BIOS信息的命令需要从t0,t1,t2三个type中获取。
sudo dmidecode -t0
[sudo] password for leo:
# dmidecode 2.9
SMBIOS 2.4 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: Dell Inc.
    Version: A06
    Release Date: 04/21/2008
    Address: 0xF0000
    Runtime Size: 64 kB
    ROM Size: 1024 kB
    Characteristics:
        ISA is supported
        PCI is supported
        PC Card (PCMCIA) is supported
        PNP is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        Boot from CD is supported
        Selectable boot is supported
        3.5"/720 KB floppy services are supported (int 13h)
        Print screen service is supported (int 5h)
        8042 keyboard services are supported (int 9h)
        Serial services are supported (int 14h)
        Printer services are supported (int 17h)
        CGA/mono video services are supported (int 10h)
        ACPI is supported
        USB legacy is supported
        AGP is supported
        Smart battery is supported
        BIOS boot specification is supported
        Function key-initiated network boot is supported
        Targeted content distribution is supported
    BIOS Revision: 0.6
    Firmware Revision: 0.6

获取到真实的信息之后,把真实的信息对应填入命令处,然后执行命令就可以了。命令的My VM处替换成你XP虚拟主机的名称。
注意:执行上面的命令的时候不用加上sudo,否则会提示找不到指定的虚拟机。

关于VirtualBOX,VirtualBox是Sun公司的开源虚拟机,支持它同样支持桥接无线网卡,这也是我没有选择KVM的原因。
VirtualBox主页:http://www.virtualbox.org/

效果图

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s