Installing Windows XP on VirtualBox - windows-xp

I installed the VirtualBox on my machine.
I have the Windows XP IMG file.
I converted the IMG file to a VDI file using VirtualBox command line.
How to setup a new virtual machine using either the IMG or the VDI files.
I followed the instructions, but I received the following error:
FATAL: No bootable medium found! System halted.
Here are the instructions that I followed:
http://www.linuxjournal.com/content/using-windows-xp-virtualbox-linux

the IMG file you have of the XP Installation disk is to be mounted as a CD disk when you have the VDI created.
look at this (final) picture of the installation:
(source: linuxjournal.com)

Related

How can I ensure HGFS in CentOS via Vagrant?

I am using Vagrant (1.7.4) with the VMware Fusion provider.
I have created a new VM from the centos/7 box, and configured shared folders in my Vagrantfile.
On startup, I get the message
HGFS was never found on the running virtual machine. This must be
installed either through VMware tools or Open VM Tools. HGFS is
required for shared folders to work properly. Please install either
the VMware tools or Open VM Tools and try again.
after a while, and the system starts up, but without the mounted shared volume.
I have tried installing Open VM tools, with a
sudo yum -y install open-vm-tools
in my Vagrant provisioner inline shell script
config.vm.provision "shell", inline: <<-SHELL
sudo yum -y update
sudo yum -y install open-vm-tools
SHELL
However, I still get the message at startup, and I do not see the mounted share.
I have an almost identical Ubuntu box (precise/64) that seems to work just fine.
I looked up the box https://atlas.hashicorp.com/centos/boxes/7 and from the release notes they clearly mention that virtual box guest are not installed
The VirtualBox Guest Additions are not preinstalled; if you need them for shared folders, please install the vagrant-vbguest plugin. We recommend using NFS instead of VirtualBox shared folders if possible.
I think what they should mention is that they did not install the VMWare tools neither so default sharing folder with VMWare does not work.
How to install the VMWare tools for the VM
Make sure to mount a cd
Open VMWare Fusion and make sure the VM is down - open the VM settings, select the hard drive and add a device, select the CDRom.
boot the VM from the VM menu select Install VMWare Tools
Installing VMWare Tools
login to the VM (either from VMWare or open an ssh session with vagrant ssh)
Install pre-requisites and update kernel (at least I had to run to successfully install the VMWare tools on VMWare fusion 8.0 - see here)
sudo yum install perl gcc gcc-c++ make binutils
sudo yum update kernel
reboot and run the following again
sudo yum install kernel-headers kernel-PAE-devel
mount the VMWare tools
this is found from the VMWare doc - Make sure to run the below commands with root or add sudo
To create a mount point, run:
mkdir /mnt/cdrom
To mount the CDROM, run:
mount /dev/cdrom /mnt/cdrom
To copy the Compiler gzip tar file to a temporary local directory, run:
cp /mnt/cdrom/VMwareTools-<version>.tar.gz /tmp/
Where version is the VMware Tools package version. To determine the version of VMware tools, run:
ls /mnt/cdrom
You see output similar to:
VMwareTools-5.0.0-12124.tar.gz
To change to the tmp directory and extract the contents of the tar file into a new directory called vmware-tools-distrib, run:
cd /tmp
tar -zxvf VMwareTools-version.tar.gz
To change directory to vmware-tools-distrib and run the vmware-install.pl PERL script to install VMware Tools, run:
cd vmware-tools-distrib
./vmware-install.pl
After all this, the tools were installed and shared folder is working correctly.
as a side note I can say that its much easier building a box with packer and install the tools directly from install. There are plenty of packer templates available on github for all versions of centos.

Raspberry Pi, pinet, install printer

We're having two issues:
1)
We are having a problem installing printer drivers to a Pinet installation on a Ubuntu 15.04 virtual machine. The printer is a Xerox Fujitsu DocuCentre-V C3373
There is a GNU/Linux driver available here.
We've run the shell script in the Ubuntu VM, and followed the instructions, but the printer doesn't show up anywhere.
We also tried following the Ubuntu add printer method, and that does add a generic printer, but the output is quite bizarre.
2)
We were trying to do these things in the Ubuntu VM, because we couldn't figure out how to copy the files to the pinet chroot folder.
Where I have looked around, I've seen instructions for installing CUPS on a raspbian to get AirPlay working. I'm not sure if that is a suitable approach.
Thanks in advance for any help.

