I came across this problem while setting up Docker on my OSX environment , and after searching the web , I found a method that works well, and cures the problem.
Basically once the Virtualbox VM is created you need to edit the network adapter drivers and set them to "PCNET-FAST III" instead of the paravirtualised drivers. You need to do both adapters, and then restart boot2docker.
You will notice that you get the correct settings now in your /etc/resolv.conf file.
This was annoying me, and meant I had to reset the settings in the above file everytime I start docker - which is not ideal.
Hope this saves you some time.
Showing posts with label OSX. Show all posts
Showing posts with label OSX. Show all posts
Thursday, 11 June 2015
VM created by boot2docker init does not have DNS set up correctly - heres how to fix it
I came across this problem while setting up Docker on my OSX environment , and after searching the web , I found a method that works well, and cures the problem.
Basically once the Virtualbox VM is created you need to edit the network adapter drivers and set them to "PCNET-FAST III" instead of the paravirtualised drivers. You need to do both adapters, and then restart boot2docker.
You will notice that you get the correct settings now in your /etc/resolv.conf file.
This was annoying me, and meant I had to reset the settings in the above file everytime I start docker - which is not ideal.
Hope this saves you some time.
Labels:
Apple,
boot2docker,
centos,
DNS,
docker,
fedora,
linux,
OSX,
redhat,
Ubuntu,
virtualbox,
virtualization
Friday, 5 April 2013
Using an encrypted git repository on Dropbox to store my puppet code in the Cloud.
Today, most technologists have said they love the cloud storage paradigm and to have files and configs at their finger tips , no matter where they are , or how they access them.
Dropbox was arguably the first, easiest and globally available cloud storage solution out their, and it's the one I continue to use today. Like all cloud solutions - apart from owncloud - they have one drawback, who else can look at your files? This tends to make users suspicious and cautious about what they are prepared to store in the cloud, me too. As I control various ssh keys with my puppet code, I certainly don't want people having access to these.
So the solution I found was Truecrypt - a great open source project that allows you to create encrypted volumes that you can mount on all popular operating systems, including Linux, OSX and Microsoft. As I use all three of these systems at various times, it gives me great coverage. In the post PC era, it would be nice to see IOS and Android versions available in the future, but in all honesty I have not seen a real need yet.
My purposes only required a small amount of space, as code does not generally take up too much room, so I only made it 10MB. Your mileage may vary of course. There are good tutorials on the Truecrypt web site, and if you like what you see, then please donate to the project.
Once Truecrypt has been installed , created your volume and you have mounted it , you can now create your git repository using standard git commands like so:
git init --bare project.git
You can then take the project you have been working on your local hard drive, and commit it to your new git repo, like so
git remote add origin /media/truecrypt1/git/project.git
git push -u origin master
That's all there is too it, so now I have my puppet git repository where ever I go, and I can very quickly bring a machine up to my requirements with all the settings and packages I need to get work done with puppet and a few git commands. It literally saves hours of time, and I can rest easy in the knowledge it is safe in the cloud.
You can obviously use Truecrypt for storing all sorts of other things in the cloud, as I do. If you want to make sure only you can see sensitive data then this a good way to go.
Wednesday, 19 May 2010
VirtualBox 3.2 with OSX support is launched

