
fdisk -l emits this partition setup
Device Boot Start End Blocks Id System
/dev/sda1 * 1 18102 145404283+ 7 HPFS/NTFS
/dev/sda2 18103 36481 147629317+ 5 Extended
/dev/sda5 18103 19075 7815591 82 Linux swap / Solaris
/dev/sda6 19076 34049 120278623+ 83 Linux
/dev/sda7 34050 36481 19535008+ 83 Linux
VBoxManage internalcommands createrawvmdk -filename /home/home/.VirtualBox/Disks/rawDiskXP.vmdk -rawdisk /dev/sda -partitions 1 -relative
nw60312 wrote:Hello - Did some more digging. Was a grub error. Regardless I started over, but now ran into a new set of problems.
Configuration error: Querying "DmiSystemVersion" as a string failed.
VBox status code: -2107 (VERR_CFGM_NOT_STRING).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Console
Interface:
IConsole {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}
nw60312 wrote:Grub would not start the windows boot loader. Different problem from what you have. I have same error as well, I have not been able to get around that one either, for now I just had to leave it blank. I have not tried activation yet.
#! /bin/bash
VMNAME="WinXP" # Name of the virtual machine
VSETED="VBoxManage setextradata $VMNAME" # The command to set data
CFGPATH="VBoxInternal/Devices/pcbios/0/Config"
$VSETED $CFGPATH/DmiBIOSVendor "Hewlett-Packard"
$VSETED $CFGPATH/DmiBIOSVersion "F.21"
$VSETED $CFGPATH/DmiBIOSReleaseDate "07/18/2008"
$VSETED $CFGPATH/DmiBIOSReleaseMajor "2"
$VSETED $CFGPATH/DmiBIOSReleaseMinor "4"
$VSETED $CFGPATH/DmiBIOSFirmwareMajor "2"
$VSETED $CFGPATH/DmiBIOSFirmwareMinor "4"
$VSETED $CFGPATH/DmiSystemVendor "Hwelett-Packard"
$VSETED $CFGPATH/DmiSystemProduct "HP Pavilion dv7 Notebook PC"
$VSETED $CFGPATH/DmiSystemVersion "1"
$VSETED $CFGPATH/DmiSystemUuid "8A7688D1-8A6F-11DD-8155-001EECB74F5D"
$VSETED $CFGPATH/DmiSystemFamily "103C_5335KV"
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Native" /execute /fastdetect /kernel=ntkrnlmp.exe /hal=halmacpi.dll
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Virtual" /execute /fastdetect /kernel=ntkrnlsp.exe /hal=halsp.dll
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP (Native)" /noexecute=optin /fastdetect /kernel=ntkrnlmp.exe /hal=halmacpi.dll
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP (VM)" /noexecute=optin /fastdetect /kernel=ntkrnlsp.exe /hal=halsp.dll
#! /bin/bash
VISTA_VM=NativeXP
VISTA_PARTITION=/dev/sda1
VISTA_MOUNT=/mnt/rawXP
HIVE_PATH=/WINDOWS/system32/config
HWPROFILEKEY=ControlSet001\\Control\\IDConfigDB\\CurrentConfig
HWPROFILEVM=2 # VM hardware profile number
HWPROFILENATIVE=1
# Native hardware profile number
setHwProfile() {
sudo umount $VISTA_MOUNT
sudo mount -t ntfs-3g -o rw $VISTA_PARTITION $VISTA_MOUNT
#/usr/bin/regsetdword -f $VISTA_MOUNT/$HIVE_PATH/system $HWPROFILEKEY $1
sleep 1
sudo umount $VISTA_MOUNT
sudo mount -t ntfs-3g -o ro $VISTA_PARTITION $VISTA_MOUNT
}
setVMKernel() {
sudo umount $VISTA_MOUNT
sudo mount -t ntfs-3g -o rw $VISTA_PARTITION $VISTA_MOUNT
rm $VISTA_MOUNT/WINDOWS/system32/hal.dll
rm $VISTA_MOUNT/WINDOWS/system32/ntoskrnl.exe
cp $VISTA_MOUNT/WINDOWS/system32/halsp.dll $VISTA_MOUNT/WINDOWS/system32/hal.dll
cp $VISTA_MOUNT/WINDOWS/system32/ntkrnlsp.exe $VISTA_MOUNT/WINDOWS/system32/ntoskrnl.exe
sleep 1
sudo umount $VISTA_MOUNT
}
setNativeKernel() {
sudo umount $VISTA_MOUNT
sudo mount -t ntfs-3g -o rw $VISTA_PARTITION $VISTA_MOUNT
rm $VISTA_MOUNT/WINDOWS/system32/hal.dll
rm $VISTA_MOUNT/WINDOWS/system32/ntoskrnl.exe
cp $VISTA_MOUNT/WINDOWS/system32/halmacpi.dll $VISTA_MOUNT/WINDOWS/system32/hal.dll
cp $VISTA_MOUNT/WINDOWS/system32/ntkrnlmp.exe $VISTA_MOUNT/WINDOWS/system32/ntoskrnl.exe
sleep 1
sudo umount $VISTA_MOUNT
}
#setHwProfile $HWPROFILEVM
setVMKernel
/usr/bin/VirtualBox -startvm $VISTA_VM
setNativeKernel
#setHwProfile $HWPROFILENATIVE
Users browsing this forum: No registered users and 15 guests