Category Archives: Mac OS X

Extend Size of Virtual HD in VMware

I need to extend my virtual Windows HD from 2GB to 4GB.

1. in terminal type (NOTE: HD must be clear from snapshots – delete them from menu: Virtual Machine > Discard Snapshot )

sudo /Library/Application\ Support/VMware\ Fusion/vmware-vdiskmanager -x 4Gb [DON'T PRESS ENTER]

2.  drag and drop into terminal your virtual HD (in your Documents : Virtual Machines : YOUR_VM and Show Package)

/Users/Albert/Documents/Virtual\ Machines/Windows\ XP\ Professional\ copy.vmwarevm/Windows\ XP\ Professional.vmdk

3.  RUN long command

4. when it is finished, You have to change permition back to you just in file Windows\ XP\ Professional.vmdk

5. run Virtual Windows (VM shows 4Gb but disk c: shows still 2Gb) – we need to expand parttion:

6. in windows run command: diskpart.exe

7.  Type list volume to display the existing volumes on the computer.

8. Type Select volume # where # is number of the volume that you want to extend. 

9. Type extend size=2000 where 2000 is extended size in MB.

that's it! enjoy Cool

 

Multiple virtual servers on Mac OS X

  1. create a folder with HTML
  2. NetInfo Manager: unlock it
  3. goto: machines > localhost
  4. from menu: Duplicate
  5. change a name to: mywebsite.dev (using .dev is good)
  6. (You must have setup to see all hidden files !)
  7. Macintosh HD > etc > httpd > httpd.conf
  8. check if last line is : Include /private/etc/httpd/users/*.conf
  9. (means we will add confing file form current user:   /private/etc/httpd/users/{USERNAME} )
  10. Open  /private/etc/httpd/users/{USERNAME}

EDIT:

<Directory "/Users/Albert/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *>
ServerName cairns3d.dev
ServerAdmin webmaster_dev@cairns3d.com
DocumentRoot /Users/Albert/Sites/cairns3d
</VirtualHost>

<VirtualHost *>
ServerName groovywords.dev
ServerAdmin webmaster_dev@groovywords.com
DocumentRoot /Users/Albert/Sites/groovywords
</VirtualHost>

<VirtualHost *>
ServerName trinitypet.dev
ServerAdmin webmaster_dev@trinitypet.com.au
DocumentRoot /Users/Albert/Sites/trinity
</VirtualHost>

11. Restart server:

System Preferences > Sharing > Personal websharing – turn it off/on

ENJOY!