Ads by RevenueHits

Linuxeros Faq

Ads by Bidvertiser

Busqueda sobre Linux y software libre

El mismo windows desde grub o desde vmware en Linux

Siempre quise correr el mismo windows de dos formas: desde grub (nativa, fuera de linux)
o desde vmware (máquina virtual). No era difícil. Copia de mi how to:

Win desde otra partición/disco con VMWare
=========================================

(Obtenido de http://adf.ly/1eKBTU )

1. En mi caso, tengo instalado Windows en otro disco duro:

----
# fdisk -l /dev/sdb

Platte /dev/sdb: 250.0 GByte, 250059350016 Byte
255 Köpfe, 63 Sektoren/Spuren, 30401 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0xb293b293

Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 * 1 6226 50010313+ 7 HPFS/NTFS
/dev/sdb2 6227 30401 194185687+ c W95 FAT32 (LBA)
----

2. Obtener los datos de la geometria:

----
# parted /dev/sdb

GNU Parted 1.8.6
Verwende /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) unit s
(parted) print
Model: ATA HDS722525VLAT80 (scsi)
Disk /dev/sdb: 488397168s
**********
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 63s 100020689s 100020627s primär ntfs boot
2 100020690s 488392064s 388371375s primär fat32 lba

(parted) unit cyl
(parted) print
Model: ATA HDS722525VLAT80 (scsi)
Disk /dev/sdb: 30401cyl
Sector size (logical/physical): 512B/512B
BIOS cylinder,head,sector geometry: 30401,255,63. Each cylinder is 8225kB.
************
Partition Table: msdos

Number Start End Size Type File system Flags
1 0cyl 6225cyl 6225cyl primär ntfs boot
2 6226cyl 30400cyl 24175cyl primär fat32 lba

----

3. Con los datos subrayados con asteriscos:

a) Calcular el area del disco menos 63:

488397168 - 63 = 488397105

b) Tomar nota de la geometría:

30401,255,63

4. Obtener una copia del mbr:

# dd if=/dev/hdb of=/home/rodolfoap/loc/winxpsdb/windowsxp.mbr bs=512 count=63

4. Crear un archivo vmdk con esos datos:

# cat /home/rodolfoap/loc/winxpsdb/win.vmdk

----
# Disk DescriptorFile
version=1
CID=28919e72
parentCID=ffffffff
createType="fullDevice"

# Extent description
RW 63 FLAT "windowsxp.mbr" 0
RW 488397105 FLAT "/dev/sdb" 63
# *********

# The Disk Data Base
#DDB

ddb.geometry.cylinders = "30401"
# *****
ddb.geometry.heads = "255"
# ***
ddb.geometry.sectors = "63"
# **

ddb.virtualHWVersion = "4"
ddb.adapterType = "ide"
ddb.toolsVersion = "6530"
----

4. Crear la máquina virtual con estos datos:

---
# cat /home/rodolfoap/loc/winxpsdb/windows.vmx

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "4"

uuid.location = "56 4d d6 5f 87 0f 8e b9-b6 ca 7d c8 de 78 5a 11"
uuid.bios = "56 4d d6 5f 87 0f 8e b9-b6 ca 7d c8 de 78 5a 11"

uuid.action = "create"
checkpoint.vmState = ""

displayName = "Windows XP"
annotation = ""
guestinfo.vmware.product.long = ""
guestinfo.vmware.product.url = ""

guestOS = "winxppro"
numvcpus = "1"
memsize = "128"
paevm = "TRUE"
sched.mem.pshare.enable = "TRUE"
MemAllowAutoScaleDown = "FALSE"

MemTrimRate = "-1"
nvram = "WindowsXP.nvram"
mks.enable3d = "FALSE"
vmmouse.present = "FALSE"
vmmouse.fileName = "auto detect"

tools.syncTime = "TRUE"
tools.remindinstall = "FALSE"
isolation.tools.hgfs.disable = "FALSE"
isolation.tools.dnd.disable = "FALSE"
isolation.tools.copy.enable = "TRUE"
isolation.tools.paste.enabled = "TRUE"
gui.restricted = "FALSE"

ethernet0.present = "TRUE"
ethernet0.connectionType = "bridged"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:78:5a:11"
ethernet0.generatedAddressOffset = "0"

usb.present = "FALSE"
usb.generic.autoconnect = "FALSE"

sound.present = "TRUE"
sound.virtualdev = "sb16"

ide0:0.present = "TRUE"
ide0:0.fileName = "win.vmdk"
ide0:0.mode = "independent-persistent"
ide0:0.deviceType = "rawDisk"
ide0:0.redo = ""
ide0:0.writeThrough = "FALSE"
ide0:0.startConnected = "TRUE"

ide1:0.present = "TRUE"
ide1:0.fileName = "/dev/cdrom"
ide1:0.deviceType = "atapi-cdrom"
ide1:0.writeThrough = "FALSE"
ide1:0.startConnected = "TRUE"

floppy0.present = "TRUE"
floppy0.fileName = "/dev/fd0"
floppy0.startConnected = "TRUE"

serial0.present = "FALSE"
serial1.present = "FALSE"
parallel0.present = "FALSE"
----

6. Listo. En mi caso hubo que hacer chmod 660 /dev/sdb, pues mi usuario no
tiene acceso al sdb.

Bootea correctamente desde VMWare o a partir del Grub. Genial!



Ads By Bidvertiser

Tienda linuxeros FAQ

29440009-121797753

Ads by Daily Motion