Talk:VirtualBox/Tips and tricks

From ArchWiki
Jump to navigation Jump to search

I have found a way to boot a single Windows installation from a dual-boot partition and from VirtualBox on a UEFI system. I believe this is worth adding as a new top-level section, since the process is substantially different from moving a native Windows intallation to a virtual machine. As far as I know, nobody else has done this, and I figured out the process myself via numerous documentation sources and a lot of trial-and-error. DCengineer (talk) 00:07, 31 August 2017 (UTC)

Run a Windows partition in VirtualBox

Does some successfully did it? Can someone with the knowledge complete the missing steps? VirtualBox/Tips and tricks#Run a Windows partition in VirtualBox —This unsigned comment is by Noraj (talk) 10:48, 7 March 2019 (UTC). Please sign your posts with ~~~~!

No `VBoxManage internalcommands createrawvmdk -register` switch

I've tried to reproduce a hint from VirtualBox/Tips_and_tricks#Run_a_native_Arch_Linux_installation_inside_VirtualBox with VirtualBox 6.0.14r132055, it shows this error:

Oracle VM VirtualBox Command Line Management Interface Version 6.0.14
(C) 2005-2019 Oracle Corporation
All rights reserved.

Usage: VBoxManage internalcommands <command> [command arguments]

Commands:

  createrawvmdk -filename <filename> -rawdisk <diskname>
                [-partitions <list of partition numbers> [-mbr <filename>] ]
                [-relative]
       Creates a new VMDK image which gives access to an entire host disk (if
       the parameter -partitions is not specified) or some partitions of a
       host disk. If access to individual partitions is granted, then the
       parameter -mbr can be used to specify an alternative MBR to be used
       (the partitioning information in the MBR file is ignored).
       The diskname is on Linux e.g. /dev/sda, and on Windows e.g.
       \\.\PhysicalDrive0).
       On Linux or FreeBSD host the parameter -relative causes a VMDK file to
       be created which refers to individual partitions instead to the entire
       disk.
       The necessary partition numbers can be queried with
         VBoxManage internalcommands listpartitions

WARNING: This is a development tool and shall only be used to analyse
         problems. It is completely unsupported and will change in
         incompatible ways without warning.

Syntax error: Invalid parameter '-register'

It worked OK without -register, though.

PS I found out this particular switch is used throughout the entire Wiki page in other recipes as well. Thaewrapt (talk) 08:56, 28 October 2019 (UTC)