Shrink a vmdk Virtualbox disk image

I found a solution: First inside the VM fill all free space with zeros: cat /dev/zero > zero.fill;sync;sleep 1;sync;rm -f zero.fill In your Host, install vmware-vdiskmanager from the VMware Knowledge Base: cd /tmp/ wget http://kb.vmware.com/selfservice/viewAttachment.do?attachID=1023856-vdiskmanager-linux.7.0.1.zip&documentID=1023856 unp 1023856-vdiskmanager-linux-7.0.1.zip mv 1023856-vmware-vdiskmanager-linux.7.0.1 /usr/bin/vmware-vdiskmanager chmod +x /usr/bin/vmware-vdiskmanager Take care, that you have enough free disk-space before you start, you … Read more

is it possible to run virtualbox inside a docker container

Yes, you can. You’ll need to make sure you have the kernel module on your host system. I’m running Ubuntu, but I’m sure it’d be similar on other distros: sudo apt-get install linux-headers-generic virtualbox-dkms And make sure the kernel module is loaded: sudo /etc/init.d/virtualbox status VirtualBox kernel modules are loaded. Now, run the docker container, … Read more

How do I resolve ‘The character device /dev/vboxdrv does not exist’ error in Ubuntu 18.04 [closed]

It clearly states that you need to install the virtualbox-dkms packages. You can follow these steps to solve the problem. Install the virtualbox-dkms sudo apt-get install virtualbox-dkms Once you install those packages you also need to do the reconfiguration: sudo dpkg-reconfigure virtualbox-dkms sudo dpkg-reconfigure virtualbox If your problem is still not fixed try installing the … Read more

Start VirtualBox and VM in Windows boot

I have an example of how to autostart a VirtualBox VM during Windows startup. I’m running Windows 10, but it shouldn’t be much different on Windows Server 2016. The startup folder on my system is: C:\Users\chriwill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup In that folder I placed a batch file kubuntu.bat with following content: “C:\Program Files\Oracle\VirtualBox\VBoxManage.exe” startvm kubuntu –type headless … Read more

How to set vagrant virtualbox video memory

You’ll need to use the following config: config.vm.provider “virtualbox” do |v| v.customize [“modifyvm”, :id, “–vram”, “<vramsize in MB>”] end How I found this? I looked at VirtualBox docs but haven’t found anything about ‘Video’ or ‘Memory’ that seem related to video memory. So I ran VBoxManage showvminfo <vm name> command and looked for the line … Read more

Is there any way to clone a vagrant box that is already installed

The easiest thing to do would be to package the pre-configured vagrant box and transfer the .box file to the other machine, add the box and run vagrant up. So the steps look like below: Package the pre-configured box => vagrant package –base preconfigured_vm –output /path/to/mybox.box. Note that as per the docs, the –base option … Read more