Archivio

Posts Tagged ‘Vmware – Virtualizzazione’

[Mac OSx86] 10.4.8 VMware Installation Guide

24 febbraio 2010

how_to___leopard_on_vmware_by_bush1do

Description:

Try out Mac OS X 10.4.8 for yourself without buying a real mac. Let this guide help you along the way with simple, easy to understand step-by-step instructions and screenshots. Note: This is different from PearPC. PearPC emulates a PowerPC processor, while VMware emulates a direct x86 platform.

*********

Copyright Information

Lately, several websites have copied and posted up the text on these pages. This is strictly forbidden and violators will be reported. You may only copy from this page on the condition that you will not publicly distribute this text on the internet and that you have notified us that you are reproducing the texts. Thanks for abiding this rule


Ever wanted to try out the famous Mac OS X operating system for yourself without getting a mac? Now you can, by using the x86 emulation software VMware Workstation (or Server), and to make it better, on a PC running Windows! Read on for more information:
Ever since Apple made the move to Intel processors, hackers have been trying hard to modify the x86 version of OS X to run on a PC. And, of course, they have indeed succeeded in doing it. Various hackers have released hacked ISO torrents that can be installed on PCs. However, this violates the Apple EULA agreement and there are legal issues with using the ISOs. The legal ways to obtain a copy would be:

1) Become an Apple Developer ($500 membership)

2) Buy a real mac, deactivate the copy of OS X and install it on a PC (this way would be pointless because the whole point is to run OS X without getting a mac). This way also somewhat violates the EULA because the agreement says that you can’t run OS X on non-Apple hardware.

Its best to get a legal copy of the ISO because then you can install the software without worry about malicious software or about the software phoning home.

With that said, lets begin.



System Requirements:

  • Processor supporting SSE2 or SSE3 instructions (Use CPU-Z for Windows to check)
  • Windows 2000 or higher/Linux (Mandrake, SUSE, or Red Hat)
  • 512MB of RAM (strongly recommended)
  • 6GB minimum hard drive space
  • 8MB of VRAM
  • DVD-RW drive if you are burning the ISO

Software Requirements:

  • VMware Server (Free) or VMware Workstation 5 (commercial, recommended) or higher. VMware 6 is recommended.
  • Note: VMware ACE Editions apparently have problems with networking in Mac OS X.
    Attention Vista users: VMware Workstation 5.5 will not work. You need Workstation 6
    VMware Workstations 6.0.1 and 6.0.2 are NOT recommended. It is recommended you use Workstation 6.0 build 45731
  • Mac OS x86 ISO; For test purposes ONLY, in this guide the “JaS Mac OS X 10.4.8 Intel/AMD SSE2 SSE3 PPF1+PPF2″ ISO will be used. Mac specific DVDs cannot be used.
  • Burning software to burn the ISO to DVD (optional, recommended)
  • Blank 4.7GB DVD+R/DVD-R/DVD-RW/DVD+RW disc (if you are burning)
  • Daemon Tools or Virtual Clone Drive (if you are not burning the ISO)

Step 1: Install software

Install all the software that is required. VMware is mandatory. If you are going to burn the ISO file to a DVD (recommended), you will need burning software such as NTI CD/DVD Maker or Nero Burning ROM. If you aren’t going to burn the disc, then you will need drive emulation software such as Daemon Tools or Virtual Clone Drive.

Step 2a: Burn the ISO (if you are burning)

Use your favourite burning software to burn the ISO image to DVD. Insert the bruned DVD into your optical drive.

Step 2b: Mount the image (if you are not burning)

Mount the OS x86 DVD ISO file in Daemon Tools or Virtual Clone Drive (You can use Alcohol 120% if you want). You cannot mount the ISO directly in VMware because VMware cannot properly read HFS+ images (thats the format the Mac OS ISO is in)


Step 3: Configure VMware

Note: In this guide, VMware Workstation 6 will be used. VMware Server or Workstation 5 can be used, but Workstation 6 is strongly recommended.

  • Launch VMware
  • On the home page, click “Create new virtual machine” to bring up the dialog below:

Wizard 1

  • Click “Next”

