Friend said:
This is not XP, it is Ubuntu that I have installed on the laptop. And as I
need to do some assignments and course work in C#, I need windows. So,
installed VirtualBox and installed XP in it.
Now, if I activate it, will it work? And I reinstall it on VM (due to, for
example, accidental deletion hard disk image file) or directly on laptop,
will that work?
"I have a windows xp sp2 installation CD which I got with my laptop."
Sure makes it look like Windows XP came pre-installed on the laptop. If
so, it was an OEM version and sticks to that computer. By you skirting
the question of what type of license for Windows XP came with the
laptop, it's a good bet that it is an OEM version. So you have a CD for
it. So what? That's the installation media for the OEM copy that got
installed on your laptop.
"Now, I have installed a different OS"
So you changed to the OS on the laptop from Windows XP to Ubuntu.
Doesn't change that it was an OEM license for Windows XP that sticks
with the laptop (and cannot be used on another computer, including a
virtual one).
"and installed xp from that CD in VirtualBox."
So you took the legit OEM license of Windows XP for your laptop and
violated its license by installing it inside a virtual machine.
If you only need some version of Windows to use for C# then why not get
the VHD (virtual hard drive) file from Microsoft for their Windows Vista
trial (includes Office) and use it under VirtualPC 2007? As I recall,
the trial expires after 2 months which is plenty of time to complete any
coursework. Then you aren't violating licenses.