I'm working on a new DevOps system that relies upon Chef, Vagrant and VirtualBox. To duplicate the system I needed to run Ubuntu Trusty 64 bit edition in the virtual box. Vagrant setup failed with timeouts. When I ran the 64 bit VM Vagrant made through the VirtualBox client it said I did not have VT-x visualization on my machine.
I have a HP ProBook 4730s.
As you can see it uses i5-2430M CPUs. Checking at http://ark.intel.com/products/53450/Intel-Core-i5-2430M-Processor-3M-Cache-up-to-3_00-GHz , shows that :
So, why won't VirtualBox work? The answer lays in the HP bios. To enable:
Restart notebook.
Press F10
Choose system features
Device features
Virtualisation
check.
Save
Reboot.
VirtualBox still refuses to run ubuntu 64. Some googling reveals you have to enable the bios to change the setting, rather than just view. WTF?
Restart notebook
Press F10
Choose security
Some stupid setting
save
reboot
Now it works.
Monday, November 30, 2015
Connecting to vagrant using NppFTP and Notepad++
Notepad++ comes with a great plugin to enable editing remote files or files on virtual boxes. It can be a bit of a mystery to setup. I'll explain what I do to allow editing on a Vagrant box on your Windows PC.
That should setup the connection. Try it out by using the icon. Click on the icon to see the log of NppFTP connection attempts.
- start vagrant using vagrant up
- start notepad++
- open the NppFTP plugin from the plugins menu.
- click on the setup gear and choose 'profile settings'
- click on the add new profile button
- give it a good name and click OK
- click on the connection tag
- enter the ssh port number your vagrant box is using, it'll be 2222 or a variant of that.
- enter these parameters:
- hostname: 127.0.0.1
- connection type: SFTP
- username: vagrant
- uncheck 'ask for password'
- click on the Authentication tab
- check 'Try private key file authentication'
- click the '...' next to the 'Private key file' edit box.
- navigate in the file dialog to your Vagrant box location
- select this file: '.vagrant\machines\default\virtualbox\private_key'
- uncheck 'ask every time'
- click close
That should setup the connection. Try it out by using the icon. Click on the icon to see the log of NppFTP connection attempts.
Subscribe to:
Posts (Atom)