Wizard 2

  • Make sure “Typical” is chosen and click Next
  • Important Note: If you are installing directly to a physical drive or partition (ignore this tip if you don’t know what this is, its an advanced option) choose the Custom option and when you get to the screen that deals with hard drives, set VMware to access a physical partition or disk

Wizard 3

  • Choose Other as the Guest OS and choose Other for the version. Click Next
  • Note: There are several Guest OSes that you can choose for Mac OS X. The best are:

- Other , Other
- Linux , Other Linux
- Other , FreeBSD
- Windows NT (works well if you are getting ACPI errors but make sure your virtual hard drive images are IDE, not SCSI)

- Make sure that your virtual disks are set the IDE mode not SCSI

Wizard 4

  • Give the machine a name.  Click Next
  • Speed-up tip: Store the virtual machine in a partition or hard disk that is separate from the current partition/hard disk that you are currently using. This will make the virtual machine somewhat faster.

Wizard 5

  • Click “Use network address translation (NAT)” if you are using a official legal copy of OS x86 or “Use host-only networking” if you are using a hacked ISO image (for test purposes, of course :) to prevent Mac OS X from registering itself during installation
Wizard 6

Choose a disk size (6GB is minimum). If you choose 6GB, you will have 1.5GB of space left after installation for your own programs. Any size is OK as long as you have the hard drive space. Check the “Allocate all disk space now” checkbox (not necessary, but it improves speed). Choose “Split disk into 2GB files” if you are putting the virtual machine on a FAT32 partition. Click Finish and wait till the virtual disk is created.

Home

(click to enlarge)

  • Click VM >> Settings

Unmodified Settings

(click to enlarge)

  • Click on “Floppy” and click Remove (You don’t need floppies for OS X)
  • Click on “Memory” and on the right, adjust the memory amount to about half your actual system memory.

CD  Settings

