Showing posts with label virtualbox. Show all posts
Showing posts with label virtualbox. Show all posts

Sunday, 28 September 2014

Solucion al error: 0x000000C4 VirtualBox

Si estas virtualizando Windows 8 o Server 2012 y te muestra el error: 0x000000C4, sigue estos pasos para solucionarlo

Ejecuta la linea comandos, cmd.exe, y ejecuta este comando:


C:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata "NOMBRE DE LA MAQUINA VIRTUAL" VBoxInternal/CPUM/CMPXCHG16B 1


Recuerda colocar el directorio donde se encuentra el archivo: VBoxManage.exe y cambiar "NOMBRE DE LA MAQUINA VIRTUAL" por el nombre de la maquina virtual que te esta arrojando el error

Este comando habilita la instruccion CMPXCHG16B del CPU


Publicado en tttony.blogspot.com

Monday, 18 November 2013

How to Install Android on Your PC

It used to be the case that PC users had the choice of installing Windows or, if they were feeling adventurous, a version of Linux. This is still true, but it is now also possible to install OS X without owning a Mac and virtualization means that you can do all of this alongside your main operating system in a virtual computer.
This being Android.AppStorm, you may well wonder what virtualization has to do with your phone or tablet. Well, how would you feel about the chance of installing and running Android on your PC? Using a free copy of VirtualBox and the information in this guide, you can run a fully functioning – and legal – version of Jelly Bean on your computer.


It’s a Simple Process

First, you’ll need to grab yourself a copy of VirtualBox. This powerful virtualization utility can be used to install a second operating system alongside your primary one, and while this usually means running a second copy of Windows or trying out Ubuntu, there’s no reason why you shouldn’t be able install a mobile operating system as well.
Android may have been designed for your phone and tablet , but that doesn’t mean it needs to stay there.
Android may have been designed for your phone and tablet , but that doesn’t mean it needs to stay there.
Once you have the virtualization software up and running, you’ll need to get hold of a copy of Jelly Bean to install. This does not mean that you need to obtain an illicit copy of the operating system from an untrustworthy website, or rip a copy of your phone’s ROM – it is actually freely available.

Step 1: Grab an Android ROM

There are various versions of Android available for download, but it makes sense to work with the most recent version – Jelly Bean. Head over to the Android-x86 website scroll down to the Android-x86-4.2-devel section and click the View link for the most up to date version (at time of writing this is 4.2 20130228).
How to Install Android on Your PC
There are several Android ROMs available to download including the latest version of Jelly Bean.
Weighing in at just under 200MB, the download will take a moment to transfer. Once you have the ISO file on your hard drive, you’re ready to set about the task of installing it in VirtualBox.

Step 2: Going Virtual

Pay a visit to the VirtualBox download page and click the link to download the software. Here, I’m working with Windows 8, but VirtualBox is compatible with older versions of Microsoft’s operating system, and there are also versions available for OS X and Linux.
VirtualBox How to Install Android on Your PC
VirtualBox can be used to install a second operating system on your computer, including Android.
Once downloaded, run through the installation of the program  – just accept all of the default options. Don’t be concerned when you’re asked to install a new network adaptor as this is part if the usual installation process.
A virtual network adaptor will be installed by VirtualBox to allow virtual machines to get online.
A virtual network adaptor will be installed by VirtualBox to allow virtual machines to get online.
Once installation is complete, launch VirtualBox and you’re ready to move to the next stage.

Step 3: Create a Virtual Machine

You’ll need to start by creating a new virtual machine onto which you will install Android. Click the New button. Name the virtual machine whatever you like, and (as Android is based on Linux) select  Linux from the first drop down menu. From the Version menu select Other Linux and then click Next.
Android is a Linux-based operating system and it needs to be correctly identified in VirtualBox.
Android is a Linux-based operating system and it needs to be correctly identified in VirtualBox.
Move the memory slider to the right so that 512MB or more of RAM is set aside for VirtualBox and click Next. Make sure that the Create a virtual hard drive now option is selected and click Create. Select VDI, click Next and then select the Fixed size option before clicking Next.
You can then use the slider to choose how large a disk should be assigned to the virtual machine, and you can use the folder button to choose where it should be stored. Click Create when you’ve configured your settings — it might take a few minutes for the virtual disk to be created.
Your virtual Android device can be assigned a drive capacity of your choice -- go wild!
Your virtual Android device can be assigned a drive capacity of your choice — go wild!