Having just upgraded to the latest version and tested with my Windows 7 virtual image on an Ubuntu 10.04 host, I can confirm that this release has hit many of it's targets for speed improvements, and the network and disk I/O are noticeable faster.
The ability to add CPU's on the fly to OSes - that support it - will also be useful to many users, as will the support of SAS disks. It worth noting that all traces of the Sun ownership is being removed and turned into Oracles branding, and I wonder how long this will remain free ;-).
It would appear that this is going to be a key component for them moving forward, which is not that surprising.
Unfortunately, the OSX support is only for Apple hardware officially,
Here are the release notes:
Performance
New Latest Intel hardware support – Harnessing the latest in chip-level support for virtualization, VirtualBox 3.2 supports new Intel Core i5 and i7 processor and Intel Xeon processor 5600 Series support for Unrestricted Guest Execution bringing faster boot times for everything from Windows to Solaris guests;
New Large Page support – Reducing the size and overhead of key system resources, Large Page support delivers increased performance by enabling faster lookups and shorter table creation times.
New In-hypervisor Networking – Significant optimization of the networking subsystem has reduced context switching between guests and host, increasing network throughput by up to 25%.
New New Storage I/O subsystem – VirtualBox 3.2 offers a completely re-worked virtual disk subsystem which utilizes asynchronous I/O to achieve high-performance whilst maintaining high data integrity;
New Remote Video Acceleration – The unique built-in VirtualBox Remote Display Protocol (VRDP), which is primarily used in virtual desktop infrastructure deployments, has been enhanced to deliver video acceleration. This delivers a rich user experience coupled with reduced computational expense, which is vital when servers are running hundreds of virtual machines;
Power
New Page Fusion – Traditional Page Sharing techniques have suffered from long and expensive cache construction as pages are scrutinized as candidates for de-duplication. Taking a smarter approach, VirtualBox Page Fusion uses intelligence in the guest virtual machine to determine much more rapidly and accurately those pages which can be eliminated thereby increasing the capacity or vm density of the system;
New Memory Ballooning – Ballooning provides another method to increase vm density by allowing the memory of one guest to be recouped and made available to others;
New Multiple Virtual Monitors – VirtualBox 3.2 now supports multi-headed virtual machines with up to 8 virtual monitors attached to a guest. Each virtual monitor can be a host window, or be mapped to the hosts physical monitors;
New Hot-plug CPU's – Modern operating systems such Windows Server 2008 x64 Data Center Edition or the latest Linux server platforms allow CPUs to be dynamically inserted into a system to provide incremental computing power while the system is running. Version 3.2 introduces support for Hot-plug vCPUs, allowing VirtualBox virtual machines to be given more power, with zero-downtime of the guest;
New Virtual SAS Controller – VirtualBox 3.2 now offers a virtual Serial Attached SCSI (SAS) controller, enabling it to run the most demanding of high-end guests;
New Online Snapshot Merging – Snapshots are powerful but can eat up disk space and need to be pruned from time to time. Historically, machines have needed to be turned off to delete or merge snapshots but with VirtualBox 3.2 this operation can be done whilst the machines are running. This allows sophisticated system management with minimal interruption of operations;
New OVF Enhancements – VirtualBox has supported the OVF standard for virtual machine portability for some time. Now with 3.2, VirtualBox specific configuration data is also stored in the standard allowing richer virtual machine definitions without compromising portability;
New Guest Automation – The Guest Automation APIs allow host-based logic to drive operations in the guest;
Platforms
New USB Keyboard and Mouse – Support more guests that require USB input devices;
New Oracle Enterprise Linux 5.5 – Support for the latest version of Oracle's flagship Linux platform;
New Ubuntu 10.04 (“Lucid Lynx”) – Support for both the desktop and server version of the popular Ubuntu Linux distribution;
New Mac OS X – On Apple hardware only, support for creating virtual machines running Mac OS X.
Friday, 3 July 2009
Linux is now very well served by browser apps.
Most users have been happily using Firefox version 3.x which came pre-installed with whichever Linux distro they happen to prefer. This is an extremely well written and capable browser, which has just been given a marvellous speed boost by the latest 3.5 release. Have a look here on my blog for a simple install guide with Linux.
There are however other good browsers now available for Linux, and these include Opera and Chromium. I know the later is still in development, but it is developing extremely quickly and should be out in a beta form shortly. Opera on the other hand , in it's 9.64 release is a very powerful, full featured browser, which can be used as a complete replacement for Firefox if you should like to, and the current stable release is significantly faster than Firefox 3.x, and on a par with Firefox 3.5 in real world usage.
I have also now downloaded and started to use Opera 10 beta, and this has also been given a face lift with more enhancements, like the ability to drag open all your tabs to get at the thumbnails of each page, it's really very useful.