(click to enlarge)

  • Click “CD-ROM (IDE 1…” and on the right, select your virtual image drive/physical drive from the drop-down menu. Click OK to return back to Home. Close VMware Workstation or Server.
  • If you wish, you can click “Add” to add a USB Controller (not tested)


Step 4: Edit VMware config file

  • Navigate to the folder where you placed your virtual machine
  • Open the “VMware Configuration File” with Notepad
  • Add the line: paevm=”true” to the end of the file
  • Note: For networking in 10.4.8, add the line ethernet0.virtualDev=”e1000″ to the file
  • Note: Sometimes, the line scsi0.present=”TRUE” won’t work. Change it to scsi0.present=”FALSE”. However, on the test machine, this was not required.
  • Speed-up tip: set the guestOS line to “guestOS = “darwin”
  • Save the file. The end result should look somewhat like this:

Config  File

(click to enlarge)

Andate ora nella cartella sul vostro computer dove avete salvato la Virtual Machine e andate ad aprire il file di configurazione con estensione .vmx con il vostro editor preferito, cancellate tutto il testo ivi presente e copiate/incollate il seguente:

bios.bootDelay = "5000"
checkpoint.vmState = ""
checkpoint.vmState.readOnly = "FALSE"
config.version = "8"
deploymentPlatform = "windows"
displayName = "Leopard"
ehci.pciSlotNumber = "33"
ehci.present = "TRUE"
ethernet0.addressType = "generated"
ethernet0.connectionType = "nat"
ethernet0.generatedAddress = "00:0c:29:7b:c7:78"
ethernet0.generatedAddressOffset = "0"
ethernet0.pciSlotNumber = "32"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv = "FALSE"
extendedConfigFile = "leopard.vmxf"
floppy0.autodetect = "TRUE"
floppy0.fileName = "A:"
floppy0.present = "FALSE"
guestOS = "freebsd-64"
ide0:0.fileName = "leopard.vmdk"
ide0:0.present = "TRUE"
ide0:0.redo = ""
ide1:0.autodetect = "FALSE"
ide1:0.deviceType = "cdrom-raw"
ide1:0.exclusive = "FALSE"
ide1:0.fileName = "Z:"
ide1:0.present = "TRUE"
memsize = "768"
mks.keyboardFilter = "allow"
monitor = "debug"
nvram = "leopard.nvram"
pciBridge0.pciSlotNumber = "17"
pciBridge0.present = "TRUE"
scsi0.pciSlotNumber = "-1"
scsi0.present = "FALSE"
scsi0.virtualDev = "lsilogic"
sound.autodetect = "TRUE"
sound.fileName = "-1"
sound.present = "FALSE"
svga.autodetect = "TRUE"
tools.remindInstall = "TRUE"
tools.upgrade.policy = "useGlobal"
usb.present = "FALSE"
uuid.action = "KEEP"
uuid.bios = "56 4d 50 97 29 7a 74 3f-a8 4a 39 81 24 7b c7 78"
uuid.location = "56 4d 50 97 29 7a 74 3f-a8 4a 39 81 24 7b c7 78"
virtualHW.productCompatibility = "hosted"
virtualHW.version = "6"

Note: If you make any changes to the virtual machine in the VMware interface after editing the file, all changes will be lost

Step 5: Configure VM BIOS

This is not exactly necessary, but it will make the VM a lot faster

  • Go back into VMware and click the green triangle to start your machine
  • Quickly click inside the VM window (this lets you control the VM)
  • Quickly tap F2 to enter the BIOS

BIOS 1

(click to enlarge)

  • Use the keyboard and Disable “Legacy Diskette A:”
  • Go into the Advanced tab >> I/O Device Configuration

BIOS 2Zoom
(click to enlarge)

  • Disable all Serial ports, Parallel ports, and Floppy Disk controllers
  • Press F10 to save and exit. The machine will reboot.


Step 6: Partition/Format the hard drive

  • If you have mounted the ISO/inserted the DVD, the machine should boot to the DVD. It prompts you to press any key to continue Mac OS X installation. Click inside the screen and press a key to start the installer
  • Note: If you are using a JaS 10.4.8 image without PPF1, the image will not boot in VMware.
  • After a long log/script of commands, the friendly installer screen will come up telling you to choose a language. Choose a language and click the Arrow to Continue
  • The DVD will prepare the installer and the main screen will come up
  • In the Utilities menu, choose Disk Utility
  • In Disk Utility, choose your VMware hard drive from the left. In the main area, click the Partition tab
  • Set the “Volume Scheme” to one partition
  • Give the partition a name
  • Make sure the format is set to “Mac OS Extended (Journaled)”
  • Make sure all the hard drive space is used
  • Click Partition, Partition

PartitionZoom

(click to enlarge)

  • Once the process is done, click the red X button to close Disk Utility and relaunch the installer
  • Note: If you are using a JaS 10.4.8 image that is not patched with PPF2, the new partition will not be usable. Get a new image OR use a previous version image (10.4.7, etc.) to partition.
  • At the main installer screen, click ‘Continue’
  • Choose your newly formatted virtual HD and click Continue again

InstallZoom

(click to enlarge)

  • This part is a bit tricky:
  • The Printer Drivers and the Hardware support are useless. You can install the Language Translations and Additional Fonts if you use a language other than English. You can install X11 if you want to (It lets you run Linux packages). Finally, choose the patch that is right for your CPU (AMD or Intel). Choose everything you need and click Install
  • Wait for the installation to complete
  • At the end, the virtual machine will restart
  • Note: If you get a Kernel stack error in VMware after installation, ignore it and click OK
  • After the machine restarts, if all goes well, Mac OS X should boot!
  • Here’s a screenshot to prove it:

Install  DoneZoom

(click to enlarge)

Speed-up tip – After installation, go to System\Library\Extensions and delete AppleTPMACPI.kext if it exists\
Speed-up tip – Disable Dock Magnification


END OF INSTRUCTIONS

  • Press Ctrl + Alt to toggle between host and guest OS
  • VMware Tools is currently not available for OS X so you cannot run the VM at high resolutions. Some hackers are working on a way to use the Linux VMware Tools image to install it on OS X
  • The processor speed is equivalent to that of a low end G3
  • The VM is usable, and more responsive than PearPC
  • Share/Bookmark

nnadalca Documenti Tecnici, Vmware - Virtualizzazione ,

Sistema di backup alternativo per VMWare ESX ed ESXi

27 settembre 2009

Sistema di backup alternativo per VMWare ESX ed ESXi

Il primo documento “test on the job” di cui si occuperà lo staff di Bitstorm Srl si basa sul test, presso i propri lab, di un sistema di backup alternativo al consolidato vcb di vmware, completamente da riga di comando e schedulabile tramite cron. Il tutto configurabile dalla service console di vmware esx /i via ssh.
Per quale motivo abbiamo pensato di provare questo sistema di backup alternativo?
Per evitare di dover implementare un server windows per la gestione del modulo vcb accompagnato da un software di terze parti a pagamento per l’archiviazione su storage separato da quello usato in produzione.

Per le piccole aziende infatti si tratterebbe si della soluzione di backup ottimale e certificata da VMWare stessa, ma purtroppo decisamente costosa.
Per la stesura di questo articolo abbiamo utilizzato uno script molto diffuso su internet, “ghettoVCB.sh” reperibile presso :
http://www.engr.ucsb.edu/~duonglt/vmware/ghettoVCB.sh
Questo script esegue il backup dei server virtuali residenti su host vmware esx 3.5 ed esxi 3.5.
L’esecuzione dello script effettua un backup live della macchina virtuale copiando interamente i file in formato vmdk “utili per un eventuale disaster recovery”, creando uno snapshot e rimuovendolo alla fine del processo.
Il principale inconveniente di questo script è a livello di utilizzo risorse: utilizza infatti quelle della service console (e quindi dell’host stesso), causando quindi una leggera perdita di performance a differenza del tradizionale proxy vcb che interagisce direttamente tra storage di produzione a storage di backup.
Il seguente script supporta storage locali dei server host, chiamati anche local datastore e storage di tipo SAN o NFS.
Inoltre per ambienti Esx che non hanno Datastore fissi di tipo NFS lo script offre la possibilità di collegarsi al server NFS solo al momento del backup delle virtual machine e di disconnettersi al termine dello stesso.
L’impostazione di base dello script mantiene 3 set di backup dei server virtuali archiviati, il tutto può essere modificato a proprio piacimento e secondo le proprie necessità.
Elenchiamo ora le principali funzionalità:
# Supporto per multipli VMDK disk per server virtuale
# Backup on line dei server virtuali
# Possibilità di spegnere il server virtuale prima di inziare il backup e di riaccenderla al termine di questo
# Il backup se il server virtuale contiene degli Rdm (raw device mappings) , questi verranno ignorati e quindi non salvati.
# Modifica del numero di backup set mantenendo quindi uno storico dei server virtuali.
# Supporto completo a datastore di vario tipo.

Passiamo ora alla parte pratica.
Scarichiamo il file ghettoVCB.sh e copiamo il file, senza apportarvi alcuna modifica, all’interno dell’host esx (si può utilizzare winscp da windows oppure scp da linux).
Una volta copiato file spostiamolo nel seguente percorso: /vmfs/volumes/datastore
Questo perché il file protrebbe essere cancellato durante il prossimo boot se posizionato altrove, Esxi infatti non cancella assolutamente il contenuto dei datastore.
Nel nostro ambiente abbiamo usato un datastore per i backup basato su freenas attivando il supporto per iscsi ed aggiungendolo quindi all’ host vmware esx.
Creiamo ora un file di testo, nominandolo ad esempio “vm_to_backup”, contenente il nome dei server virtuali che sono visibili nell’inventario usando il vmware client (nel mio caso: debian_01 e w2008_01), ogni nome su una nuova riga.
Faccio due raccomandazioni:
Non editare o creare questo file da windows per evitare di inserire caratteri di controllo inseriti da editor windows
Inserire i nomi nel file “vm_to_backup” prestando attenzione alle maiuscole ed alle minuscole riportandole esattamente come visibile dal client vmware.

Ora verifichiamo il file creato, digidando :

[root@btsesx01 scripts]# cat vm_to_backup

Visualizzeremo (nel mio caso):
debian_01
w2008_01
possiamo quindi procedere editando il file ghettoVCB.sh e cambiando alcuni paramentri:
la directory dove salvare i file di backup , la rotazione dei backup set, l’eventuale spegnimento prima del backup e l’impostazione di un’eventuale server di tipo NFS persistente o meno.
Una volta modificato a proprio piacimento il file di esempio dalla directory contentente lo script eseguiamo il comando:

./ghettoVCB.sh vm_to_backup

Il backup verrà avviato e tramite un contatore di avanzamento procederà al backup dei server virtuali.
Come noterete il processo di copia procederà lentamente o meno a seconda della potenza del vostro hardware di supporto al vostro ambiente di server virtuali.

  • Share/Bookmark

nnadalca Vmware - Virtualizzazione

Abilitare accesso root via ssh per vmware esxi 3.5 e 4.0

27 settembre 2009

Abilitare accesso root via ssh per vmware esx

Questa procedura è valida sia per la vmware 3.5 che per la 4.0,l’ho testata su entrambe le versioni.. non è nulla di trascendetale si tratta solo di cambiare un parametro all’interno della configurazione della servizio sshd della service consolle..
Ecco come abilitare l’accesso root via ssh ad un nodo vmware esx:

- Entrate  nella service consolle  (fisicamente dovete avere acesso alla tastiera e al monitor del server,se avete la iLO è  uguale…)
- Dalla service consolle fisica potete accedere come root
- Dopo esservi autenticati digitate: vi /etc/ssh/sshd_config
- Trovate  la riga con il parametro: PermitRootLogin da “no” a “yes”,hiudete l’editor e salvate
- Riavviate il servizio sshd con il seguente comando: service sshd restart

Ora potete collegarvi via ssh con root. Ovviamente se avete un cluster questa procedura và ripetuta per ogni singolo nodo..

Ecco invece come abilitare la service consolle nella vmware esxi e come abilitare ssh.

Come ben sapete la vmware esxi è gratuita e in teoria non prevede nessuna service consolle, ma ovviamente c’è il trucchetto, sia per accedere ad una service consolle minimale che prevede molti comandi esx sia per abilitare ssh, la procedura  per abilitare root via ssh è la stessa descritta sopra..
Ma ecco la procedura:

- Entrate nella consolle della vmware esxI (Anche qui si tratta di stare fisicamente sulla macchina o tramite iLO)
- Premetete ALT + F1
- digitate: unsupported
- digitata la password di root. Non vedrete nulla stampato a video,  solo il cursore lampeggiare.
- Dopo aver digitato la password come  per magia avrete accesso ad una service consolle  minimale con tutti i comandi esx classici..

Per abilitare ssh fate come segue:

- digitate: vi /etc/inetd.conf
- individuate la riga che inizia con  “#ssh”
- rimuovete il carattero cancelletto facendo divetare la riga da “#ssh” a “ssh”
- Salvate e chiudete il file
- Riavviate il management service con il comando “/sbin/services.sh restart”
- Oppure se potete riavviare il server esxi che è meglio..

Ecco che ssh sarà disponibile anche sulla vmware esxi.
Per i newbie di “vi” (miglior editor di testo al mondo..) ecco qualche info veloce:

aprite un  file con il comando: “vi nome_file”
per cercare una stringa digitate: “/  stringa_da_cercare”
per modificare digitate: “a”
per salvare e chiudere digitate: “wq!”

  • Share/Bookmark

nnadalca Vmware - Virtualizzazione

Configurare OpenFiler come SAN iSCSI in VMWare

20 aprile 2009

vmware

Vi segnalo che ho trovato su un sito web un prodotto free che può essere utile per prove di laboratorio e non solo, un ottimo prodotto da provare che vi permette di simulare una SAN iSCSI e  trasformare un pc con dischi scsi o sata in un (open-source iSCSI SAN server) per poterlo utilizzare in un ambiente con una o più macchine VMware Workstation o VMware Server,  ESX o Esxi.

http://www.petri.co.il/use-openfiler-as-free-vmware-esx-san-server.htm

Dopo aver letto questo articolo vi consiglio di leggere anche l’articolo che riporto sotto, che guida l’utente nella creazione e nella configurazione dell’openfiler con VMware Esxi e WMware ESX 3.5.

http://www.petri.co.il/connect-vmware-esx-server-iscsi-san-openfiler.htm

In order to use many of the VMware ESX Server advanced features, you need a SAN. Openfiler provides that SAN at NO cost as it is free and can run inside VMware Workstation or VMware Server. In this article, we take a look at how you can download a OpenFiler and configure it to be a free open-source iSCSI SAN server.

  • Share/Bookmark

nnadalca Vmware - Virtualizzazione ,