Pass Raw Physical disks on a windows host to a linux virtualbox



With the VM shut down, and all managers and services like VBoxVmService stopped:

Optional when disk numbers have changed: Delete the existing TINY vmdk files with the same exact names you will be re creating from the file system and inside the .vbox file

Open power shell prompt as admin then run the following:

cd 'C:\Program Files\Oracle\VirtualBox\'
.\VBoxManage internalcommands createrawvmdk -filename "C:\0.vmdk" -rawdisk \\.\PhysicalDrive0
.\VBoxManage internalcommands createrawvmdk -filename "C:\1.vmdk" -rawdisk \\.\PhysicalDrive1
.\VBoxManage internalcommands createrawvmdk -filename "C:\2.vmdk" -rawdisk \\.\PhysicalDrive2
.\VBoxManage internalcommands createrawvmdk -filename "C:\3.vmdk" -rawdisk \\.\PhysicalDrive3
.\VBoxManage internalcommands createrawvmdk -filename "C:\4.vmdk" -rawdisk \\.\PhysicalDrive4
..... How ever many you have

Add the disks back in to the VM definition using the GUI.

Be sure you do not use any disks that windows might try to use.

Test the VM, boot, run, power off

restart the services like VBoxVmService


Thanks

Ubuntu 20.04 LTS 64 on a Raspberry Pi 4



Install Ubuntu Server on a Raspberry Pi 2, 3 or 4

https://ubuntu.com/download/raspberry-pi

Scan your LAN to find the IP then SSH

ssh -p 22 [email protected]
Password is ubuntu



Set Time zone:
dpkg-reconfigure tzdata

Configure your advanced network:
If using Netplan: https://netplan.io/examples

If using NetworkManager:

apt install network-manager

nmtui


If you get the error:
Connection is not available on device eth0 because device is strictly unmanaged

find related config files of interest:
grep -r eth0 /etc/

Comment out everything, or delete file:
vi /etc/netplan/50-cloud-init.yaml

vi /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
# Set and change netplan renderer to NetworkManager GUI tool
network:
  version: 2
  renderer: NetworkManager


reboot




root@rpi4-ubuntu:~# grep -r eth0 /etc/
/etc/initramfs-tools/initramfs.conf:# Specify a specific network interface, like eth0
/etc/NetworkManager/system-connections/eth0 no VLAN.nmconnection:id=eth0 no VLAN
/etc/NetworkManager/system-connections/eth0 no VLAN.nmconnection:interface-name=eth0
/etc/NetworkManager/system-connections/VLAN connection 1.nmconnection:interface-name=eth0.5
/etc/NetworkManager/system-connections/VLAN connection 1.nmconnection:parent=eth0
/etc/dhcp/dhclient.conf:#  interface "eth0";
/etc/dhcp/dhclient.conf:#  interface "eth0";
/etc/netplan/50-cloud-init.yaml:#        eth0:
root@rpi4-ubuntu:~#



Thanks