在Ubuntu 20.04中的VirtualBox中安装来宾Win10

我正在Ubuntu 20.04下运行VirtualBox 6.1.6_Ubuntu r137129。

我有一个USB记忆棒,其中包含从Win10中创建的Win10安装程序。 我要创建一个VM并从USB安装Win10。

我怎样才能做到这一点?

This asks something similar, but with much older versions (Virtualbox 4.0.4 Fedora 14), so the question is not exactly the same. The accepted answer links to here, dating back to 2013. The solution posted:

  1. 创建一个指向USB的VM访问(我可以这样做)
$ sudo vboxmanage internalcommands createrawvmdk -filename ~/VirtualBox_VMs/usb.vmdk -rawdisk /dev/sda1
RAW host disk access VMDK file /home/user1/VirtualBox_VMs/usb.vmdk created successfully.
  1. In the VM (I had already created it), go to Settings -> Storage -> Adds hard disk. (a small icon to the right of Controller: SATA) -> Add -> (Navigate to and select the usb.vmdk file just created) -> OK.
    Here I get the error
Permission problem accessing the file for the medium '/home/santiago/VirtualBox_VMs/usb.vmdk' (VERR_ACCESS_DENIED).

Result Code: 
VBOX_E_FILE_ERROR (0x80BB0004)
Component: 
MediumWrap
Interface: 
IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}
Callee: 
IVirtualBox {d0a0163f-e254-4e5b-a1f2-011cf991c38d}
Callee RC: 
VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
评论