562
You have to do the following steps:
Run defrag in the guest (Windows only)
Nullify free space:
With a Linux Guest run this:
dd if=/dev/zero of=/var/tmp/bigemptyfile bs=4096k ; rm /var/tmp/bigemptyfile
Or:
telinit 1
mount -o remount,ro /dev/sda1
zerofree -v /dev/sda1
With a Windows Guest, download SDelete from Sysinternals and run this:
sdelete.exe c:...
answered Jan 7 '13 at 5:05
magicandre1981
90.9k2828 gold badges158158 silver badges228228 bronze badges
316
Take a look: http://www.fixedbyvonnie.com/2014/11/virtualbox-showing-32-bit-guest-versions-64-bit-host-os/
If VirtualBox is only showing 32-bit versions in the Version list make sure:
You have an x64 CPU installed. (Optimally, a 64-bit OS should also be installed to receive acceptable virtualization performance.)
Hardware virtualization is enabled in the ...
306
Short answer: Type exit
If that doesn't work, however...
SSH Escape Character and Disconnect Sequence
Most SSH implementations implement an escape character for interactive sessions, similar to telnet's Ctrl-] combination. The default SSH escape character is ~, entered at the beginning of a line.
If you want to terminate an interactive OpenSSH session ...
270
How do I exit an SSH connection?
Two ways:
closing the shell session will usually exit, for example:
with the shell builtin command, exit, followed by Enter, or
Ctrl-d, (end-of-file)
in the case where you have a bad connection and the shell is unresponsive, hit the Enter key, then type ~. and ssh should immediately close and return you to your command ...
198
Well done for doing your research. I regularly use all three options.
(Use the “Import/Export utility”). This is the easiest because it combines the whole VM into a single file and transfers it over without issue pretty much every time. However, in my experience when creating the OVA or OVF file for export it throws away all snapshots and if done ...
183
Please add your user name to the vboxusers group with this command:
sudo adduser $USER vboxusers
After that you must logout and login. (For Ubuntu 20.04, a reboot is required)
Please check this for more details:
https://help.ubuntu.com/community/VirtualBox/USB
164
This is a big question, so I'm going to break it up into three sections.
Vagrant
Vagrant is used to set up one or more virtual machines by:
Importing pre-made images (called "boxes")
Setting VM-specific settings (IP address, hostnames, port forwarding, memory, etc.)
Running provisioning software like Puppet or Chef
Note that it doesn't install software ...
163
There are two additional ways of running Windows and Linux side by side that you haven't mentioned in your question:
You could install Windows Subsystem for Linux if you are running 64-bit Windows 10. This will let you run some Linux software natively on Windows.
You could run both operating systems side by side (literally) as per this example:
163
Based on what I've found in the source code:
VBoxVGA
This emulates a graphics adapter specific to VirtualBox, the same as in previous versions (<6.0.0).
This is the default for images created for previous versions of VirtualBox (<6.0.0) and for Windows guests before Windows 7.
It has some form of 3D passthrough, but – if I remember correctly – uses ...
133
Summary:
VBoxManage.exe modifyhd --resize can increase (but not decrease) the logical size of disk image (the size seen by the guest OS).
VBoxManage.exe modifyhd inputfile.vdi --compact can decrease the
physical disk image size (the size of the image file on disk as seen by the host OS). This however does not change the logical disk size. Note that this ...
124
I made a smug comment ("Straight forward") when this question was originally posted and found myself at this page some months later looking for the same answer
Straight forward instructions
Today, I managed to boot from physical drives. This achievement required;
60 min straight forward reading
30 min writing this
20 min trying different options in ...
answered May 20 '14 at 20:57
Ярослав Рахматуллин
9,83655 gold badges3636 silver badges7070 bronze badges
120
To enable DNS Proxy Mode using the host's resolver,
run the following command:
VBoxManage modifyvm "<VM name>" --natdnshostresolver1 on
As a result, guest OS DNS requests will be intercepted and resolved using host DNS API, rather than having guest OS connect to external DNS servers as with --natdnsproxy1 on.
You can get the name of the VM by ...
119
VirtualBox and VMware Workstation (and VMware Player) are "level 2 hypervisors." Hyper-V and VMware ESXi are "level 1 hypervisors."
The main difference is that a level 2 hypervisor is an application running inside an existing OS, while a level 1 hypervisor is the OS itself.
This means that when you enable Hyper-V, your Windows 10 "host" becomes a virtual ...
117
The VirtualBox Manual, in the section titled Paravirtualization providers explains very clearly when each should be used (emphasis added):
Minimal: Announces the presence of a virtualized environment. Additionally, reports the TSC and APIC frequency to the guest operating system. This provider is mandatory for running any Mac OS
X guests.
KVM: ...
115
Select a virtual machine by clicking its name in the VirtualBox window
Click the Machine menu at the top of the VirtualBox window, and click Settings
Click the Storage category in the Settings window
Right-click in the storage tree pane, and click Add Floppy Controller
Right-click the Floppy Controller device, and click Add Floppy Device
Click the Choose ...
92
Old question, but an update is in order:
As of VirtualBox 4.2, you can start a headless machine from the GUI by holding Shift while you click the Start button.
Horribly unintuitive, but that, and other new features, are outlined in an Oracle blog post.
EDIT: As of VirtualBox 5.0, there's a dropdown on the Start button that allows you to choose how to ...
90
Yes. In the Vagrantfile:
Vagrant.configure('2') do |config|
config.vm.synced_folder '.', '/vagrant', disabled: true
# ...
end
88
As Gasim said:
Add the following to /etc/sysconfig/network-scripts/ifcfg-enp0s3
DNS1=8.8.8.8
DNS2=8.8.4.4
# Note this was set to no
ONBOOT=yes
78
Edit:
VirtualBox keeps getting better and better! Since VirtualBox 5.0, there is now an extra dropdown menu next to the Start button with an even better option: Detachable Start! It is a hybrid start option where they run the VM process in the background, and simply display a headless VM client that you can easily close.
Well, almost easily... closing the ...
77
The problem is with the virtualbox-guest-x11 package missing.
Execute the below commands:
sudo apt-get update
sudo apt-get install virtualbox-guest-x11
If it asks you about keeping a file or installing the new one, select the new one.
sudo VBoxClient --clipboard
This should enable clipboard sharing. Make sure that Clipboard Sharing is set to ...
76
I had the exact same problem, and saw it through to resolution, so I'm happy to explain the problem and solution in detail.
Without Involving a VPN
It is important to understand the configuration that is required in order to meet your requirements without involving a VPN. Also, this information assumes that no software firewall is interfering, neither on ...
65
This is built into VirtualBox 4.2.
Simply hold down Shift when launching the VM from the Manager.
https://blogs.oracle.com/fatbloke/entry/what_s_new_in_oracle
65
Windows XP doesn't have drivers for the Intel PRO/1000 card. Try selecting the PCNet FAST III network card instead. You can set it in the VM settings.
63
Method 2 works well now (with VirtualBox 4.0 and higher), without any XML modification required:
Stop your Virtual Machine
Exit VirtualBox
Copy the VM folder to the new location
Restart VirtualBox, and delete the old VM.
Go to Machine menu ≥ Add and browse to your new location.
That's it!
ps: I have VirtualBox 4.3.20 on OSX 10.10
See this VirtualBox ...
61
You can directly create an image with VBoxManage convertfromraw. First unmount the device, then:
VBoxManage convertfromraw /dev/sda MyImage.vdi --format VDI
Replace /dev/sda with whatever disk or partition you want to clone.
You may need to do this as root to gain access to the device. If so, then you should change ownership of the finished image.
58
Can a hypervisor like VirtualBox be used to launch a virtualized OS which is also directly bootable?
It's possible, yes, and it doesn't necessarily have to be slower, since these days it's not emulation anymore, it's virtualization – most CPUs support hardware-assisted virtualization (VT-x and such), but even without those, VirtualBox has many tricks for making software-virtualized VMs run fast.
In any case it won't be any slower than booting up a plain ...
58
Open virtual machine's settings, then User Interface page. Check this box:
58
You can access the menu while the VM is running by Right Control + Home (by default). It will pop up as a contextual menu through which you will be able to reactivate the display of the menu.
57
The problem is that you have a virtual disk but still don't have any partition on it (disk in terms of Windows filesystem).
To fix that do the following:
Go to menu Install OS X Mountain Lion -> Quit Instal OS X.
Select Disk Utility
Select your disk on the left side. If you can't find the disk, click on the button near the top left, then select the "Show ...
56
Found the solution. It is as simple as the last step from the commands I wrote here.
I.e.
VBoxManage clonehd fullpath/{uuid-of-last-snapshot}.vdi thedisk-full.vdi
So I should clonehd only the last snapshot, not every snapshot from the chain. And it is thousands percent faster.
The uuid can be found from VBoxManage list hdds | grep VmName | tail
In the ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
virtualbox × 6821virtual-machine × 1883
linux × 1217
ubuntu × 1211
networking × 1148
windows-7 × 779
virtualization × 546
windows × 483
windows-10 × 421
macos × 356
vagrant × 244
centos × 222
ssh × 193
vmware × 182
debian × 178
windows-xp × 172
wireless-networking × 122
boot × 121
usb × 120
vpn × 118
hard-drive × 117
windows-8 × 114
kali-linux × 103
mac × 102
64-bit × 86