Linux HowTo: How to increase actual size of hard disk in VirtualBox?

Original Source Link

After I did steps shown here I’ve noticed in VM’s settings that I only increased virtual size but actual size remain the same. How to increase it also?

enter image description here

When you increase the virtual disk size, you typically have to increase some partition size within the OS’s actual file system in order to make use of the added space. However, because you’ve set it to “dynamically allocated”, it will grow as used. See http://www.virtualbox.org/manual/ch05.html which says:

“For more flexible storage management, use a dynamically allocated image. This will initially be very small and not occupy any space for unused virtual disk sectors, but will grow every time a disk sector is written to for the first time, until the drive reaches the maximum capacity chosen when the drive was created. While this format takes less space initially, the fact that VirtualBox needs to expand the image file consumes additional computing resources, so until the disk file size has stabilized, write operations may be slower than with fixed size disks. However, after a time the rate of growth will slow and the average penalty for write operations will be negligible.”

Put it simple, if you copy a big file, say, 1 GB size to the virtual disk, the actual size will approximately increase 1 GB. To consume the diskspace will increase the actual size.

Tagged : / /

Making Game: How to increase actual size of hard disk in VirtualBox?

Original Source Link

After I did steps shown here I’ve noticed in VM’s settings that I only increased virtual size but actual size remain the same. How to increase it also?

enter image description here

When you increase the virtual disk size, you typically have to increase some partition size within the OS’s actual file system in order to make use of the added space. However, because you’ve set it to “dynamically allocated”, it will grow as used. See http://www.virtualbox.org/manual/ch05.html which says:

“For more flexible storage management, use a dynamically allocated image. This will initially be very small and not occupy any space for unused virtual disk sectors, but will grow every time a disk sector is written to for the first time, until the drive reaches the maximum capacity chosen when the drive was created. While this format takes less space initially, the fact that VirtualBox needs to expand the image file consumes additional computing resources, so until the disk file size has stabilized, write operations may be slower than with fixed size disks. However, after a time the rate of growth will slow and the average penalty for write operations will be negligible.”

Put it simple, if you copy a big file, say, 1 GB size to the virtual disk, the actual size will approximately increase 1 GB. To consume the diskspace will increase the actual size.

Tagged : / /

Ubuntu HowTo: Beginner GPU passthrough Windows Host to Ubuntu Guest (Whats KVM? I use vBox)

Original Source Link

I run win10 with 18.04LTS VM on virtual box. I am not experienced in VM’s but have a need for linux (personal use) so I thought vBox was the only solution.

I have 2 discrete graphics cards so i want to passthrough one of these to the ubuntu VM (also for my application to leverage this, and to explore/learn from using the GPU HW)

I believe my hardware is all supported (CPU / 2xGPU’s discrete / Motherboard w/VT-D) but i cannot find a clear guide for my goal: GPU passthrough to ubuntu VM.

My questions:
1) Does this work? (GPU passthrough win10host –> ubuntu 18.04LTS guest)
2) Is there a clear tutorial/guide on this?
3) KVM or vBOX? (I have a vague impression KVM, which I have no experience with, is the better solution)

Any other help or feedback would be greatly appreciated


Update: 5/31/2020

Hi all, i just wanted to make clear that i am not using this env for gaming. I work mostly from win10, but want to accelerate matlab and python inside my linux guest w/GPU pass-through.

After some further reading, im unable to determine if virtualbox has any solution for my guest/host. Instead, it might seem VMware vSphere or Workstation-Player might support pass-through.

Tagged : / / / /

Making Game: Why can’t show GUI screen with FuryBSD in VirtualBox?

Original Source Link

I downloaded FuryBSD 12.1 XFCE from official site.

Launched it in VirtualBox.

From the official guide, it should show a GUI desktop.

But in my machine it didn’t. It showed terminal login screen.

enter image description here

I checked /etc/rc.conf

enter image description here

/etc/X11/xorg.conf

enter image description here

When I ran startx it got error. So I checked /var/log/Xorg.0.log

enter image description here

Where is wrong? The VirtualBox is using 6.1 version.

Something can be referred.

Tagged : / / / /

Making Game: Windows10 VM on Windows10 Host Freezes/BSOD IRQL NOT LESS OR EQUAL

Original Source Link

I got a new SSD for my laptop. I copied my VMs to my new Windows 10 installation on this device.

I believe the guest OS is Windows 10 version 1909 as was the host on the installation on the old SSD. Currently running Version 1909 (OS Build 18363.836).

I was running VirtualBox-6.1.4-136177 before and on the new install until I tried updating to VirtualBox-6.1.8-137981 to fix the issue with no luck.

The machine is slow, has wierd graphics flickering issues, and gets BSOD saying IRQL NOT LESS OR EQUAL.

I never had any issues with the old SSD, I never got BSOD until I ran it off the new SSD.

I also copied the %HOMEPATH%.VirtualBox folder. All my VMs show up fine. I am able to launch the VM as I was before, minus the BSOD.

