Notes on CLI installation of a VM on Ubuntu-8.04
Posted: 9. Aug 2009, 04:09
Hi all,
I'm undertaking a project to set up 3 VMs to host my own personal website. VBox is running on a gui-less Ubuntu 8.04LTS, and I'm installing the same for all my VMs. One is for MySQL, one for Wordpress, and one for a pylons web application. I just wanted to share a few things that tripped me up during the process. Right now I've gotten one mostly set up (it's running, with the bridged interface working, but I'm not sure what's up with the internal networking).
1. If you use a bridge interface, you have to specify which network device to use. Use this command: where N and X are the numbers of your bridge adapter and host network device (usually eth0 if you only have one NIC). If you don't do this, you'll receive this error:
2. When loading the iso to be used, the instructions tell you to first register the iso -- "VBoxManage openmedium dvd /full/path/to/dvd.iso" and then attach it to the vm -- "VBoxManage modifyvm "Windows XP" --dvd /full/path/to/dvd.iso". YOU MUST USE THE FULL PATH. For openmedium, the relative path will work, but for modifying the vm, you must give it the entire path to the iso, because the program runs from the ~/.VirtualBox directory. Having a relative path will end in it trying to use ~/.VirtualBox/path/to/dvd.iso when really you meant for it to be in ~/path/to/dvd.iso. This is the error you will receive if you make this mistake:
Also, during the install process of the guest's OS, it couldn't find the DHCP server. I don't know what's up with that (though my router is 192.168.2.1, so maybe that was a problem) but it didn't matter since I'm setting it to have a static IP address. After manually configuring the IP, DNS, etc, it worked fine.
I'll update this post with any other notes I have to share as I make progress. Hope this is helpful to someone out there on the intertubes...
I'm undertaking a project to set up 3 VMs to host my own personal website. VBox is running on a gui-less Ubuntu 8.04LTS, and I'm installing the same for all my VMs. One is for MySQL, one for Wordpress, and one for a pylons web application. I just wanted to share a few things that tripped me up during the process. Right now I've gotten one mostly set up (it's running, with the bridged interface working, but I'm not sure what's up with the internal networking).
1. If you use a bridge interface, you have to specify which network device to use. Use this command:
Code: Select all
VBoxManage modifyvm "your-vm-name" --bridgeadapter<N> eth<X>Code: Select all
Error: failed to start machine. Error message: Failed to open/create the internal network 'HostInterfaceNetworking-' (VERR_INTNET_FLT_IF_NOT_FOUND).
Unknown error creating VM (VERR_INTNET_FLT_IF_NOT_FOUND)Code: Select all
ERROR: Could not access the image file '/home/jonathan/.VirtualBox/downloads/ubuntu-8.04.3-server-amd64.iso' (VERR_FILE_NOT_FOUND)
Details: code VBOX_E_FILE_ERROR (0x80bb0004), component DVDImage, interface IDVDImage, callee nsISupports
Context: "OpenDVDImage(Bstr(dvd), emptyUUID, dvdImage.asOutParam())" at line 1268 of file VBoxManageModifyVM.cppI'll update this post with any other notes I have to share as I make progress. Hope this is helpful to someone out there on the intertubes...