Reduce virtual image size of Linux guest in VirtualBox
location: linuxquestions.com - date: April 13, 2009
I'm trying to reduce the size of a Linux virtual image that I want to use as a base image for further work. Initially I picked a 16 GB dynamically expanding disk. Then I installed Ubuntu server with the packages I need. Disk size: ~500MB. Then I upgraded all packages to the latest version. Disk size in the guest OS: ~520MB. Disk size of the .vdi virtual image: more than 1GB! Compacting the .vdi doesn't reduce its size.
What I need is a tool to clean up the unused disk space and fill it with zeros so that VirtualBox can compact the .vdi file back to 520MB.
There's a lot of documentation out there on how to do this for Windows (delete unnecessary files with CCleaner, defrag and then fill the free space with zeros using some tool called sdelete.exe)
I've found several links suggesting that creating a huge file full of zeros would do the trick (e.g. dd if=/dev/zero of=~/zeros) but that only increased the size of the .vdi image in the end.
I guess it's a problem with the ext3
Exchange files between Linux host and Linux guest VirtualBox
location: ubuntuforums.com - date: July 27, 2011
After installing Linux Additions in guest OS (sudo sh ./VBoxLinuxAdditions.run) in order to exchange files between Linux Host and Linux Guest (Linux that runs inside VirtualBox on Linux host), you need to use this simple command:
sudo mount -t vboxsf <shared_folder_VB> <folder_on_guest_Linux>
--> where <shared_folder_VB> is the name of the folder you added in VirtualBox's 'Shared Folders' settings (host OS) and <folder_on_guest_Linux> is the name of the folder created on guest Linux (where you want to have files from host) e.g. /home/John/name_of_your_folder
VirtualBox and Samba 4 on Linux Guest (NAT and Host Only)
location: ubuntuforums.com - date: February 22, 2014
I really need a help from you to configure the "Samba 4" using the "Virtual Box".
Here's the situation:
In certain networks where I work, the Samba 4 works, in other does not. The guest in Virtual box is configured with a network "Host Only" for Samba 4 and other "NAT" for the internet. The only situation where the samba works on all networks is if I disable the "NAT" network and leave only "Host Only". That is, apparently the NAT network (which should be isolated from the external network by using it only as a proxy) is suffering from some kind of negative effect in some cases.
Then... Comes the question that is worth a million:
What causes it?
Believe me, I tried everything and nothing seems to resolve the situation.
Note I: I can not use the guest network with Bridge!
Note II: Apparently this only occurs with Samba 4 as the Samba 3 works on any network!
This has been a really difficult situation t
JOJ (Jaunty On Jaunty) or How to optimize a VirtualBox Linux guest
location: ubuntuforums.com - date: May 18, 2009
Some background info:
My quest for knowledge started with a desire to get an old Loki Linux game, Railroad Tycoon 2, up and running on my 64 bit system. I was familar with QEMU, however, the automated configuration of a Xorg server made it next to impossible to get a 1024 by 768 screen in the virtual monitor of a QEMU machine. Not wishing to pursue an unknown amount of time and research to fix this issue, I looked into VirtualBox. All posts, which I read, stated that this method of virtualization was ready for prime time.
My machine is a 64 bit Dual core system running Jaunty 9.04 x84_64.
Concerning the VirtualBox software, I used the Synaptic Package Manager to install 'virtualbox-2.2', the Sun non-free version as the setup of guest machines appears to be better documented.
Since the Loki game was created prior to the availability of 64 bit systems, I decided to create a 32 bit Jaunty guest machine to run on top of my Jaunty 64 bit machine. Many 'virtual machines' were created bef
Zenwalk 4.8 does not work as a Linux guest in Virtualbox 1.5
location: linuxquestions.com - date: October 18, 2007
I recently attempted to install Zenwalk as a guest in VirtualBox. Installation always freeze when it's uncompressing the python scripts screen.
I have tried this on virtualbox on two different machine (both running Vista Host), one with AMD and one Intel. Both have failed. I have managed to install Zenwalk on a real machine using the same CD.
Does anyone have any idea why it's not working?
Accessing windows, usb, from linux guest in VirtualBox windows host?
location: ubuntuforums.com - date: January 13, 2014
I am spending six months in a position at an institution which has very strict IT policies, and the only way I can legitimately run linux is as a virtual machine in VirtualBox running under Windows 7 Enterprise. So far so good: I can download and install everything I like, and the linux experience is seamless, if sometimes a little slow. Nothing I can't live with, though.
However - one thing I haven't been able to work out is how to move files between linux and windows, or to access an external USB disk from linux. USB is indeed enabled in the virtual machine settings, but when I insert a USB key, nothing happens (at least, nothing in linux). I'm sure it's very simple, but as this is my first foray into the delights of virtualiztion, I'm completely stumped.
Any advice would be very welcome!
VirtualBox linux guest slow, windows guest fast
location: ubuntuforums.com - date: June 20, 2013
I have Lubuntu 13.04 installed on my computer, everything runs fine. I have plenty of ram and proccesor. Its a fast machine. So I install VirtualBox latest version.
1) My windows guest virtual machines. And also live windows cd's run fine and smooth. As long is a windows OS. Speed its ok and normal.
2) My linux guest virtual machines. And also live linux cd's run extremely slow. As long is a linux OS. Speed its terrible and very slow.
I've been dealing with this problem for years. And I havent been able to figure it out.
Also, when I use VMware this does not happend, and both windows guest OS and linux guest OS, run fine and speed its ok and normal.
So obviously the problem has something to do with Virtual Box.
Shrink VirtualBox Linux guest VDI?
location: linuxquestions.com - date: June 28, 2012
I have Fedora 17 and Scientific Linux 6.2 guest systems running under VirtualBox 4.1.18.
I read here that there is a way to shrink a guest machine's VDI hard disk image. However, its Linux guest instructions say that the method only works for ext3 filesystems. The article was written in 2009, probably why a method for ext4 was not mentioned. My virtual machines use ext4.
Is there a way to effectively shrink my Linux guest VDI in VirtualBox, perhaps similar to the method described in the linked article?
Cannot install virtualbox addition inside a linux guest system
location: linuxquestions.com - date: December 31, 2008
When I ran
Virtualbox Windows 7 host and Linux guest
location: linuxquestions.com - date: October 5, 2012
I have a question that I am trying to get as much detailed an answer to as possible, so if you can help, the more info... the better.
I am running Windows 7 with Virtualbox and I have a Linux guest running on it. The reason I have to do this is because the wireless network adapter I use is not compatible with Linux. I have my Linux guest setup to have it's virtual network card be bridged with the wireless card I use.
With that basic setup, I am also using Norton Internet security to protect Windows 7.
I was wondering how independent my Linux guest is on the network with the above configuration. For example, if Norton Internet Security is protecting incoming streams and I have a bridged setup, does it filter what goes to my Linux in Virtualbox. I'm actually hoping that the Linux box is NOT protected and I'm trying to make sure that all network connections that go to it are not filtered since I want to test security and anti-virus tools on my Linux guest.
The other thing that
Page: 1 2 3 4 5 6 7 8 9 10