How do I install the Matlab MCR in Ubuntu 14.04 without "killing" Unity?

Background: I have created an Ubuntu VirtualBox from LAPP stack and added the Ubuntu desktop (Unity: sudo apt-get install ubuntu-desktop). Now I am attempting to install the MCR without loosing Unity.
Download MCR zip and extract to MCR_SOURCE
Go to my folder that contains the files: cd /media/sf_shared/MCR_ SOURCE
Change installer_input.txt file:
destinationFolder=/opt/MCR
agreeToLicense=yes
outputFile=/opt/install.log
mode=silent
product.MATLAB
product.MATLAB_Builder_JA
# Note: To find out the required toolboxes >> start Matlab >> run your code and find out which toolboxes were used with: license('inuse')
Install MCR: sudo ./install -inputFile /media/sf_shared/MCR_SOURCE/installer_input.txt >> success
Restart Ubuntu >> test whether Ubuntu’s Unity still exists >> everything is fine
Attention the next step will “ kill ” your Ubuntu desktop configuration!!! (i.e. copy your hardisk, anything you must do to recover quickly) – now configure: sudo gedit /etc/environment
LD_LIBRARY_PATH="/opt/MCR/v84/runtime/glnxa64:/opt/MCR/v84/bin/glnxa64:/opt/MCR/v84/sys/os/glnxa64:${LD_LIBRARY_PATH}"
XAPPLRESDIR="/opt/MCR/v84/X11/app-defaults"
# Note: X11/app-defaults folder has not been created during installation
Restart Ubuntu >> Unity is gone, recovery attempts such as deleting the above lines do not recover Unity; reinstalling the Ubuntu desktop does not help either.
I have tried an alternative route with exporting the variables, which also "kills" Unity. By the way this affects all users.
Any ideas?
It is not necessary to register these environment variables in /etc/environment, which means that the Unity sidebar will not be affected.
Instead register the environment variables temporarily either as local user or via sudo -i:
export LD_LIBRARY_PATH="/opt/MCR/v84/runtime/glnxa64:/opt/MCR/v84/bin/glnxa64:/opt/MCR/v84/sys/os/glnxa64:${LD_LIBRARY_PATH}"
export XAPPLRESDIR="/opt/MCR/v84/X11/app-defaults"
Now it is possible to run Matlab Apps without "killing" Ubuntu's desktop. For instance to run the Java compiled makesqr.m file.
java -classpath "/opt/MCR/v84/toolbox/javabuilder/jar/javabuilder.jar:/media/sf_shared/for_testing/makesqr.jar" makesqr.Class1 5
The Java package makesqr was created using Matlab's JavaBuilder tutorial. This was done on my Windows 7 machine, which runs Matlab R2014b.
Please ensure that the owner and permissions of the /opt/MCR and /media/sf_shared/for_testing folders are set correctly (see here for details).

Xen installion error

I am newbie to virtualisation and as a first step I tried to install XEN from Ubuntu 12.10 on dual boot mode(another OS is windows 8).
But for some reason(unknown to me) it is not working,I tried the following command after installation and booting into "xen hypervisor".
From terminal I gave the following command to check if xen is installed prperly or no
$ sudo xm list
Traceback (most recent call last):
File "/usr/sbin/xm", line 5, in <module>
from xen.xm import main
ImportError: No module named xen.xm
I want to know if its Ok to install hypervisor in dual boot mode or I will have to
reinstall XEN and them install other OS on top of it?
Windows 8 won't install with Xen hypervisor. Xen is not compatible with Windows OS directly. Instead, it is okay that you create a virtual machine and then you are able to install windows os into the VM.
Regards,
Yeonki
The Xen kernel must load before the (Ubuntu) kernel. Make sure your grub is set to load the Xen kernel on startup, otherwise it will just boot into Ubuntu with the same kernel and services you always use an you won't get any Xen functionality.
You can either manually edit the grub.cfg or if you are using grub2 do something like:
#add grub2 to boot into Xen
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-set-default 'Ubuntu Linux Server, with Xen hypervisor'

GUI is not opening after Oracle solaris x86 installation

I'm Installing oracle Solaris 86x64 operating system in my PC. it was complete installation without any errors. In the final step of the installation the GUI window is not opening. If I restart the PC it is booting and Not able to go beyond the black screen. But, I can ping the system from another Command prompt. Is there drivers to be install ? Because of this I'm not able go into the system.