Step 4: Install Android

Make sure that you have your newly created virtual machine selected and then click the Settings button in the toolbar. Click the Storage link to the left hand side of the dialog and then towards the center click the Empty entry in the Storage Tree section.
To the right of this, click the small disc button and select Choose a virtual CD/DVD disk file from the menu that appears. Navigate to the ISO file you have downloaded, select it and click Open followed by OK.
The ISO files you've downloaded can be used as a virtual CD to install Android.
The ISO files you’ve downloaded can be used as a virtual CD to install Android.
Power up your virtual machine by clicking the Start button in the VirtualBox toolbar.
If this is the first time you’ve used the program you may see a message letting you know about mouse capturing. When you move the mouse cursor inside the virtual machine window you’ll find that you cannot move it back out to control Windows as you normally would – just remember to press the right hand Ctrl key to free up the mouse when you need to.
Use the arrow keys on your keyboard to scroll down to the Installation option and press Enter.
Android can be run without installation, but opting to install provides a better, faster experience.
Android can be run without installation, but opting to install provides a better, faster experience.
Now you will need to configure the virtual hard drive so that there is somewhere to install Android to. Select the Create/Modify Partition option and press Enter.
Select New at the bottom of the screen and press Enter, and then select the Primary option before pressing Enter again. Press Enter to create a partition that occupies your entire virtual drive.
Configuring hard drives for Android may seem complex, but it takes just a few moments.
Configuring hard drives for Android may seem complex, but it takes just a few moments.
Now select the Bootable option and press Enter, select Write and press Enter, and then type the word yes before pressing Enter once again. Select Quit, choose the partition you’ve just created and press Enter.
When prompted, select the option to use the ext3 file system and select Yes to confirm your choice. The GRUB bootloader takes care of launching Android, so select Yes to install it and then select Yes again to make the /system directory writeable.
The correct drive format must be selected for Android to work properly, so take care during configuration.
The correct drive format must be selected for Android to work properly, so take care during configuration.
It won’t be long before Android boots, and at this point you should remove the virtual CD from the drive. Click the Devices menu and select CD/DVD Devices followed by Remove disk from virtual drive.
It's a slightly time-consuming process, but getting Android on your PC is very rewarding.
It’s a slightly time-consuming process, but getting Android on your PC is very rewarding.

Step 5: Almost There!

You might find that Android takes a little while to boot up — at least the first time around — and you’ll then have to run through the initial configuration just like you did the first time you switched on your phone or tablet.
Should you find that your mouse does not work and you are unable to click within Android, click the Machine menu in Virtual Box and then click Disable Mouse Integration. You may also find it useful to click View followed by Switch to Scale Mode if you find the mouse acts erratically — you can switch back to regular mode by pressing the right Ctrl key and C at the same time.
The first time you run Android you'll have to set it up just like you did on your phone or tablet.
The first time you run Android you’ll have to set it up just like you did on your phone or tablet.
You can ignore any steps related to connecting to a wireless network as VirtualBox will just make use of your computer connection without the need for additional configuration.
Running Android within Windows can feel strange to start with, but it's also great fun!
Running Android within Windows can feel strange to start with, but it’s also great fun!
Now it’s time to pay a visit to Google Play and start downloading apps! Let us know how you get on, particularly if you think up any interesting uses for a virtualized copy of Android.

More articls ;
 
How to install Ubuntu on MacBook using USB Stic

Friday, 27 April 2012

Modificar el tamaño del disco duro virtual en VirtualBox 4.1.x

ATENCION!!! antes de empezar recomiendo encarecidamente que hagan una copia de seguridad del sistema que intentan modificar

NO ME HAGO RESPONSABLE DE LA PERDIDA DE DATOS


Si ya no tienes mas espacio en el disco virtual te toca redimensionarlo, supongamos que tienes Ubuntu o Windows o cualquier sistema operativo en un disco virtual de 8GB y de repente te salta un mensaje diciendo que no tiene mas espacio en disco, toca redimensionarlo, pero... ¿como?

