Nov 22, 2011
Reorganize virtualbox documentation; add details from Ntino on Virtua…
|
|
|
13 |
|
|
14 |
vagrant box add box_name http://path_to_the_image.box |
|
15 |
mkdir tmp/biolinux |
|
16 |
cd tmp/biolinux |
|
17 |
vagrant init box_name |
|
18 |
vagrant up |
|
19 |
|
|
20 |
Run the fabfile, building CloudBioLinux: |
|
21 |
|
|
22 |
fab -H vagrant -f /path/to/cloudbiolinux/fabfile.py install_biolinux |
|
23 |
|
|
24 |
Then build the box, renaming package.box to `cloudbiolinux_date` and |
|
25 |
move it to a public webserver, such as Amazon S3: |
|
26 |
|
|
27 |
vagrant package |
|
28 |
mv package.box biolinux_20110122.box |
|
29 |
s3cmd put --acl-public --guess-mime-type biolinux_20110122.box |
|
30 |
s3://chapmanb/biolinux_20110122.box |
|
31 |
|
|
32 |
[v3]: http://vagrantbox.es/ |
May 26, 2011
Vagrant
|
|
|
102 |
vagrant@vagrant-debian-squeeze:~$ df -h |
|
103 |
Filesystem Size Used Avail Use% Mounted on |
|
104 |
/dev/sda1 39G 804M 36G 3% / |
|
105 |
tmpfs 188M 0 188M 0% /lib/init/rw |
|
106 |
udev 184M 116K 184M 1% /dev |
|
107 |
tmpfs 188M 0 188M 0% /dev/shm |
|
108 |
v-root 51G 24G 27G 47% /vagrant |
|
109 |
|
|
110 |
Despite the fact that running fabfile.py is destructive, i.e. it overwrites the |
|
111 |
current install, it is reasonably safe as it mostly uses the underlying package |
|
112 |
management system and dependency resolution. Rerunning a BioLinux fabfile can |
Oct 7, 2011
Vagrant error message
|
|
|
132 |
|
|
133 |
## Trouble shooting |
|
134 |
|
|
135 |
### Guest additions |
|
136 |
|
|
137 |
You may see an error |
|
138 |
|
|
139 |
[default] The guest additions on this VM do not match the install version of |
|
140 |
VirtualBox! This may cause things such as forwarded ports, shared |
|
141 |
folders, and more to not work properly. If any of those things fail on |
|
142 |
this machine, please update the guest additions and repackage the |
|
143 |
box. |
|
144 |
|
|
145 |
Guest Additions Version: 4.0.4 |
|
146 |
VirtualBox Version: 4.1.0 |
|
147 |
|
|
148 |
this error may actually be caused by the Vbox Linux kernel drivers not having |
|
149 |
been loaded! Fix |
|
150 |
|
|
151 |
modprobe vboxdrv |
|
152 |
|
Nov 22, 2011
Reorganize virtualbox documentation; add details from Ntino on Virtua…
|
|
|
153 |
# Converting Vagrant images to VirtualBox and Eucalyptus images |
|
154 |
|
|
155 |
(protocol steps tested in Ubuntu Natty) |
|
156 |
|
|
157 |
## software pre-requisite |
|
158 |
|
|
159 |
sudo gem install vagrant |
|
160 |
sudo apt-get install cloud-utils |
|
161 |
|
|
162 |
## Importing cloud biolinux VM to your system |
|
163 |
|
|
164 |
vagrant box add base |
|
165 |
https://s3.amazonaws.com/cloudbiolinux/cbl_ubuntu_11_4_32_20110628.box |
|
166 |
vagrant init base |
|
167 |
vagrant up |
|
168 |
|
|
169 |
## adding some missing components to the vagrant VMs |
|
170 |
|
|
171 |
vagrant ssh |
|
172 |
sudo apt-get install gdm cloud-utils openssh |
|
173 |
sudo useradd -d /home/ubuntu -m ubuntusudo passwd ubuntu |
|
174 |
sudo shutdown -r now |
|
175 |
|
|
176 |
in the graphical login after reboot get in with user:ubuntu / pass:ubuntu |
|
177 |
go to System--->Administration--->Login Window to enable autologin |
|
178 |
|
Dec 19, 2011
Documentation edits
|
|
|
211 |
# VirtualBox, KVM or XEN? |
|
212 |
|
|
213 |
There are more ways than one to virtualize machines on Linux. |
|
214 |
|
|
215 |
Despite the attractions of vagrant and Virtualbox, as displayed here, we note |
|
216 |
that Linux KVM may be a better choice for virtualization and testing of |
|
217 |
CloudBioLinux, as Linux distributions support KVM out of the box, and KVM has |
|
218 |
more Unix-like control. See also the information for using KVM in |
|
219 |
./doc/linux_kvm.md. |
|
220 |
|
|
221 |
For production environments check out XEN virtualization (XEN runs Amazon EC2). |
|
222 |
|
|
223 |
|