How to refresh generated vdi image in VirtualBox

I generate a VDI hdd image with a script.

As i am in tuning process, i regenerate it very often.

Each time the VDI is regenerated, VirtualBox did not recognize the disk anymore and i have to remove it, reenter the new file and associate it with my VM:

$ VBoxManage startvm iso-debian

Waiting for VM "iso-debian" to power on...
VBoxManage: error: Could not open the medium '/path/to/myimage.vdi'.
VBoxManage: error: VD: error VERR_FILE_NOT_FOUND opening image file '/path/to/myimage.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MediumWrap, interface IMedium

The file exists but i presume its UUID or some metadata has changed so it is not found by VirtualBox.

Is there a more convenient way (through VBoxManage) to tell VirtualBox to refresh its VDI database ?

Something like:

$ VBoxManage update-vdi-metadata /path/to/myimage.vdi

or something else i can put in a bash script to avoid having to make all theses steps manually.

virtualization – VirtualBox: Simultaneous Windows and Linux guests on Windows 10 host

I am running VirtualBox on Windows 10.

I have disabled Hyper-V from previously using Hyper-V, where I didn’t have much success running a Linux guest (and also struggled with the networking).

My Linux guests run fine, both using KVM paravirtualization.

I noticed, when starting the install of my Windows 10 guest, that the default paravirtualization option chosen by VirtualBox is Hyper-V (which is apparently the default for Windows guests).

So, my first question: Why does VirtualBox choose this when Hyper-V is not installed/enabled?

I am currently busy installing Windows 10 after having restarted and forced KVM as the paravirtualization interface, but notice that the installation is running quite slowly, though it seemed to be running as slowly when Default/Hyper-V was selected.

Is there a way to successfully run Windows and Linux guests on VirtualBox on a Windows host at decent speeds?

windows installed to raw partition run in virtualbox

A desktop system ships with an installation of Windows 10. Subsequently, the main Windows partition is collapsed to make space for a Linux installation. The system boots to Linux normally, with the Windows installation unused.

Without affecting the volume layout, it is desired to boot the Windows installation in a virtual machine through Oracle VirtualBox. In principle, doing so seems possible through VMDK raw images. A straightforward strategy is to import the UEFI boot partition into the raw image, for booting the virtual machine. However, support for UEFI emulation in VirtualBox is not fully functional, and BIOS emulation is preferred. Then, since the physical partition has no MBR data, it is necessary to import the Windows partition into the raw image, and somehow add to the virtual machine additional media that boot the Windows installation.

Is such a strategy viable? If so, how? Is another strategy more optimal?

Wireless Network Connection “sometimes”/occasionally successful Kali Linux (VirtualBox)

I am fairly new to Kali Linux (v2020 on VirtualBox attached to NAT) and Ethical Hacking in general. So, well, I am not able to figure out how to connect wirelessly to my Network Adapter. I have looked through various forums on the same, but still in vain. It shows the error Activation of Network Connection Failed and sometimes it simply fails to detect any nearby networks. I am using Ralink 802.11 n WLAN (0101) Wireless Adapter. And, I think it does support Monitor Mode judging from the fact that I was able to run the airodump command successfully (and it was able to show me the nearby access points). With this command too, I have found out that it is not always able to detect the clients. And, I am not sure, when or in what specific configurations that is. How am I supposed to resolve this issue?

Thanks.

virtualization – windows installed to raw partition run in virtualbox

A desktop system ships with an installation of Windows 10. Subsequently, the main Windows partition is collapsed to make space for a Linux installation. The system boots to Linux normally, with the Windows installation unused.

Without affecting the volume layout, it is desired to boot the Windows installation in a virtual machine through Oracle VirtualBox. In principle, doing so seems possible through VMDK raw images. A straightforward strategy is to import the UEFI boot partition into the raw image, for booting the virtual machine. However, support for UEFI emulation in VirtualBox is not fully functional, and MBR emulation is preferred. Then, since the physical partition has no MBR data, it is necessary to import the Windows partition into the raw image, and somehow add to the virtual machine additional media that boot the Windows installation.

Is such a strategy viable? If so, how? Is another strategy more optimal?

virtualbox – Access MailHog WebGui Running in Virtual Machine from Host Machine’s Web Browser

I have a Debian 10.5 LAMP server in virtualbox 6.1, running with ISPConfig and Roundcube.

I installed MailHog to test my email configs, however MailHog’s webGUI is only available on:
localhost:8025 and/or 127.0.0.1:8025

How can I change the address of MailHog’s webGUI to match the ip of my virtualmachine? For example:

test.example.com:8025and/or 192.138.87.100:8025

I’ve read the docs at:
https://github.com/mailhog/MailHog/blob/master/docs/CONFIG.md

but, I must be missing something.. (zero coding skills)

virtualbox – Crackiling sound on main system after installing and using arch in a vm

I’m on Pop!_OS 20.04 LTS

After I used Oracle VirtualBox to install and use arch in a VM there are now crackling noises in both the VM and the main system (Even when the VM is off).

I tried rebooting but that did nothing and still counter some crackling in some YouTube videos and in Discord.

Ubuntu 21.04 Host freezes when using virtualbox with a xeon 1230 v2 cpu

I am using ubuntu 21.04 with a xeon 1230 v2 cpu. Whenever i use virtualbox the whole system freezes randomly. Sometimes the cursor can still move & sometimes it does not. The weird thing is a windows host works fine & if I switch to a intel i5-3570 cpu ubuntu works normally.

Rarer times the whole system freezes not using virtualbox at all, just using the system normally.

Specs:
Virtualbox 6.1.22
Dell optiplex 7010
16gb ram
Xeon 1230 v2 cpu
860 evo ssd
Ubuntu 21.04

bluetooth – Improving Ubuntu speed and stability on VirtualBox running on a Mac

Good day–

I just started running Ubuntu 20.04.2 via VirtualBox 6.1.22 on a 2017 MacBook Pro with a 3.5 GHz Dual-Core Intel Core i7, 16 GB of RAM, and macOS 11.3.1. I’ve allocated 11.5 GB of RAM, maxed out video memory at 128 MB, and allocated 2 processors to the virtual machine. When I run the virtual machine, most of my Mac apps are closed (and the ones that are running are not memory or processor intensive).

There’s a substantial lag time though from when I hit the keyboard or move the mouse until when the action is reflected on the screen (both devices are Bluetooth). The problem is more significant when I’m trying to open or close an app, scroll with the mouse, or use the mouse to lay out the contents of a screenshot. Additionally, I’m mostly running only Firefox and Brave on Ubuntu (simultaneously), but still experience a fair amount of crashes.

Any suggestions for how I can make my Ubuntu virtual machine faster and more stable? Thanks!

virtualbox – Can’t access pfsense web console

I’ve installed pfsense 2.3 x64 in virtualbox with 2 adapters; One is bridged to my wifi adapter (adsl modem) (WAN) and the other one set as’Internal network’ (‘intnet’) (Lan);

The problem is when i try to access the web interface it sais 10.1.1.2 took too long to respond. I can ping the host just fine. Here are my configuration settings. enter image description here

pfsense enter image description here

enter image description here