PDA

View Full Version : VMWARE E VIRTUALIZZAZIONE


pollicino
15-12-2006, 20:38
Ho visto che su questo argomento non c'è una discussione ufficiale su questo forum, non so neanche se questa è la sezione giusta :)

Chi si vuole accodare a questa discussione per parlarne?

Io non sono esperto mi sto addentrando adesso nell'argomento :D


Forza avanti tutti!!! Virtualizziamoci pure :D

Bounty_
15-12-2006, 22:33
Da:
http://www.hackaday.com/2005/10/24/how-to-vmware-player-modification/

Last week the free VMware player was released. It lets you run virtual machines, but not create them. [Faileas] contributed today's how-to for creating your own virtual machines.

Programs required to carry out hack:

1. Copy of VMware Player (http://www.vmware.com/products/player)

2.Browser appliance or another virtual machine(browser appliance is the smallest one, by size, and thus I am using that) (http://www.vmware.com/vmtn/vm)


3. Notepad or other text editor
4.ISO image or CD/floppy of FreeDOS (I'm using the ripcord distribution) (ftp://ftp.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/ripcord/current-iso/) or MSDOS 7.1 (http://www.cn-dos.net/msdos71) would work as well, but i haven't tried it yet.

5. Replacement OS (must have SCSI HDD support)

Once you've downloaded the browser appliance or whatever image you intend to use, the first step is to open up and edit the browser-appliance.vmx file. I used notepad for this, though any text editor should do.

I'd reccomend changing the settings as needed, though these are what i suggest. Change the value of memsize to 64 from 256. For most operating systems this is sufficient and you can change this later as needed.

Part 1: Using an ISO
The image i am using has been setup to use the physical CD-Rom drive of my system. Not really desireable when you want to install from a downloaded ISO. While using daemontools, or a similar CD mounting program is an option, a more elegant method would be to use VMware player's own ability to read ISOs.

At this point i suggest saving and making a copy of the browser-appliance.vmx file, since it might be desireable to use a physical CD-Rom drive at a later point of time.

To do this replace:
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"

with:
ide1:0.fileName = "C:\targetcd.iso"
ide1:0.deviceType = "cdrom-image"

Where C:\targetcd.iso is the location of the disk you intend to use. Once this is done, save the edited vmx file and run it.
Part 2: Removing the current OS

Now, at the startup screenstart screen
http://www.weblogsinc.com/common/images/3060000000050561.JPG?0.9932929046427971
press escape and choose to boot from the CD drive at the next screen. If all goes well, you should be greeted by
boot
http://www.weblogsinc.com/common/images/3060000000050562.JPG?0.5926434397555511
where you should choose to boot from CDrom. From there menu
http://www.weblogsinc.com/common/images/3060000000050563.JPG?0.26999989722805995
choose to boot to the second option "FreeDOS ** FAT32. At the next screentoreto
http://www.weblogsinc.com/common/images/3060000000050564.JPG?0.9614562362799792
pick the first option, to "boot with el toreto cd rom driver" (default)driver
http://www.weblogsinc.com/common/images/3060000000050565.JPG?0.9391808743672488
and then the second option, to run FreeDOS from CD command prompt.

Now the fun part� Type in Fdisk and press enter. Choose to enable large disk support and press enter.
fdisk
http://www.weblogsinc.com/common/images/3060000000050566.JPG?0.33405009283418285
Looks familar? Now select the third option to "Delete partition".fourth
http://www.weblogsinc.com/common/images/3060000000050568.JPG?0.16687351214922375
and the fourth option at the next screen, to "Delete a Non-DOS Partition"� this is the point of no return (well almost). Select the only partion, and delete it. Press escape to go back to the main screen, and select the first option, to create a new partition. It's the first option on both that and the next screen. At the third screen, it will ask you if you want to make a partion that is the maximum size possible. Press Y and enter. You can resize it later with whatever OS you are using. Press escape until you go back to the main screen and the VM reboots.

Part 3: Installing a new OS
At this point, we have a broken bootloader and a hdd that needs formatting� perfect for a new OS!

Shut down the VM "player->troubleshoot->shutdown and exit" and open up the browser-appliance.vmx file again and edit "ide1:0.fileName = "C:\targetcd.iso"" to point to the installation CD of the new OS. If its a physical CD, you will have to edit the ide1:0.filename and ide1:0.deviceType to their original values.

Boot up. Choose to boot from CD (you can't boot from CD anyway, GRUB's broken after what we did) and reinstall. Most modern OSes would allow you to format to whatever format is needed.

This step is based on whatever OS you use, so no screenshots of that. I ended up installing DOS (it's a perfect, simple OS to use as a basis for further things)

Conclusion
There you have it, a perfectly usable VMware image using nothing but VMware player and FreeDOS. One limitation is that you cannot use this disk image to install an OS without SCSI support.

13. should solve any scsi problems

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
scsi0.present = "FALSE"
scsi0.virtualDev = "lsilogic"
memsize = "256"
MemAllowAutoScaleDown = "FALSE"
scsi0:0.present = "FALSE"
scsi0:0.fileName = "x.vmdk"
ide0:0.present = "TRUE"
ide0:0.filename = "x.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "atapi-cdrom"
floppy0.present = "FALSE"
ethernet0.present = "TRUE"
usb.present = "FALSE"
sound.present = "FALSE"
sound.virtualDev = "es1371"
displayName = "TEST1"
guestOS = "ubuntu"
nvram = "x.nvram"
MemTrimRate = "-1"

ide1:0.autodetect = "TRUE"
ide0:0.autodetect = "TRUE"

scsi0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d 85 72 dd 09 67 73-96 00 f8 f3 02 29 1f 18"
uuid.bios = "56 4d 85 72 dd 09 67 73-96 00 f8 f3 02 29 1f 18"
ethernet0.generatedAddress = "00:0c:29:29:1f:18"
ethernet0.generatedAddressOffset = "0"

tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"

uuid.action = "create"

checkpoint.vmState = ""

ide0:0.redo = ""
tools.remindInstall = "TRUE"


Another way to make your own virtual machines (or templates to install whatever you want on it)

Get the trial version of vmware Workstation and create the machines. They will still work after the trial expired

:Perfido: :Perfido: :Perfido: :Perfido: :Perfido: :D :D :D :D :D :yeah: :yeah:
Ciao :angel:

Ciccio75
16-12-2006, 10:19
A me piace la semplicità e sono anche pigro :D

http://www.easyvmx.com/easyvmx.shtml

pollicino
16-12-2006, 10:41
A me piace la semplicità e sono anche pigro :D

http://www.easyvmx.com/easyvmx.shtml

di che si tratta che non mi funge il link?

Ciccio75
16-12-2006, 11:39
E' un sito che ti permette di creare delle macchine virtuali così come fa Vmware workstation.

SimoneG82
25-02-2007, 23:12
Salve ragazzi, dedico il mio primo post su questo grande forum ad un problema che mi è sorto con questa macchina.
Ma è proprio simile in tutto e per tutto all'Ubuntu ufficiale? Perché è praticamente impossibile configurare il modem ethernet: molta gente c'è riuscita anche con l'Alice Gate, io non ci riesco. Potrebbe essere il fatto che ho la versione a noleggio, quindi non modificabile nei suoi parametri, però nada... :(

A questo punto mi sorge una domanda: vmware crea un sistema che è virtualmente "fisicamente" diverso da quello che lo ospita, con il quale infatti non dialoga se non direttamente impostato. Ma se navigo con la Browser Appliance utilizzando la connessione aperta in Win, praticamente è inutile navigare in tale modo, visto che così win ha una finestra aperta sul mondo ed è attaccabile da tutti quanti... :muro:

Qualcuno la utilizza e può aiutarmi??? :confused: