Wednesday, 1 February 2017

Making your virtual machine publicly accessible to other computers over the network

To make your VMware machine publicly accessible to other computers, you need to the change the network settings of your virtual machine.

1. In VMware application, right click on your virtual machine, select "Settings".

2. Click on "Network Adapter". On the right, Change the network settings from "NAT" to "Bridged Mode" and restart your VMware app.

Fixing "An attempt to configure apt to install additional packages" error while installing ISO image in VMware

Once you are done with loading the OS in VMware, double click on "Install Custom OS" shortcut generated on your desktop. This will initiate the installation of your customised OS.

Follow the on screen instructions to install the OS, if you get the error "An attempt to configure apt to install additional packages" follow the steps below:

1. When you get to the screen where you enter your user name, pc name, etc. CTRL-ALT-F1 to get a shell.
2. Run this command
> sudo rm /usr/lib/ubiquity/apt-setup/generators/40cdrom
for password just press enter
3. Press CTRL-ALT-F7 to get back to your install
4. Fill out your username password, etc as usual and continue and the install should continue and finish.

Creating a backup of installed ubuntu(ISO image)

1. Download Relinux 0.2 from
http://sourceforge.net/projects/re-linux/?source=directory
OR
http://nchc.dl.sourceforge.net/project/re-linux/relinux_0.2.1b1.tar.gz

2. Create a folder "relinux" on Desktop and extract the content from the above link to this folder.

3. To install, simply type this into a Terminal window( Read file relinux/INSTALL on Desktop for instructions):

  sudo cp -R usr etc /

4. After you have installed it, look at Desktop/relinux/usr/share/doc/relinux/README.
   Type this into a Terminal window to generate the configuration file:

  cp /etc/relinux/relinux.conf ./relinux.conf

  sed -i 's:EXCLUDES="\(.*\)":EXCLUDES="\1 '`readlink -f ./relinux.conf`'":g' ./relinux.conf

5. Install Dependencies for Relinux :

sudo apt-get install libdebian-installer4 casper ubiquity ubiquity-frontend-gtk discover-config xresprobe tree dialog

6. Copy  the file Desktop/relinux/etc/relinux/relinux/splash/splash.png to Desktop

Edit relinux.conf for customisation from Desktop/relinux/

Replace the following line

SPLASHIMAGE=/etc/relinux/relinux/splash/splash.png

 with

SPLASHIMAGE=/home/ebs/Desktop/splash.png

7. Type the following command in terminal:

 sudo relinux squashfs ./relinux.conf

8. Type the following command to prepare an iso file.

sudo relinux onlyiso ./relinux.conf

Reference Video link : http://ubuntutes.com/wp/index.php/2016/12/31/create-backup-of-installed-ubuntu-12-04-12-10-13-04-as-install-iso-using-relinux/

Setup VMware Workstation 12

1. Download VMware Workstation 12 from here for Windows version

2. Install the .exe file on your computer and start the application.

3. To create a new virtual machine, click on "Create a New Virtual Machine" option.

4. Since, we are installing the OS from ISO image, select "Installer disc image file" option and follow the on screen instructions.

5. On the "specify disk capacity" screen, select "split virtual disk into multiple files and provide the
size and click "Finish".

6. Now the virtual machine will be added to VMware. Right click on your virtual machine and select "Settings", click on CD/DVD (SATA) option.

7. On the right, select "Use ISO image file", click on Browse and select your ISO file, then click Ok.

8.  Now you are done setting up the virtual machine, click on "Play Virtual Machine " option to boot your virtual machine.


Creating shared folder
Follow the instructions in the link below to create a shared folder.

http://theholmesoffice.com/how-to-share-folders-between-windows-and-ubuntu-using-vmware-player/

Support guide for VMware