I added a new VirtualDisk.vdi file and installed Windows 10 on that with the other vdi as a USB device to access my data from it.

I never got a BSOD since using a the new VDI Virtual Disk file, but it’s still slow. Before the performance was great.

Checking the disk for errors using the tool in Tools on the tab on the properties for drive C: and using the chkdsk C: command says the drive has no errors.

I have a dual core (4 thread) CPU and 8GB of RAM and the VM was 2GB allocated.

Running the VM off the old SSD works OK, so does running a new Windows 10 VM I made to test Win10-v2004. Also, they are running at the same time!!!

https://forums.virtualbox.org/viewtopic.php?f=6&t=98376#p477034

Update: Here is text from the Nirsoft BlueScreenView Program:

==================================================
Dump File         : 060720-22203-01.dmp
Crash Time        : 6/7/2020 8:39:04 AM
Bug Check String  : IRQL_NOT_LESS_OR_EQUAL
Bug Check Code    : 0x0000000a
Parameter 1       : 00000000`00000001
Parameter 2       : 00000000`00000002
Parameter 3       : 00000000`00000000
Parameter 4       : fffff800`80785733
Caused By Driver  : ntoskrnl.exe
Caused By Address : ntoskrnl.exe+1c14e0
File Description  : NT Kernel & System
Product Name      : Microsoft® Windows® Operating System
Company           : Microsoft Corporation
File Version      : 10.0.18362.592 (WinBuild.160101.0800)
Processor         : x64
Crash Address     : ntoskrnl.exe+1c14e0
Stack Address 1   : 
Stack Address 2   : 
Stack Address 3   : 
Computer Name     : 
Full Path         : C:WindowsMinidump60720-22203-01.dmp
Processors Count  : 1
Major Version     : 15
Minor Version     : 18362
Dump File Size    : 334,308
Dump File Time    : 6/7/2020 8:40:55 AM
==================================================

Tagged : / / /

Linux HowTo: Incorrect password on first login to Kali Linux in VirtualBox

Original Source Link

I tried to install Kali Linux on VirtualBox following this guide on Youtube

As per the guide, there was no setup page, as Kali Linux was configured. When I turned on the machine, it booted and went straight to the login page.

I tried root as username and toor as password, but it said incorrect password. I tried leaving the password blank, still didn’t work.

This is my first time dealing with Kali. What should I do now? Are there any alternate passwords?

enter image description here

username: kali
password: kali

note: qwerty keyboard by default

When you set up Kali (I have Kali running here – and in a Virtual Machine), it will ask you to create a password for the root account. Do that and that will be the password. There is no preset password.

Try setting up the Virtual Machine again and this time, watch for the root account creation process and set up the password of your choice.

Once running, create a regular account and, if you wish, set it up as an admin account:

useradd -m username
passwd username (asks you to create a new password and do that)
usermod -a -G sudo username

Tagged : / / /

Making Game: Incorrect password on first login to Kali Linux in VirtualBox

Original Source Link

I tried to install Kali Linux on VirtualBox following this guide on Youtube

As per the guide, there was no setup page, as Kali Linux was configured. When I turned on the machine, it booted and went straight to the login page.

I tried root as username and toor as password, but it said incorrect password. I tried leaving the password blank, still didn’t work.

This is my first time dealing with Kali. What should I do now? Are there any alternate passwords?

enter image description here

username: kali
password: kali

note: qwerty keyboard by default

When you set up Kali (I have Kali running here – and in a Virtual Machine), it will ask you to create a password for the root account. Do that and that will be the password. There is no preset password.

Try setting up the Virtual Machine again and this time, watch for the root account creation process and set up the password of your choice.

Once running, create a regular account and, if you wish, set it up as an admin account:

useradd -m username
passwd username (asks you to create a new password and do that)
usermod -a -G sudo username

Tagged : / / /

Making Game: Video playback problems in Virtualbox. Watching on web works fine

Original Source Link

I am running Windows 10 inside Virtual Box. Videos in a web browser can play fine. But when I download a video and try to play it, there are issues such as choppiness, no audio, audio out of sync, play back controls stop working.

I have tried with VLC, Windows Media Player and Media Player Classic. I have installed K-Lite codec pack. Is there a known issue with video playback in Virtualbox?

Video playback works fine outside of Virtualbox.

Tagged : / / / /

Linux HowTo: How to recover important files after accidentally deleting /etc folder on ubuntu

Original Source Link

I am in desparate situation. I am/was running ubuntu on virtualbox on windows as host.

I accidentally deleted /etc folder. I have some files which are months of hard work. How can i retrieve them? I tried drag and drop, usb mounting, connecting to internet to share the files . Nothing worked. PLease please please help.

As soon as possible uncleanly turn off the VM and do nothing that would suppose a write to its disk (don’t ever turn it on again).

Then you could use something like photorec on the VM disk image.

Tagged : / /

Linux HowTo: Why does Ubuntu 18.04 LTS hang at bootup when installed in VirtualBox?

Original Source Link

