Building renamed VirtualBox 5.1.20

Discussions related to using the OSE version of VirtualBox.
Post Reply
chocolate7781
Posts: 6
Joined: 25. Apr 2017, 09:26

Building renamed VirtualBox 5.1.20

Post by chocolate7781 »

i waned to build VirtualBox5.1.20 after change VirtualBox to other Name
so I changed sources and paths
but when I tried to Build this

Code: Select all

kBuild: Installing iPxeBiosBin => /home/eun/VirtualBox-5.1.20/out/linux.amd64/release/lib/iPxeBiosBin.a
kBuild: bin2c PcBiosBin - /home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:1606: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:1832: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:2658: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:5898: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:7474: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:7874: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:8333: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:9150: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:9151: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:9152: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:9154: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:9395: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:9671: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:10261: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:10653: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:11691: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:11776: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:12096: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:12878: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:13849: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14449: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14454: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14565: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14573: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14585: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14599: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14624: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14746: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:14753: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15295: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15364: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15688: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15788: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15789: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15858: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15906: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15908: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15909: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15919: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15920: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:15921: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16023: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16034: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16099: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16116: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16215: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16253: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16259: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16262: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16280: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16320: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16326: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16333: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16335: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16579: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16602: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16609: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16616: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16623: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16671: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16690: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16778: warning: value does not fit in signed 8 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16906: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16928: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16937: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16941: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:16973: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:17005: warning: value does not fit in signed 16 bit field
/home/eun/VirtualBox-5.1.20/src/CBox/Devices/PC/BIOS/CBoxBiosAlternative386.asm:17098: warning: value does not fit in signed 16 bit field
kmk_redirect: error: _execvp(_P_WAIT, "-c", ...) failed: No such file or directory
kmk: *** [/home/eun/VirtualBox-5.1.20/out/linux.amd64/release/obj/PcBiosBin/PcBiosBin386.c] Error 1
kmk: *** [/home/eun/VirtualBox-5.1.20/out/linux.amd64/release/obj/PcBiosBin/PcBiosBin386.c] Deleting file `/home/eun/VirtualBox-5.1.20/out/linux.amd64/release/obj/PcBiosBin/CBoxPcBios386.rom'
what should I do ?

and What is PcBiosBin?
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Building renamed VirtualBox 5.1.20

Post by mpack »

What does this have to do with "Linux Guests"?

Moving topic to "VirtualBox OSE".
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Building renamed VirtualBox 5.1.20

Post by Perryg »

i waned to build VirtualBox5.1.20 after change VirtualBox to other Name
Why do you want to change the name, and what is the host ( be specific )
Also describe in detail how you changed the name?
chocolate7781
Posts: 6
Joined: 25. Apr 2017, 09:26

Re: Building renamed VirtualBox 5.1.20

Post by chocolate7781 »

i am studying anti-VM.
and I was wondering how much effect I would have if I changed the name in VBox.

Code: Select all

('VBox','CBox'),('VirtualBox','CirtualBox'),('vbox','cbox'),('virtualbox','cirtualbox'),('VBOX','CBOX'),('VIRTUALBOX','CIRTUALBOX')
thid is what i changed in sources

and I used this script to change Names

Code: Select all

import os
import sys

sFolder = sys.argv[1]


LReplace = [('VBox','CBox'),('VirtualBox','CirtualBox'),('vbox','cbox'),('virtualbox','cirtualbox'),('VBOX','CBOX'),('VIRTUALBOX','CIRTUALBOX')]

def GetAllFileList(sFolder):
	LFiles = []
	for root,dirs,files in os.walk(sFolder):
		for fname in files:
			sFullFilePath = os.path.join(root,fname)
			LFiles.append(sFullFilePath)


	return LFiles

def GetAllFolderList(sFolder):
	LFolder = []
	for root,dirs,files in os.walk(sFolder):
		for dirname in dirs:
			vFolder = os.path.join(root,dirname)
			LFolder.append(vFolder)

	return LFolder


LFiles = GetAllFileList(sFolder)


for sFilePath in LFiles:
	print sFilePath
	f = open(sFilePath,'r')
	data = f.read()
	f.close()
	
	for replaceitem in LReplace:
		data = data.replace(replaceitem[0],replaceitem[1])
		

	f = open(sFilePath,'w')
	f.write(data)
	f.close()


	sBaseName = os.path.basename(sFilePath)
	sBaseNameOrg = sBaseName
	
	for replaceitem in LReplace:
		sBaseName = sBaseName.replace(replaceitem[0],replaceitem[1])

	if os.path.isdir(sFilePath) == True:
		continue

	print sBaseNameOrg
	src = os.path.join(os.path.dirname(sFilePath),sBaseNameOrg)
	dst = os.path.join(os.path.dirname(sFilePath),sBaseName)
	os.rename(src,dst)


LFiles = GetAllFolderList(sFolder)

LFiles.reverse()

for sFilePath in LFiles:
	print sFilePath	
	sRoot = os.path.dirname(sFilePath)
	sBaseName = os.path.basename(sFilePath)
	sBaseNameOrg = sBaseName
	
	sorg = sBaseNameOrg
	for replaceitem in LReplace:
		sBaseName = sBaseName.replace(replaceitem[0],replaceitem[1])

	
	if sBaseName == sorg:
		continue

	src = os.path.join(sRoot,sBaseNameOrg)
	dst = os.path.join(sRoot,sBaseName)

	print "(%s) --> (%s)" % (src,dst)
	os.rename(src,dst)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Building renamed VirtualBox 5.1.20

Post by Perryg »

Just changing the name will not stop the ability of detecting if the guest is virtual. There are a lot of ways other than the name. Next the way you are changing the name will cause the build to fail as you have already seen. You need to do this programmatic by using the LocalConfig.kmk in the top level of the build folder.
chocolate7781
Posts: 6
Joined: 25. Apr 2017, 09:26

Re: Building renamed VirtualBox 5.1.20

Post by chocolate7781 »

well..
I am not sure if i can do right way
if you are okay
would you tell me know what should I do with LocalConfig.kmk?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Building renamed VirtualBox 5.1.20

Post by Perryg »

These should be enough to get you started, but it will not stop the detection of whether it is a virtual guest or not.

Code: Select all

VBOX_VENDOR := What-ever
VBOX_VENDOR_SHORT := What-ever
VBOX_PRODUCT := What-ever
VBOX_PACKAGE_DIST := What-ever
Keep in mind this changes the vendor, product, and package. It does not interfere with the hard code that contains VirtualBox.
chocolate7781
Posts: 6
Joined: 25. Apr 2017, 09:26

Re: Building renamed VirtualBox 5.1.20

Post by chocolate7781 »

thank you ! :D :D :D :D
Post Reply