Showing posts with label vmware. Show all posts
Showing posts with label vmware. Show all posts

Add a New Hard Disk VMWARE Without Rebooting Guest

It is possible to add or remove a SCSI device explicitly, or to re-scan an entire SCSI bus without rebooting a running Linux VM guest.

1) Add a New Disk To Vm Guest

  • First, you need to add hard disk by visiting vmware hardware settings menu.
    Click on VM > Settings

  • Alternatively you can press CTRL + D to bring settings dialog box.

  • Click on Add+ to add new hardware to guest:


  • Select hardware type Hard disk and click on Next

  • Select create a new virtual disk and click on Next

  • Set virtual disk type to SCSI and click on Next

  • Set maximum disk size as per your requirements and click on Next

  • Finally, set file location and click on Finish.

2) Rescan the SCSI Bus to Add a SCSI Device Without rebooting the VM

A rescan can be issued by typing the following command:

echo "- - -" > /sys/class/scsi_host/host#/scan
fdisk -l
tail -f /var/log/message

Replace host# with actual value such as host0. You can find scsi_host value using the following command:

# ls /sys/class/scsi_host

Output:

host0

Now type the following to send a rescan request:

echo "- - -" > /sys/class/scsi_host/host0/scan
fdisk -l
tail -f /var/log/message

3) Format a New Disk

You can create partition using fdisk and format it using mkfs.ext3 command:

# fdisk /dev/sdc
# mkfs.ext3 /dev/sdc3

4) Create a Mount Point And Update /etc/fstab

# mkdir /disk3

Open /etc/fstab file, enter:

# vi /etc/fstab

Append as follows:

/dev/sdc3 /disk3 ext3 defaults 1 2

Save and close the file.

VMware Unidentified Network Issue FIX

VMware Unidentified Network Issue in Vista and Windows Server 2008 Fix

There is however, a very annoying problem when you install VMware on Vista (and Windows Server 2008). When you install VMware it adds a few virtual network adapters. For various reasons, these adapters are listed in the Network Sharing Center as being on an “Unidentified network (Public network)” and all of the features under Sharing and Discovery are turned off .

Here is the best fix I’ve found thanks to a post by richv in the VMware forum:

  1. Run regedit
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}
  3. Underneath you should see several keys labeled 0000, 0001, 0002 etc… Look through these and find the VMware adapters. They will probably be near the end of the list if you just installed VMware.
  4. For each of the VWware adapters, add a new DWORD value named “*NdisDeviceType” and set it to 1 (make sure you get the * at the beginning of the name, I missed that the first time).
  5. Disable and Enable each of the network adapters.

That should take care of the problem. Setting *NdisDeviceType to 1 causes Windows to ignore the device when it does network identification. Here is an MSDN article with more details.

Install VMware Tools in a Solaris Guest

Before you begin, make sure the virtual machine is powered on and the guest operating system is running.
To install VMware Tools in a Solaris guest
1 On the host, select VM > Install VMware Tools.

If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools. If the current version is installed, the menu item is Reinstall VMware Tools.
2 On the guest, log in as root.

3 If necessary, mount the VMware Tools virtual CD-ROM image.

Usually, the Solaris volume manager vold mounts the CD-ROM under /cdrom/vmwaretools. If the CD-ROM is not mounted, restart the volume manager using the following commands:
/etc/init.d/volmgt stop
/etc/init.d/volmgt start
4 Change to a working directory (for example, /tmp):

cd /tmp
5 Extract VMware Tools:

gunzip -c /cdrom/vmwaretools/vmware-solaris-tools.tar.gz | tar xf -
6 Run the VMware Tools installer:

cd vmware-tools-distrib
./vmware-install.pl
Respond to the configuration prompts. Press Enter to accept the default value.
7 Log out of the root account:

exit
8 (Optional) Start your graphical environment.

9 In an X terminal, to start the VMware User process, enter the following command:

vmware-user
To change the default VMware Tools configuration options, see Open the VMware Tools Control Pane
top