ubuntu下VirtualBox 修改虚拟机BIOS的方法

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
yetie
帖子: 23
注册时间: 2006-05-26 20:34

ubuntu下VirtualBox 修改虚拟机BIOS的方法

#1

帖子 yetie » 2008-09-25 10:44

问:VirtualBox如何修改BIOS安装OEM版操作系统?
解决之道:VirtualBox 配置虚拟机BIOS的方法如下:
VirtualBox帮助文件(9.13. 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" \
1
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" \
2
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" \
3
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" \
4
Use the following commands to configure the DMI System information:
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" \
"Host System Vendor"
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" \
"Host System Product Name"
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" \
"Host System Version"
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" \
"Host System Serial"
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" \
"Host System UUID"
VBoxManage setextradata "My VM" \
"VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" \
"Host System Family"
If a DMI string is not set, the default value of VirtualBox is used. To set an empty string use "<EMPTY>".
Changing this information can be necessary to provide the DMI information of the host to the guest to prevent Windows from asking for a new product key. On Linux hosts the DMI BIOS information can be obtained with
dmidecode -t0
and the DMI system information can be obtained with
dmidecode -t1
=========================
以HP NC6000为例:

代码: 全选

sudo dmidecode -t1 

代码: 全选

# dmidecode 2.9
SMBIOS 2.3 present.

Handle 0x0001, DMI type 1, 25 bytes
System Information
        Manufacturer: Hewlett-Packard
        Product Name: HP Compaq nc6000 (PC478US#ABA)  
        Version: F.14                      
        Serial Number: CNU427070N
        UUID: 7F4C6E7F-885B-D911-079C-6D9908205929
        Wake-up Type: Power Switch


修改:

代码: 全选

VBoxManage setextradata "你的虚拟机名称" \
   "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" \
  "Hewlett-Packard"
VBoxManage setextradata "你的虚拟机名称" \
   "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" \
   "Hewlett-Packard"
其它牌子的机器类似方法。
HP Compaq NC6000
迅驰1.6G/512M-333/40G/无线/Ati M9600/14.1TFT 高分屏
Linux ubuntu 2.6.22-15-generic #1 SMP Tue Oct 21 23:47:12 GMT 2008 i686 GNU/Linux ->
Linux ubuntu 2.6.27-08-generic #1 SMP Thu Nov 6 17:33:54 UTC 2008 i686 GNU/Linux
头像
wl8450
帖子: 11
注册时间: 2006-06-06 9:35

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#2

帖子 wl8450 » 2008-09-25 22:39

:em05
好东西啊
luguode
帖子: 17
注册时间: 2008-10-22 17:07

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#3

帖子 luguode » 2008-10-22 17:12

楼主你试过可行吗?为什么我改成联想的还是装不了呢?
帥氣尐啉ル
帖子: 2
注册时间: 2008-10-27 21:03

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#4

帖子 帥氣尐啉ル » 2008-10-27 21:05

yetie,

有win下的修改方法吗?

pdf虽然可能有,但是太多了..


能指导下吗?
头像
yetie
帖子: 23
注册时间: 2006-05-26 20:34

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#5

帖子 yetie » 2008-10-31 8:32

luguode 写了:楼主你试过可行吗?为什么我改成联想的还是装不了呢?
我的是HP的笔记本,试过了,可用的。在没有修改虚拟机BIOS之前我装过一遍,装好后需要激活。修改虚拟机BIOS之后,显示已经激活。可以上网自动更新。
另联想的OEM据说有新标(lenovo)和旧标(legend)之分,可能两者在BIOS中的信息不太一样。具体信息你可以在网上查一下。
HP Compaq NC6000
迅驰1.6G/512M-333/40G/无线/Ati M9600/14.1TFT 高分屏
Linux ubuntu 2.6.22-15-generic #1 SMP Tue Oct 21 23:47:12 GMT 2008 i686 GNU/Linux ->
Linux ubuntu 2.6.27-08-generic #1 SMP Thu Nov 6 17:33:54 UTC 2008 i686 GNU/Linux
头像
yetie
帖子: 23
注册时间: 2006-05-26 20:34

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#6

帖子 yetie » 2008-10-31 8:47

帥氣尐啉ル 写了:yetie,

有win下的修改方法吗?
本人没有在win下使用过vbox,我想修改方法应该是一样的(仅是猜想)。
请在vbox的安装目录下找一下VBoxManage.exe,应该有的。
相应的代码应是如下:

代码: 全选

x:\vbox安装目录\VBoxManage.exe setextradata "你的虚拟机名称"    "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor"   "Hewlett-Packard"
比较Linux下的命令,win下最好把命令写成一行,Linux下可以用“\”来断行,win下可能不行;
win下VBoxManage.exe 程序可能要把命令路径写全,否则会提示“不是内部或外部命令,也不是可运行的程序或批处理文件。”。
HP Compaq NC6000
迅驰1.6G/512M-333/40G/无线/Ati M9600/14.1TFT 高分屏
Linux ubuntu 2.6.22-15-generic #1 SMP Tue Oct 21 23:47:12 GMT 2008 i686 GNU/Linux ->
Linux ubuntu 2.6.27-08-generic #1 SMP Thu Nov 6 17:33:54 UTC 2008 i686 GNU/Linux
luguode
帖子: 17
注册时间: 2008-10-22 17:07

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#7

帖子 luguode » 2008-11-07 10:04

LZ你的VBox是哪个版本?
头像
yetie
帖子: 23
注册时间: 2006-05-26 20:34

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#8

帖子 yetie » 2008-11-07 19:28

luguode 写了:LZ你的VBox是哪个版本?
2.0.2的,deb包安装的,不是源里的。
HP Compaq NC6000
迅驰1.6G/512M-333/40G/无线/Ati M9600/14.1TFT 高分屏
Linux ubuntu 2.6.22-15-generic #1 SMP Tue Oct 21 23:47:12 GMT 2008 i686 GNU/Linux ->
Linux ubuntu 2.6.27-08-generic #1 SMP Thu Nov 6 17:33:54 UTC 2008 i686 GNU/Linux
帥氣尐啉ル
帖子: 2
注册时间: 2008-10-27 21:03

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#9

帖子 帥氣尐啉ル » 2008-11-08 16:26

yetie 写了:
帥氣尐啉ル 写了:yetie,

有win下的修改方法吗?
本人没有在win下使用过vbox,我想修改方法应该是一样的(仅是猜想)。
请在vbox的安装目录下找一下VBoxManage.exe,应该有的。
相应的代码应是如下:

代码: 全选

x:\vbox安装目录\VBoxManage.exe setextradata "你的虚拟机名称"    "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor"   "Hewlett-Packard"
比较Linux下的命令,win下最好把命令写成一行,Linux下可以用“\”来断行,win下可能不行;
win下VBoxManage.exe 程序可能要把命令路径写全,否则会提示“不是内部或外部命令,也不是可运行的程序或批处理文件。”。
个人感觉暂时没必要改

我使用过Compaq等版本XP,+VBOX虚拟机,均没有提示我需要激活,我也没有修改过Bios,其中原因暂时不清楚.但是按照官方pdf文档说明,的确可以修改bios信息,在win下,dos下等..

暂时观察当中.
wjjs
帖子: 145
注册时间: 2007-07-08 19:21

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#10

帖子 wjjs » 2008-11-11 14:53

mark :em01
头像
laxdf
帖子: 40
注册时间: 2007-12-02 12:42

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#11

帖子 laxdf » 2008-11-14 15:49

在ubuntu下virtualbox的bios修改不了 有错误!
好像你生成的虚拟机没注册
linpay2000
帖子: 5
注册时间: 2008-11-17 23:47

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#12

帖子 linpay2000 » 2008-11-17 23:50

其实没有这么麻烦啦.建立虚拟机时,会生成一个xml文件.与名字相对应,在windows下home目录下.virtual box/machine下有.如windows.xml

修改ExtraData项.相改什么就改吧.
<ExtraData>
<ExtraDataItem name="GUI/FirstRun" value="yes"/>
<ExtraDataItem name="VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" value="Hewlett-Packard"/>
</ExtraData>
头像
yetie
帖子: 23
注册时间: 2006-05-26 20:34

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#13

帖子 yetie » 2008-11-26 14:58

问题的实质就在这里。用了这么多命令,最终的效果是修改了这个xml文件。
HP Compaq NC6000
迅驰1.6G/512M-333/40G/无线/Ati M9600/14.1TFT 高分屏
Linux ubuntu 2.6.22-15-generic #1 SMP Tue Oct 21 23:47:12 GMT 2008 i686 GNU/Linux ->
Linux ubuntu 2.6.27-08-generic #1 SMP Thu Nov 6 17:33:54 UTC 2008 i686 GNU/Linux
jeremysquare
帖子: 29
注册时间: 2007-04-16 17:37

Re: ubuntu下VirtualBox 修改虚拟机BIOS的方法

#14

帖子 jeremysquare » 2009-01-02 1:18

我的联想也不行,老版的LEGEND,谁能解决办法
回复