The performance with this latest release appears on the surface to be slightly faster than Firefox 3.5, and not that far of Chromium on.
So the days of just taking the Browser you are given and having to be content are well and truly over, especially when you throw Konqueror and Epiphany into the mix. This is real and tangible evidence that the popularity of Linux on the desktop has never been stronger.
I would love to compare Safari and Internet Explorer on my Linux desktops, but unfortunately the companies behind these products are a little afraid of the competition so are sticking to their legacy systems for now.
There are however other good browsers now available for Linux, and these include Opera and Chromium. I know the later is still in development, but it is developing extremely quickly and should be out in a beta form shortly. Opera on the other hand , in it's 9.64 release is a very powerful, full featured browser, which can be used as a complete replacement for Firefox if you should like to, and the current stable release is significantly faster than Firefox 3.x, and on a par with Firefox 3.5 in real world usage.
I have also now downloaded and started to use Opera 10 beta, and this has also been given a face lift with more enhancements, like the ability to drag open all your tabs to get at the thumbnails of each page, it's really very useful.

The performance with this latest release appears on the surface to be slightly faster than Firefox 3.5, and not that far of Chromium on.
So the days of just taking the Browser you are given and having to be content are well and truly over, especially when you throw Konqueror and Epiphany into the mix. This is real and tangible evidence that the popularity of Linux on the desktop has never been stronger.
I would love to compare Safari and Internet Explorer on my Linux desktops, but unfortunately the companies behind these products are a little afraid of the competition so are sticking to their legacy systems for now.
Labels:
Chromium,
firefox 3.5,
internet explorer,
linux,
Microsoft,
Opera,
OSX,
safari,
Ubuntu
Saturday, 27 June 2009
Only a fool could possibly think Linux is not ready for the desktop
The evidence is everywhere, and it became even more apparent a few seconds ago when I needed to get a few albums for my daughter. I started looking around the airports shops only to find that they have given up selling the old CD hardware. So I thought I will just log on to the net and download them from the Amazon mp3 store, DRM free of course. My laptop connected immediately to the wifi connection, and I was up and connected to a network I had never seen before in seconds.
I have had the Amazon mp3 downloader software on my laptop for a while, so getting them was a 1 minute point and click with my browser, and voila! , they are now on my hard drive. I have just uploaded them to my Ipod mini using Rythmbox , and they are playing a treat.
All this was done on my Dell XPS 1330 with Ubuntu 9.04 Linux happily sitting on the disk, with not a whiff of any of Gates or Jobs proprietary nonsence anywhere. I'm typing this post with the latest version of Googles Chromium browser and feeling very smug ;-)
Would I change any of this for Windows 7 or Snow leopard? Not on your life, why would I possibly want to waste £200 on an OS that comes with zero apps, when I have a fully working fully functioning system that offers so much and delivers on a daily basis.
Which albums I hear you cry. Green Days 21st Century Breakdown and the Gossips Music for Men. They would not normally be my cup of tea, but they are for my daughter.
If you want to free yourself from the Blue screen, costly, virus ridden , expensive, slow , proprietary hell that is Windows and hardware lock-in that is Apples OSX, then just click here.
I have had the Amazon mp3 downloader software on my laptop for a while, so getting them was a 1 minute point and click with my browser, and voila! , they are now on my hard drive. I have just uploaded them to my Ipod mini using Rythmbox , and they are playing a treat.
All this was done on my Dell XPS 1330 with Ubuntu 9.04 Linux happily sitting on the disk, with not a whiff of any of Gates or Jobs proprietary nonsence anywhere. I'm typing this post with the latest version of Googles Chromium browser and feeling very smug ;-)
Would I change any of this for Windows 7 or Snow leopard? Not on your life, why would I possibly want to waste £200 on an OS that comes with zero apps, when I have a fully working fully functioning system that offers so much and delivers on a daily basis.
Which albums I hear you cry. Green Days 21st Century Breakdown and the Gossips Music for Men. They would not normally be my cup of tea, but they are for my daughter.
If you want to free yourself from the Blue screen, costly, virus ridden , expensive, slow , proprietary hell that is Windows and hardware lock-in that is Apples OSX, then just click here.
Monday, 9 March 2009
My love/hate relationship with my Apple Nano
I'm going to start to tell you what I really like about the nano, and then I will divulge what annoys me about it.
Apple to be fair have done a really good job of closing the market off for their MP3 players, to such an extent that when I looked around there were only a handful to choose from. I do think though that the design of these little units is very user friendly, and would have been on the short list anyway.
I wanted one that would fit easily into my top pocket, hold several albums , and it must work with Linux. The nano fitted the bill on all these counts, and I haven't been disappointed. The screen the unit offers is bright and easy to use, the software is fast and allows you to select the artists/albums with ease. The battery life is extremely good, to the extent I have never run out of power, which was a frequent occurrence on my iriver H20. It also works perfectly with several Linux music programs, I happen to use Rythmbox.
Some additional benefits that I didn't look for or expect when I bought it, were the large array of Apple compatible docking units that you can buy to plug your ipod into and play music around the house. I have subsequently purchased a Gear4 docking unit which works a treat with the little unit, and has a marvellous little remote control. So all is sweetness and light you would think.
Alas no. As someone who uses open source whenever I can , it annoys me that this machine doesn't natively support all the codec's that I want to use, so I have to encode everything as an MP3. This is not the end of the world, but Ogg Vorbis is just better, so I'm having to downgrade the quality to fit the device, which is not the way this should work. It is always worth remembering that the MP3 standard is not an open or free one, so I have to pay for a program that allows me to use these files.
As a Linux user, I'm locked out of the itunes phenomena , so I have to either buy CD's and encode them, or I can now use Amazon to buy my MP3's. Not the end of the world, but it shouldn't be like this. Why should a company who has a virtual monopoly on this market be allowed to lock certain types of user out. I believe they should not be allowed, but as always the European legislators seem to allow American mega companies to get away with murder, until someone screams loudly enough. We only have to look at the current browser investigation, years late, to see how little is done in an appropriate time frame.
I know all of the previous business reason's behind the decision for locking out Linux, but now Apple are moving their music DRM free, there is no obvious reason itunes could not be ported to Linux, so I can access all the music they have to sell. This is beginning to look more like a desire to keep Linux out of their OSX market, something that should not be allowed. If they want to sell their products in Europe, they should be forced to sell on all the platforms Europeans use, not just the ones the North Americans use.
So living in the real world I have to put up with the current situation, not one that I enjoy, and one I would like to see come to an end, but I'm not holding my breath. Pragmatism , though despised by many philosophers, seems to have it's place when wishing to listen to music on a digital music player.
Apple to be fair have done a really good job of closing the market off for their MP3 players, to such an extent that when I looked around there were only a handful to choose from. I do think though that the design of these little units is very user friendly, and would have been on the short list anyway.
I wanted one that would fit easily into my top pocket, hold several albums , and it must work with Linux. The nano fitted the bill on all these counts, and I haven't been disappointed. The screen the unit offers is bright and easy to use, the software is fast and allows you to select the artists/albums with ease. The battery life is extremely good, to the extent I have never run out of power, which was a frequent occurrence on my iriver H20. It also works perfectly with several Linux music programs, I happen to use Rythmbox.
Some additional benefits that I didn't look for or expect when I bought it, were the large array of Apple compatible docking units that you can buy to plug your ipod into and play music around the house. I have subsequently purchased a Gear4 docking unit which works a treat with the little unit, and has a marvellous little remote control. So all is sweetness and light you would think.
Alas no. As someone who uses open source whenever I can , it annoys me that this machine doesn't natively support all the codec's that I want to use, so I have to encode everything as an MP3. This is not the end of the world, but Ogg Vorbis is just better, so I'm having to downgrade the quality to fit the device, which is not the way this should work. It is always worth remembering that the MP3 standard is not an open or free one, so I have to pay for a program that allows me to use these files.
As a Linux user, I'm locked out of the itunes phenomena , so I have to either buy CD's and encode them, or I can now use Amazon to buy my MP3's. Not the end of the world, but it shouldn't be like this. Why should a company who has a virtual monopoly on this market be allowed to lock certain types of user out. I believe they should not be allowed, but as always the European legislators seem to allow American mega companies to get away with murder, until someone screams loudly enough. We only have to look at the current browser investigation, years late, to see how little is done in an appropriate time frame.
I know all of the previous business reason's behind the decision for locking out Linux, but now Apple are moving their music DRM free, there is no obvious reason itunes could not be ported to Linux, so I can access all the music they have to sell. This is beginning to look more like a desire to keep Linux out of their OSX market, something that should not be allowed. If they want to sell their products in Europe, they should be forced to sell on all the platforms Europeans use, not just the ones the North Americans use.
So living in the real world I have to put up with the current situation, not one that I enjoy, and one I would like to see come to an end, but I'm not holding my breath. Pragmatism , though despised by many philosophers, seems to have it's place when wishing to listen to music on a digital music player.
Tuesday, 24 February 2009
New Open Source web applications environment
After having installed and started using Adobe Air for a few weeks, predominately for use with tweetdeck and twitter, I came across a relatively new project that is going to offer the same functionality , but this time the whole project is Open Source. The name of the project is Appcelerator Titanium.
They currently have the environment available for Windows and OSX with the Linux version coming soon, how soon is not specified yet. What is particularly interesting is the way it allows multiple web development technologies to be used, HTML, Javascript, CSS, Flash and Silverlight/Moonlight. It is also built using some of the latest and greatest web technologies, which include , Webkit, Google Gears, Chromium, GTK+ etc.
They offer their own IDE , but it is development environment agnostic, so you can use your current favorite.
I think this looks like it could become an important product for open source development in the future, so it is definitely worth a look.
UPDATE:
Jeff posted a comment on this blog letting us know that it is now available for Linux. That is really good news.
Appcelerator Titanium
They currently have the environment available for Windows and OSX with the Linux version coming soon, how soon is not specified yet. What is particularly interesting is the way it allows multiple web development technologies to be used, HTML, Javascript, CSS, Flash and Silverlight/Moonlight. It is also built using some of the latest and greatest web technologies, which include , Webkit, Google Gears, Chromium, GTK+ etc.
They offer their own IDE , but it is development environment agnostic, so you can use your current favorite.
I think this looks like it could become an important product for open source development in the future, so it is definitely worth a look.
UPDATE:
Jeff posted a comment on this blog letting us know that it is now available for Linux. That is really good news.
Appcelerator Titanium
Labels:
Adobe flash,
CSS,
google gears,
GTK+,
HTML,
javascript,
Moonlight,
OSX,
webkit,
windows
Sunday, 31 August 2008
The Eeepc 1000 - what a great machine
Well , when the whole idea surfaced of mini-laptops , netbooks, UMPC's or whatever your favourite description is for these little PC's is, I thought they could have a great future. Like most people who have worked in IT for many years however, I have heard enough hot air and vapourware announcements to power a hot air ballon around our Galaxy for several millennium. Caution was definitely the order of the day.
It was then with delight that the initial Eeepc 701 that I bought proved to be so useful, and became an immediate favourite. It did have a few limitations, which while not show stoppers, could definitely be improved upon. It was not therefore much of a surprise when Intel and VIA announce new CPU's designed specifically for these new type of machines, they would offer increased battery life for the unit, one of my initial limitations. The other two important things I thought would make these machines a real winner for a much wider audience , were a larger screen and a bigger keyboard.
So about the turn of the year the announcements started, with everyone in Asia it appeared about to launch such an improved device. I looked at all of them with a keen eye, to see if they could offer me the improvements I was looking for. If you looked around, with the likes of HP, MSI, Dell, Acer etc etc, there was a large array of Linux machines going to be made available. I have to say that the Acer Aspire One and the Eeepc 901 both came close, the price being one very important consideration. However, if I was going to replace the original 701, then the new unit had to offer everything I wanted.
Well, Asus then announced their new 1000 series units, with 40GB SSD disk space, 10" screen, Intel Atom processor that seemed to run on fresh air compared to the previous Celeron. A larger keyboard was also something that I would appreciate, and when the price was announced, they were not that much more expensive that their smaller brother the 901.
I have to say the extra expenditure was well worth it, and this new unit has offered the extra facilities that I wanted. Time will tell if there are any little issues that will come out of the woodwork to annoy me, but in the first three weeks, everything I have found out about the unit has been very positive. The increase in battery life is truly exceptional, and delivers 5.5 hrs without fail. The suspend and resume just works with the wifi just reconnecting and the ability to just identify a T-mobile 3G USB key and connect was very impressive. The unit is a little heavier than the 701, but the extra facilities more than compensate for that. Browsing the web and writing documents on the move is a breeze, reading my many digital books is also a real pleasure with the extra screen size. There must be several large laptop manufacturers ripping these little units to pieces in their labs to find out how the heck they do it for this price point. One of the nice new features of this unit is the small row of extra function keys just under the screen. They allow you to change the power usage of the machine, turn off the screens backlight , zoom the screen and start Skype, with just a push of a single button. The two on the right are user definable and can be changed with a built in utility. The addition of bluetooth functionality will be useful to some, but I have to say I have yet to find a use for it.
The software has changed a lot with this release, and Open office has been replaced by Sun's Star Office, which is basically Open Office with some template and filter additions. This move does puzzle me as Star Office is not normally a free item. It could have more to do with the good publicity these units are receiving, so millions of users will get to see Sun's offering. Only Xandros and Sun would know for sure.There have been more games added and I particularly like Mahjong, one of my favourites. Asus have done a deal with Yostore for on-line file storage, which it appears is only available to 901/1000 users. This is again though a service I have never up to now found that useful, but time will tell. It would have been nice to see the version of KDE be bumped up to 3.5, as I use the advanced desktop, when not running Ubuntu from a USB key. It would be really useful if everything worked with Ubuntu, but as I write this it doesn't, and that is one of this units strong points, so I will wait until it does. I have added a few Xandros repositories, which allows me to install some new applications, so all is not lost in the mean time.
I also feel that in the weeks to come with the new Dell 910 Inspiron machine about to be launched that the competition for Linux netbooks that just work is going to intensify. This is excellent news for people who want to start using machines with a low price point of entry and an even better price point for the software they want to run on them. There is no doubt that this choice can only be good for the consumer, as there is now a genuine third way to use an Intel PC. I have felt for a long time that Michael Dell has been totally fed up bowing to the demands of Microsoft, and would have loved the opportunity to use Apples OSX on a line of Dell machines. Being the logical and sensible person he is, it was obvious for selfish reasons, Apple were never going to allow this to happen. Their premium priced hardware is part of their strategy, and it is not something they will give up lightly. He has however discovered a new and better way to achieve this, and Linus Torvalds gave him the answer in the form of Linux. He now has a new and very powerful bargaining chip , and it will be interesting to see how this gets used. The other netbook manufacturers are not going to just give their market share to Dell, but competition can only be good for the products that get produced.
Subscribe to:
Posts (Atom)


