Reputation: 426
i am using windows pc and running SUSE Linux on virtual box. i can get processor id and other hardware details of virtual machine (SUSE).
Is there any possibilities(commands or using languages like java) to get hardware details of the machine (Windows), using virtual box (SUSE)?
EDIT :
my requirement is to restrict virtual machine to run on a single machine. if user copy or clone the virtual machine to some other machine it should not work or i need to kill a process. is there any possibilities to achieve this?
Upvotes: 2
Views: 1975
Reputation: 3109
Short answer: No.
However, there is some info you can gather:
cat /proc/cpuinfo
should show the actual CPU type most of the time. The number of cores may be wrong however.curl http://icanhazip.com/
to get the public IP address of your machine.Other than that, there is not much more information you can get from within a typical VirtualBox instance.
There is a related question on SuperUser that describes the more general case and focuses on VMWare.
Upvotes: 1