Initial commit
This commit is contained in:
+75
@@ -0,0 +1,75 @@
|
||||
|
||||
Installing VirtualBox Guest Additions
|
||||
=====================================
|
||||
|
||||
In order to use VirtualBox guest additions, they have to be build
|
||||
first. They may have to be rebuilt each time the time you upgrade to
|
||||
a new version of VirtualBox.
|
||||
|
||||
Make sure VM is configured with an Optical Drive.
|
||||
|
||||
Please follow these steps to install the VirtualBox Guest Additions on the
|
||||
Build Appliance VM:
|
||||
|
||||
1. Boot VM, select root "Terminal" instead of the default "Terminal <2>"
|
||||
|
||||
2. Insert Guest additions CD into VM optical drive:
|
||||
VM menu "Devices"->"Optical Drives"-> Select "VBoxGuestAdditions<version>.iso"
|
||||
|
||||
3. Find your CDROM device. Typically it is /dev/hda for IDE. You can determine
|
||||
the actual name <cdromedev> by viewing the cdrom info:
|
||||
|
||||
# cat /proc/sys/dev/cdrom/info
|
||||
|
||||
Mount the cdrom drive:
|
||||
# mount -t iso9660 <cdromdev> /media/cdrom
|
||||
i.e.:
|
||||
# mount -t iso9660 /dev/hda /media/cdrom
|
||||
|
||||
4. Build the additions:
|
||||
|
||||
First, we need to build of some prerequisite utilities.
|
||||
(This is only needed to be done once)
|
||||
|
||||
# cd /lib/modules/<kernel-version>-yocto-standard/build
|
||||
# make scripts
|
||||
|
||||
Now build the guest additions:
|
||||
|
||||
# /media/cdrom/VBoxLinuxAdditions.run --nox11
|
||||
|
||||
At this point, providing there were no build errors, the guest additions are
|
||||
built and installed.
|
||||
|
||||
5. Check if vbox additions running:
|
||||
|
||||
# /etc/init.d/vboxadd status
|
||||
|
||||
If not running, try manually starting:
|
||||
|
||||
# /etc/init.d/vboxadd start
|
||||
|
||||
6. Check if additons actually work, in particular folder sharing.
|
||||
|
||||
Host: Devices->Shared Folders->Shared Folder Settings...
|
||||
Add any host folder and name it (i.e. "images")
|
||||
|
||||
Guest VM: create mount point for the shared folder, i.e.:
|
||||
|
||||
# mkdir ~/my-host
|
||||
|
||||
Mount the shared folder: (Watch out for spelling: it's vboxsf NOT vboxfs)
|
||||
|
||||
# mount -t vboxsf images ~/my-host
|
||||
|
||||
Verify mount, should see the contents of the shared folder:
|
||||
|
||||
# ls ~/my-host
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
|
||||
Running Toaster in VirtualBox
|
||||
=============================
|
||||
|
||||
Toaster is launched via the command in VM:
|
||||
|
||||
$ source toaster start webport=<IPADDR:PORT>
|
||||
|
||||
The interaction with Toaster web server is done via a host internet
|
||||
browser.
|
||||
The particular steps depend on the actual networking being used
|
||||
by the VirtualBox.
|
||||
|
||||
|
||||
Bridged Network
|
||||
===============
|
||||
|
||||
Find out your VM network IP address:
|
||||
|
||||
$ ifconfig
|
||||
|
||||
IP address is listed under eth0 inet addr.
|
||||
It should be something like:
|
||||
inet addr:192.168.1.18
|
||||
|
||||
Launch the Toaster web server in VM:
|
||||
|
||||
$ source toaster start webport=192.168.1.18:8000
|
||||
|
||||
Interact with the Toaster web server with your host browser using URL:
|
||||
|
||||
http://192.168.1.18:8000
|
||||
|
||||
|
||||
NAT Network
|
||||
===========
|
||||
Find out your VM network IP address:
|
||||
|
||||
$ ifconfig
|
||||
|
||||
IP address is listed under eth0 inet addr.
|
||||
For NAT network it should be something like:
|
||||
inet addr:10.0.2.15
|
||||
|
||||
When using NAT network, the VM web server can be accessed using
|
||||
Port Forwarding.
|
||||
|
||||
Using the VirtualBox GUI, navigate to:
|
||||
Settings->Network->Adapter1
|
||||
|
||||
You should set:
|
||||
Attached to: NAT
|
||||
|
||||
Select "Advanced", click on "Port Forwarding"
|
||||
|
||||
This will open a new dialog box "Port Forwarding Rules".
|
||||
Create a new rule that looks like this:
|
||||
|
||||
| Name | Protocol | Host IP | Host Port | Guest IP | Guest Port |
|
||||
+-------+----------+---------+-----------+----------+------------+
|
||||
| Rule1 | TCP | | 8000 | | 8000 |
|
||||
------------------------------------------------------------------
|
||||
|
||||
Now we can launch the Toaster web server in VM:
|
||||
|
||||
$ source toaster start webport=10.0.2.15:8000
|
||||
|
||||
Interact with the Toaster web server with your host browser using URL:
|
||||
|
||||
http://127.0.0.1:8000
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
.encoding = "UTF-8"
|
||||
config.version = "8"
|
||||
virtualHW.version = "10"
|
||||
numvcpus = "2"
|
||||
vcpu.hotadd = "TRUE"
|
||||
memsize = "4096"
|
||||
mem.hotadd = "TRUE"
|
||||
sata0.present = "TRUE"
|
||||
sata0:0.present = "TRUE"
|
||||
sata0:0.fileName = "Yocto_Build_Appliance.vmdk"
|
||||
ethernet0.present = "TRUE"
|
||||
ethernet0.virtualDev = "e1000"
|
||||
ethernet0.wakeOnPcktRcv = "FALSE"
|
||||
ethernet0.addressType = "generated"
|
||||
usb.present = "TRUE"
|
||||
ehci.pciSlotNumber = "0"
|
||||
sound.present = "TRUE"
|
||||
sound.fileName = "-1"
|
||||
sound.autodetect = "TRUE"
|
||||
pciBridge0.present = "TRUE"
|
||||
pciBridge4.present = "TRUE"
|
||||
pciBridge4.virtualDev = "pcieRootPort"
|
||||
pciBridge4.functions = "8"
|
||||
pciBridge5.present = "TRUE"
|
||||
pciBridge5.virtualDev = "pcieRootPort"
|
||||
pciBridge5.functions = "8"
|
||||
pciBridge6.present = "TRUE"
|
||||
pciBridge6.virtualDev = "pcieRootPort"
|
||||
pciBridge6.functions = "8"
|
||||
pciBridge7.present = "TRUE"
|
||||
pciBridge7.virtualDev = "pcieRootPort"
|
||||
pciBridge7.functions = "8"
|
||||
vmci0.present = "TRUE"
|
||||
hpet0.present = "TRUE"
|
||||
usb.vbluetooth.startConnected = "TRUE"
|
||||
displayName = "Yocto Build Appliance"
|
||||
guestOS = "other3xlinux-64"
|
||||
virtualHW.productCompatibility = "hosted"
|
||||
gui.exitOnCLIHLT = "FALSE"
|
||||
powerType.powerOff = "soft"
|
||||
powerType.powerOn = "soft"
|
||||
powerType.suspend = "soft"
|
||||
powerType.reset = "soft"
|
||||
extendedConfigFile = "Yocto_Build_Appliance.vmxf"
|
||||
scsi0:0.present = "FALSE"
|
||||
floppy0.present = "FALSE"
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<Foundry>
|
||||
<VM>
|
||||
<VMId type="string">52 a5 d8 cb ed 6c 85 48-cd 99 68 af cc 30 a0 98</VMId>
|
||||
<ClientMetaData>
|
||||
<clientMetaDataAttributes/>
|
||||
<HistoryEventList/></ClientMetaData>
|
||||
<vmxPathName type="string">Yocto_Build_Appliance.vmx</vmxPathName></VM></Foundry>
|
||||
Reference in New Issue
Block a user