You have started up a virtual machine in VirtualBox. In this case, I ran Ubuntu 16.10. You then realized that the IP address of your VM is not accessible from your local network. Although you can connect from the Host to your Guest VM (Ubuntu).
Therefore, you would like to change the type of network from “NAT” to “Bridge”. You did this through the GUI menu (Machine > Setting > Network > Adapter 1 –> Change to “Bridged Adapter”
OK, now what. You IP addresses is still the same.
You can check your current IP and network device with
Continue reading Get a new IP address for a running VirtualBox Ubuntu Machine
What do you do when you forget the “root” account password?
Install new OS is not always a good idea. As long as you still have physical access to the computer, it is somewhat possible to try the followings. Depending on whether you are working with Mac or Linux. See the detail and additional reference through the links below.
- Restart the Mac while holding down the Option key, and double-click the icon for the Recovery partition. …
- Choose Utilities > Terminal.
- In Terminal, type resetpassword .
- Reboot your computer.
- Hold Shift during boot to start GRUB menu.
- Highlight your image and press E to edit.
- Find the line starting with “linux” and append rw init=/bin/bash at the end of that line.
- Press Ctrl + X to boot.
- Type in passwd username.
- Set your password.
Again working behind firewall through proxy server is sometimes troublesome.
normally, you can export “http_proxy” to set a proxy for most process. However, to install software with apt-get, if the previous method doesn’t work.
From this page, you can try adding the configuration in a folder
95proxies Continue reading apt-get through proxy server
OK, you got “.img” virtual machine image. Now what?
Diving in VMWare, Oracle Virutal Machine, etc, etc, there is not a shadow of the option to choose “new virutal machine” from .img image.
What should I do?
1. Download Qemu (ported version for OSX) http://www.kju-app.org/
2. After installing it on Mac (works fine for me on Maverick),
./qemu-img convert -f raw -O vmdk /Volumes/xxx/rawdisk200gb.img /Volumes/xxx/vdisk200gb.vmdk
3. Next, open up vmware to create a new virtual machine.
4. Choose continue without disk > choose an existing virtual disk
5. Follow the instruction to start up your new machine 🙂
Thanks to http://www.igorkromin.net/?x=entry:entry130909-170324 for written up the solution for mac.