Despues de rebuscar en la web me he encontrado con la respuesta que necesitaba

Si creistes que colocando el disco virtual como "Expansion Dinamica" podias expandirlo mas adelante pues te haz equivocado, aqui en este foro el compañero Loha explica bien el significado de expansion dinamica:

Solo paso a aclarar que esta mal entendido el concepto de expansión dinámica de virtualbox, Ejemplo si has creado un disco de 2gb ese es el tamaño máximo de disco.Si instalas un OS en ese disco y te ocupa 1.2gb eso es lo que va a ocupar el archivo de imagen del disco virtual en tu pc y se va a ir expandiendo a medida que se cargue con mas cosas hasta completar los 2gb asignados.
La próxima ves pueden hacer un disco virtual de 20 o 30 gigas con expansión dinámica, recuerden que ese va a ser el tope máximo del disco virtual, y el tamaño de la imagen de disco virtual, va a ir creciendo a medida que sea cargada, hasta el tope máximo que le hayamos puesto, 20 o 30 gb.Saludos espero se entienda.


Y abajo el compañero dragon2711 nos da la solucion para redimensionar el disco virtual sin necesidad de herramientas de terceros

Cierra el VirtualBox antes de proceder

1. Listar los discos virtuales que tengas:
VBoxManage list hdds




2. Comando para redimensionar
vboxmanage modifyhd 353e1051-6840-4443-a313-8860f31ab778 --resize 12000


Cambia el uuid 353e1051-6840-4443-a313-8860f31ab778 por el que corresponda y tambien coloca el tamaño que desees, yo lo cambie de 8GB a 12GB

NOTA: si te sale un error de que no encuentra el comando vboxmanage te tienes que ir a la carpeta raiz de VirtualBox y ejecutar cmd.exe desde alli


3. Formatear y montar la nueva particion

  • Desde Windows puedes ir al Administrador de discos y formatear la nueva particion
  • Desde Linux puedes usar gParted u otra herramienta CDLive para formatear la nueva particion, yo use: "Utilidad de discos" que viene en Ubuntu





Cuando instalas Ubuntu, se crea una particion de Linux Swap (la mia fue de 400MB) que es una particion de intercambio, esa particion esta al final de la particion de instalacion de Ubuntu:



Ahora bien, si quieres que la nueva particion sea parte de la primera particion
tendras que seguir estos pasos:

1. Arranca un CDLive que contenga gParted, puede ser el mismo CDLive de Ubuntu o sino descargate el CDLive de gParted aqui (yo use Hiren's Boot 14.0 que viene con un Linux llamado PartedMagic)
2. Borra la particion Swap y te debe quedar algo como asi:



3. Selecciona la primera particion haz click en Resize/Move y redimensiona la particion hasta llegar al final de la otra particion, asi:



4. Click en Apply y deberia quedarte asi:



Ahora vamos a crear la particion Swap al final de esta nueva particion

5. Selecciona la particion haz click en Resize/Move y en Free space folowing deja unos 400MB, asi:



6. Seleciona la nueva particion
7. Click derecho: New
8. Create as: Extended Partition
9. Click en: Add
10. Seleciona la nueva particion
11. Click derecho: New
12. File system: linux-swap
13. Apply y quedaria algo como asi:



14. Listo!!

Reinicia e intentar iniciar Ubuntu con el nuevo espacio en disco, mira ahora como se ve y comparalo con la segunda imegen de este tutorial:



Publicado en tttony.blogspot.com

Thursday, 24 November 2011

Instalar Mac OS X Snow Leopard 10.6 en VirtualBox desde Windows 7 x64




Por fin pude instalar el sistema operativo Mac OS X 10.6 Snow Leopard en VirtualBox que por cierto escribo desde el xD

¿Diferencias entre un Mac y un PC?


La principal diferencia entre un Mac y un PC es la interfaz firmware:

  • Basic Input/Output System (BIOS) en los PC
  • Extended Firmware Interface (EFI) en los Mac.

Esta diferencia imposibilita la instalación del sistema operativo Mac OS X en los PC



¿Que tuve que hacer para instalarlo?


Mi PC:

  • i5 2500K
  • MSI P67A GD65
  • HIS 6950
  • 8GB RAM

Tener la version original de OS X 10.6 y luego convertirla a una imagen ISO que VirtualBox pueda leer, lo puedes hacer leyendo esta guia

¿Que se necesita?


- Que tu procesador soporte virtualizacion Intel VT-x/AMD-v, para saber si lo tienes activado puedes usar CPU-Z




He encontrado una aplicacion mejor para detectar si tienes des/activado la virtualizacion, se llama VirtualChecker

***Esta caracteristica puede estar deshabilitada, la puedes habilitar desde la BIOS***

  1. *** Descargar iBoot 3.2(debes estar registrado), esta aplicacion emula el EFI de un Mac
  2. Descargar VirtualBox la version actual al escribir este es VirtualBox 4.1.6
  3. Tambien debes descargarte el extensionPack (Esto es muy IMPORTANTE ya que ayuda con el USB)
  4. Si tienes la version original del Mac OS X, debes convertir esa imagen ISO o DMG en una imagen ISO que VirtualBox pueda leer, con esta utilidad, ya que al intentar cargar una imagen de Mac en VirtualBox te mostrara un error:  VERR_VD_DMG_INVALID_HEADER

OJO!!: intente instalar el Mountain Lion 10.8 sin modificar y no se puede instalar con el iBoot, ya que este funciona solo para instalar el Snow Leopard 10.6, para instalar el Mountain Lion hay que tener una version modificada y no te recomiendo actualizar a Mountain Lion ya que presenta problemas con los USB, hay que copiar unos archivos, aqui la guia en ingles

*** NOTA: existen otras utilidades que puede ayudarte a iniciar Mac OS X (modificado o no) en VirtualBox, pero mucho depende de la PC que tengas, existe una utilidad llamada empireEFI que tambien ayuda a la instalacion de Mac OS X

Crear una maquina virtual


  1. Ejecuta VirtualBox
  2. Click en Nueva
    • Nombre: Mac OS X (escribe el que quieras)
    • Sistema Operativo: Mac OS Server
  3. Click (en la parte izquierda) en Sistema
    • Memoria base: 1500MB o 2000MB
    • Orden de arranque:
      1. CD/DVD-ROM
      2. Disco duro
    • Chipset: ICH9
    • Habilitar IO APIC
    • Habilitar dispositivo apuntador absoluto
  4. Click en la pestaña Procesador
    • Procesador(es): 2
    • Habilitar PAE/NX
  5. Click (en la parte izquierda) en Pantalla
    • Memoria video: 128MB
    • Habilitar aceleracion 3D
  6. Click (en la parte izquierda) en Almacenamiento
    • Controlador IDE: (agrega una unidad de CD y selecciona el la imagen .iso de iBoot-3.2 previamente descargado)
    • Controlador SATA: (por ejemplo: crea un disco de 20GB con expansion dinamica)
  7. Click (en la parte izquierda) en Audio
    • Controlador de audio anfitrion: Windows DirectSound
    • Controlador de audio: Audio Intel HD
  8. Click (en la parte izquierda) en Red
    • Conectado a: Adaptador puente (aqui hay varias opciones prueba la que mejor te va)
    • Nombre: Realtek PCIe GBE Family Controller (escoge el adaptador de red que tengas activado en windows)
  9. Click (en la parte izquierda) en USB
    • Habilitar controlador USB
    • Habilitar controlador USB 2.0 (EHCI)
  10. Click en: Aceptar

Intalar Mac OS X 10.6 Snow Leopard:


  1. Inicia la maquina virtual de Mac OS X
  2. Te aparecera un manzanita roja y en el centro el icono de iBoot
  3. iBoot se ha cargado en la memoria, ahora debes cargar la imagen ISO de Mac OS X previamente descargada y convertida con dmg2img
  4. En la ventana de la maquina virtual haz click en el menu que esta situado en la parte superior izquierda en Dispositivos -> Dispositivos CD/DVD -> Seleccionar un archivo de disco virtual de CD/DVD: Busca y selecciona la imagen de Mac OS X (no te olvides de convertirla con dmg2img de lo contrario no abrira y te arrojara un error)
  5. Espera unos 5 segundos y presiona la tecla F5 y te aparecera algo como: Mac OS X install DVD
  6. Selecionalo y presiona Enter
  7. Alli ya deberia de aparecerte la pantalla de instalacion
  8. Sigue los pasos de instalacion y listo!!

La instalacion es muy sencilla, asi que no veo necesario postear los pasos para la instalacion del Mac OS X


Publicado en tttony.blogspot.com

Friday, 18 February 2011

Compartir una carpeta en VirtualBox con Windows host y Ubuntu guest

Si quieres compartir una carpeta entre un Windows host y un Ubuntu como huesped sigue estos pasos:

* Configurar la red de la maquina virtual




** NOTA: En realidad puedes elegir cualquiera **


* Inicia la maquina virtual 
* Click en el menu: Dispositivos y selecciona: Instalar << Guest Additions >>



* Reinicia la maquina huesped Ubuntu
* Comparte una carpeta desde Windows



* Elije la carpeta, colocale un nombre y dale los permisos que quieras



* Abre una terminal como sudo su (administrador) y escribe:



mount -t vboxsf D_DRIVE /home/TU_NOMBRE/OTRA_CARPETA

** LA CARPETA DEBE EXISTIR **


* Luego ya puedes ver el contenido de la carpeta de Windows desde Ubuntu



* Si no quieres montarlo manualmente cada vez que inicias Ubuntu, puedes agregar esta linea en el archivo /etc/fstab recuerda que debes hacerlo como root

D_DRIVE /home/TU_NOMBRE/OTRA_CARPETA vboxsf defaults 0 0


 Si durante el inicio de Ubuntu te muestra un mensaje como:

Ocurrió un error cuando se montaba /home/TU_NOMBRE/OTRA_CARPETA
Pulse S para omitir el montaje o M para recuperar manualmente

Esto sucede porque el modulo vboxsf, no se carga antes de montar las unidades, lo que debemos hacer es cargar el modulo mucho antes para que pueda montar las unidades


 Edita el siguiente archivo como root:
sudo gedit /etc/initramfs-tools/modules

Y agregas al final del archivo:

vboxsf

Y por ultimo ejecutar este comando:
sudo update-initramfs -u

NOTA IMPORTANTE: si el sistema al iniciar se congela por un momento y no monta las unidades, puedes revertir el cambio del archivo iniciando en el sistema de recuperacion de Ubuntu

Abre de nuevo el archivo /etc/initramfs-tools/modules como root y elimina lo que agregamos al final: vboxsf


Publicado en tttony.blogspot.com

Mensaje de error en VirtualBox

Si te encuentras con este mensaje de error:

Failed to open a session for the virtual machine Ubuntu.

The VM session was closed before any attempt to power it on.

Details:

Result Code:
E_FAIL (0x80004005)
Component:
Machine
Interface:
ISession {12f4dcdb-12b2-4ec1-b7cd-ddd9f6c5bf4d}

Existen dos formas de solucionarlo

Opcion 1:


  1. Selecciona la maquina virtual de la lista en VirtualBox
  2. Click en: Configuracion
  3. Selecciona: Sistema
  4. En Orden de arranque: Desactiva el Disco Duro  
  5. Click en Aceptar 
  6. Iniciar la maquina virtual
  7. Te mostrara un mensaje de error que no hay por donde bootear 
  8. Cierra la ventana
  9. Vuelve a activar el disco duro
  10. Inicia de nuevo la maquina virtual
  11. Ya deberia estar solucionado el problema
  12. Que loco no?

Opcion 2:


Si esto no te ha funcionado entonces seguro que en el mensaje de error dice:

Fallo al abrir una sesión para la máquina virtual.
VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED).

El error se refiere a que el procesador no tiene o no posee la caracterisitica de Virtualizacion activada, la solucion es ir al BIOS de la tarjeta madre y activar, se llamaria algo como Virtualization en ingles




Con VirtualChecker puedes saber si tu procesador tiene VT-x y te dice si la tienes activado o no


Publicado en tttony.blogspot.com