One of the big problems with VirtualBox, is the seeming lack of support for increasing the hard disk size of a Virtual Machine (VM). The command line tool provided with VirtualBox, VBoxManage, serves as the tool to modify and increase your hard drive settings.
Let’s start with the problem of having a Windows 7 instance that has just run out of room. In order to update the instance, completely exit VirtualBox. Then go to your Terminal window so that we can enter VBoxManage commands directly. Change Directory to where your VirtualBox VMs are being stored. On my Macbook Pro, they are stored in my user directory: ~/VirtualBox VMs/Win7Pro. Now let’s increase the VM’s disk size. Let’s say the current instance is 20G and we want to double that to 40G. Before we do this, we must be sure the disk is dynamic: The following command performs this function –>
cyrokx@ves-l4 ~/VirtualBox VMs/Win7Pro –> VBoxManage showhdinfo Win7Pro.clone.vdi
UUID: d6b6c10e-0bff-45f3-9db7-b5c21a22dcea
Accessible: yes
Logical size: 20480 MBytes
Current size on disk: 18448 MBytes
Type: normal (base)
Storage format: VDI
Format variant: dynamic default
Location: /Users/cyrokx/VirtualBox VMs/Win7Pro/Win7Pro.clone.vdi
———————————————–
Since the Format variant is dynamic default, we can easily increase the disk size by running the following command –>
Your Virtual Machine is now 40G. Once in Windows, go to Administrative Tools -> Computer Management. Go to Disk Management and extend your existing partition with the newly created disk space.
Now if your Format Variant read: fixed default, there are a number of steps you must now do. Only dynamic disks can be increased in size. Fortunately we can clone VMs and the cloning process automatically creates a clone with a dynamic disk. In our hypothetical example above, we are now going to write the steps to perform to clone and resize the disk.
Resizing the disk is a little more than trivial. The key is to ensure you keep the same UUID on the disk.vdi image that VirtualBox has registered. To resize a disk that is fixed, you must first make a copy of the .vdi you wish to increase the size of. To accomplish all of this, we are going to use the following VBoxManage commands:
>VBoxManage showhdinfo Original.vdi
You should see a response similar to the following (be sure to copy the UUID, you’ll need it later) –>
UUID: d6b6c10e-0bff-45f3-9db7-b5c21a22dcea
Accessible: yes
Logical size: 20480 MBytes
Current size on disk: 18448 MBytes
Type: normal (base)
Storage format: VDI
Format variant: dynamic default
Location: /Users/cyrokx/VirtualBox VMs/Original/Original.vdi
>VBoxManage showhdinfo newCloneOfOriginal.vdi
In the response of showhdinfo, you will see the UUID has changed. Next we need to change the cloned image’s UUID to that of the Original.vdi’s UUID.
Now that you have a clone with the newly increased disk space, you need to copy it over the Original.vdi. >mv Original.vdi /some/place/special
>mv newCloneOfOriginal.vdi Original.vdi
Start the newly expanded VM!!
There you have it. A little cumbersome, but serves the same purpose. I tend to prefer to preallocate all of my disk space fixed. But this exercise may be enough to get me to change my mind…
If you are running the RiTA software by Verifone, you may encounter a number of issues configuring the software to work in an IBM WebSphere environment. There are two issues you want to avoid:
Not being able to find the tid.jcc file
Not having the .jar files in the correct location
First, the tid.jcc needs to be in the default server directory for IBM WAS. On Linux, this will most likely be the /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 directory.
To add the tid.jcc reference, you will want to link it from your RiTA installation directory (the default directory being /opt/rita). Run these commands:
In Jasper Server, you may encounter the following error:
org.hibernate.exception.GenericJDBCException: could not insert: [com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.persistent.ContentRepoFileResource]
This can be caused by having too many automated reports stored in your Content Files directory. Especially if there are number of large .xls (or any type of file).
Just be sure to keep this directory to less than 50 files, and you should be good!
Be the first to comment - What do you think? Posted by
David Dietrich -
February 16, 2010 at 11:25 am
Setting up a classless DNS is critical if you are setting up a mail server on your classless set of IPs. For instance, when my mail users send e-mails to Comcast, Cox, or Time-Warner, my mail is rejected with the following message between the stars:
********************
Subject: Undelivered Mail Returned to Sender
This is the mail system at host melon.skky.net.
I’m sorry to have to inform you that your message could not be delivered to one or more recipients. It’s attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
<mailto:ddietrich@@socal.rr.com>: host hrndva-smtpin02.mail.rr.com[71.74.56.244] refused to talk to me: 421 4.7.1 – Connection refused. Cannot resolve PTR record for 216.23.169.107
********************
In order to resolve this issue, you must ask your hosting provider to forward reverse DNS queries to your DNS server. Then, you can set up the reverse DNS for your classless range of IPs. Start by editing your named.conf file (/etc/bind/named.conf on Ubuntu, /var/named/chroot/etc/named.conf on Red Hat flavors). Add the following lines–>
zone “96/28.169.23.216.in-addr.arpa” {
type master;
file “/etc/bind/96-28.169.23.216.rev”;
};
In my case, my provider assigned me the range of 216.23.169.23.96-216.23.169.110. This is a /28 set of addresses. Notice how we reverse the zone entry. The Class D first, followed by a /, followed by the .Class C.Class B.Class A.in-addr.arpa. The filename roughly matches this as well. I called the file 96-28.169.23.216.rev. Just put this file in your /etc/bind directory on Ubuntu, or /var/named/chroot/var/named on Red Hat Linux flavors (RH5, CentOS, Fedora Core, etc.)
Now for the actual file 96-28.169.23.216.rev contents between the stars –>
Many times it would be nice to make changes to your /etc/fstab file. The problem is that you must reboot. No longer. Run the following command to remount your /etc/fstab file without rebooting –>
>mount -a
Everything should now be remounted and you can fix any errors that may have occurred with your new /etc/fstab entries.
Be the first to comment - What do you think? Posted by
David Dietrich -
January 26, 2010 at 4:42 pm
When using Samba on Linux, there are times that you want to allow user to have a private user directory, but do not want the “homes” directory share to show up. This is relatively simple.
Edit your /etc/samba/smb.conf file with your favorite Linux editor.
Look for the section [homes] and find the line browseable =
set this line to browseable = no
Restart Samba (>service smb restart) and your users should now see their personal directory without seeing the homes share.
If you do not have a [homes] section, here is an example on for you –>
[homes]
hide dot files = no
comment = Home Directories
writeable = yes
delete readonly = yes
valid users = %S
browseable = no
As a blogger, I spend most of my time writing. But it’s time spent reading that’s most satisfying. Here’s a short (and by no means a complete) list of 10 articles that encapsulate the art of the startup. Most were published during 2009, and I found them educational and full of practical tips that we’ve applied to our business. They’ve also helped me think differently about startups and entrepreneurship. Hope you enjoy reading them as much as I did.
“What Startups Are Really Like” by Paul Graham: This has to be the single best essay I read during 2009. Every entrepreneur should begin the startup journey with this essay. It bottles every essence of entrepreneurship and startups, and is chock-full of practical advise and tips that are applicable to anyone who dares to dream.
“Milestones to Startup Success” by Sean Ellis: Ellis explains the need for minimum viable product, aka MVP, and then outlines how startups can go up his startup pyramid to find success.
“Myth: Entrepreneurship Will Make You Rich” by Eric Ries: “One of the unfortunate side effects of all the publicity and hype surrounding startups is the idea that entrepreneurship is a guaranteed path to fame and riches. It isn’t,” Ries writes in this no-holds-barred essay about the challenges and pitfalls of being a startup founder.
“The Power of Continuous Improvement” by Mike Speiser: In a guest post for us, Mike talks about the importance of metrics, feedback and how they can drive continuous improvement. Mike’s rules have found eager takers among our team.
“The Funnel Principle: Software & Making Money” by Tony Wright: It’s good to build great products, but in order to build great companies one needs to have more — a clear path of monetization, an attention magnet, and in general excellence at things beyond product development.
“Does Every Startup Need a Steve Jobs?” by Andrew Chen: A dissection of how insanely great products are built by combining desirability, feasibility and viability. Read this post after reading Wright’s “Funnel Principle.”
10: “Startup Killer: The Cost of Customer Acquisition” by David Skok: A definitive essay on startup business models, the perils of overoptimism, and the importance of cost of customer acquisitions. Skok is a 3-time entrepreneur with a lifetime of experience.
Occasionally, Jasper Server has an error relating to being unable to write files. The errors show up in the Apache web server log, catalina.out.
You have probably started the service as the user root on accident. This will cause ownership to change to root on some log files. Then when you log back on as user jasper and restart your server, the Apache logs are filling with messages about not being able to write files. Jasper is just not working properly. Run the following command to restore the proper ownership to all files in the Jasper directory. You must run the following command as root:
Strong winds polished the snow of southwestern Alaska and stretched marine stratocumulus clouds into long, parallel streets in early January, 2012. After crossing Bristol Bay, the winds scraped the clouds across the tall volcanic peaks of the Aleutian Islands. As the wind impacted the immobile mountains, the airflow became turbulent, swirling in symmetric eddies and carving intricate patterns into the clouds on the leeward side of the islands. At the top of this image, the bright white color indicates a thick layer of snow overlying the land of southwestern Alaska. The pristine white is broken by the rugged Ahklun Mountain Range in the east, which is partially covered by a bank of clouds. Off the coast of Alaska, sea ice floats in Bristol Bay, cracked and chipped by the flow of the waters which lie underneath. A few cloud streets – parallel lines of clouds – can be seen in the far northwest over land. The clouds increase over the sea ice and become thick over open water, where row upon row of clouds lie close in perfectly parallel formation. The Aleutian Islands stretch from northeast to southwest across the image. Sea ice, which is bright white here, lies on the windward side of the islands. A few of the tallest volcanic peaks can be seen rising from the icy islands. The character of the cloud streets change as they impact the Aleutians, especially near the center of the image, where two rows of beautifully symmetric swirls of eddies in the clouds stretch across the sky. These swirling formations are known as von Karman vortex streets. This true-color image was captured by the Moderate Resolution Imaging Spectroradiometer (MODIS) aboard NASA’s Terra satellite on January 11, 2012. Image Credit: NASA/GSFC/Jeff Schmaltz/MODIS Land Rapid Response Team Read More