I installed Ubuntu 18.04 LTS in VirtualBox using the default virtual machine settings. However, Ubuntu 18.04 LTS hangs at the bootup screen and never reaches the login screen. Why is this the case and how can it be fixed?

In Virtualbox, shut down the vm, then edit settings of the Ubuntu Virtual Machine, then go to Display. Move the “Video memory” slider all the way to the right. Then also tick Acceleration: Enable 3D Acceleration.

Start up you vm again. This is on Virtualbox V5.2.12

I tried all the above hints and none of them worked for me. After 3 more hours I realized that the previous Docker installation enabled Hyper-V on my (Win10) machine which obviously did not do well with VirtualBox.
So, another hint is to double-check that Hyper-V or other hypervisor is not already running and disable it if yes.
Good luck troubleshooting.

The problem is that Ubuntu 18.04 LTS apparently doesn’t like the 1GB RAM setting that is the default in VirtualBox. Although Ubuntu 18.04 LTS is advertised to work with 1GB RAM, in my case it didn’t work.

Shut down the virtual machine and give it more memory, ideally at least 2GB. There is no need to reinstall Ubuntu 18.04 LTS. Actually, installing it with the default 1GB RAM only is ideal, as larger RAM sizes lead to larger swap file sizes, and swapping inside VirtualBox isn’t recommended as there would be two levels of swapping then (host and guest).

After restarting the virtual machine with more memory, it no longer hangs at the bootup screen.

At the same time the memory size is adjusted, it may make sense to give the virtual machine more CPUs. The default CPU count is 1, but most even low-end laptop CPUs today have 4 virtual CPU cores at least, and the better ones have 8.

I am running a VM with Ubuntu 18.04 on macOS. The guest has plenty of base memory (RAM) and multiple processors.

(This is a raw VM that I used directly over HW on a PC in a different location. Usually when there are OS updates that’s where I handle them. I suspect on a previous update of the guest something was installed that messed the setup on the macOS+rawVM combo.)

My machine was working fine on the macOS VM until one day it stopped booting properly. It would get stuck just before the login screen, showing the purple background with Ubuntu written on the bottom.

This is what I did to fix it:

  1. Restart VB application, and host. Didn’t fix the issue.

  2. Update VirtualBox from 6 to 6.08. Didn’t fix the issue.

  3. Disable 3D acceleration as suggested in other posts. Didn’t fix the issue; so I re-enabled it. My video memory is already at 128 MB so I didn’t change that.

  4. Changed the graphics controller from VMSVGA to VBoxSVGA. This fixed the issue. It is now working again properly (and my 3D acceleration is still enabled).

Jirka’s answer gave me the clue which helped me fix the problem. The Windows 10 Hyper V system needed to be disabled. These instructions helped me:

https://ittutorials.net/microsoft/hyper-v/how-to-disable-the-hyper-v-feature-in-windows-10/

I needed to disable Hyper V then re-boot my machine.

This then allowed VirtualBox to start Ubuntu 18.03 to successfully boot and not hang at startup. This same problem occurred with Ubuntu 16.04.

System -> Acceleration:

uncheck Enable Nested Paging

In my case, all of the other answers’ solutions were already applied, it still hanged. The problem turned out to be the VM’s Paravirtualisation setting that was set to Legacy, changing it to Default solved the problem.

I’m running Ubuntu 18.04 in VirtualBox 6.0.10 on Windows 10 PC. Starting Ubuntu no longer gave me a login prompt, just a blank screen. I increased video memory from 16 MB to 64 MB, now everything runs fine again.

Jirka Horník answer helped me. In my case it was Ubuntu Server 18.04.4 LTS not the desktop and was following this video. The following details the problem as well as solution that I applied.

  1. I am running Windows 10 Pro. And I develop and work with Docker so Hyper-V is enabled. Its a prerequisite for docker.

  2. Using VirtualBox, I started installing Ubuntu Server. And when it comes to the point of installing kernel(the exact point is here in the above video),

Installing Kernel on Ubuntu

it would suddenly start the process again to go back to this point, where it will ask “Please choose your preferred language” on the welcome screen.

Choose your preferred language on Welcome screen on Ubuntu

And this would repeat.

  1. Finally I found this ans. So I went to “Turn windows features on or off” and disabled Hyper-V and restarted the pc.

Disabling Hyper-V on Windows 10 Pro

  1. Now I tried again and Ubuntu Server installed successfully.

  2. But docker would not run. It said

Required Windows feature(s) not enabled: Hyper-V.
Docker Desktop will exit.

Docker error Without Hyper-V

So need to enable Hyper-V again.

Enabling Hyper-V on Windows 10 Pro

  1. Now I confirm that both docker as well as Ubuntu server as a virtual machine run together.

For me following 3 easy steps helped to resolve the issue.
1) Increasing Video Memory
2) Enabling 3D acceleration
3) Disabling updates while installation of ubuntu.
For demo purpose watch this video –> https://youtu.be/uqhMprx9g_U

Tagged : / /