Last active
August 5, 2020 08:15
-
-
Save yeonki-choi/1ff5bc1dc14b6ec1f3c5 to your computer and use it in GitHub Desktop.
Running andoridx86 4.4 GUI on Openstack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################### | |
# Running andoridx86 4.4 GUI on Openstack. | |
########################################################################### | |
# Download iso image | |
$ wget http://sourceforge.net/projects/android-x86/files/Release%204.4/android-x86-4.4-r1.iso/download | |
$ mv download android-x86-4.4-r1.iso | |
# I crated a VM named "andro2" in Virutal Machine Manager on Ubuntu 12.04.3 | |
# Installed android OS from android-x86-4.4-r1.iso | |
# Disk Bus: IDE | |
# NIC : hypervisor default | |
# Video : vga | |
# andro2.img was name of virtual disk of "andro2" | |
# Copy the image (andro2.img) to Openstack controller | |
# Run a command that registers the image to Openstack Image Service (Glance) | |
# Note: This image should be configured to use IDE on Openstack. | |
$ glance image-create --name android_iso_ide --disk-format qcow2 --container-format bare --file ./andro2.img --progress --is-public true --property disk_bus=ide --property hw_vif_model=e1000 | |
[=============================>] 100% | |
+-------------------------+--------------------------------------+ | |
| Property | Value | | |
+-------------------------+--------------------------------------+ | |
| Property 'disk_bus' | ide | | |
| Property 'hw_vif_model' | e1000 | | |
| checksum | 094e0af2a9c4dc872b550df664dd4f61 | | |
| container_format | bare | | |
| created_at | 2014-08-11T13:47:10 | | |
| deleted | False | | |
| deleted_at | None | | |
| disk_format | qcow2 | | |
| id | 517c2a59-a83e-42d9-86cc-a8ba8f2cbf61 | | |
| is_public | True | | |
| min_disk | 0 | | |
| min_ram | 0 | | |
| name | android_iso_ide | | |
| owner | 0eec73ee7cb64ba983cb16dec1deb858 | | |
| protected | False | | |
| size | 3221225472 | | |
| status | active | | |
| updated_at | 2014-08-11T13:52:55 | | |
| virtual_size | None | | |
+-------------------------+--------------------------------------+ | |
# Ceate a new flavor with 4GB disk size. | |
$ nova flavor-create m1.tiny4 8 512 4 1 | |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+ | |
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | | |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+ | |
| 8 | m1.tiny4 | 512 | 4 | 0 | | 1 | 1.0 | True | | |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+ | |
$ net_id=$(nova net-list | grep int | awk '{ print $2 }' ) | |
$ image_id=(nova image-list | grep android_iso_ide | awk '{ print $2 }' ) | |
$ nova boot --image $image_id --flavor 8 --security-groups default --key-name default2 --nic net-id=$net_id andro6 | |
+--------------------------------------+--------------------------------------------------------+ | |
| Property | Value | | |
+--------------------------------------+--------------------------------------------------------+ | |
| OS-DCF:diskConfig | MANUAL | | |
| OS-EXT-AZ:availability_zone | nova | | |
| OS-EXT-SRV-ATTR:host | - | | |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - | | |
| OS-EXT-SRV-ATTR:instance_name | instance-00000016 | | |
| OS-EXT-STS:power_state | 0 | | |
| OS-EXT-STS:task_state | scheduling | | |
| OS-EXT-STS:vm_state | building | | |
| OS-SRV-USG:launched_at | - | | |
| OS-SRV-USG:terminated_at | - | | |
| accessIPv4 | | | |
| accessIPv6 | | | |
| adminPass | LTMW6hejX57v | | |
| config_drive | | | |
| created | 2014-08-11T14:05:04Z | | |
| flavor | m1.tiny4 (8) | | |
| hostId | | | |
| id | c38d4358-83f3-4682-ad0c-cb1ea6a8b6c2 | | |
| image | android_iso_ide (517c2a59-a83e-42d9-86cc-a8ba8f2cbf61) | | |
| key_name | default2 | | |
| metadata | {} | | |
| name | andro6 | | |
| os-extended-volumes:volumes_attached | [] | | |
| progress | 0 | | |
| security_groups | default | | |
| status | BUILD | | |
| tenant_id | 0eec73ee7cb64ba983cb16dec1deb858 | | |
| updated | 2014-08-11T14:05:04Z | | |
| user_id | c623f1b6c95941028e856c085b3a7cff | | |
+--------------------------------------+--------------------------------------------------------+ | |
$ nova list | |
+--------------------------------------+--------+--------+------------+-------------+--------------------+ | |
| ID | Name | Status | Task State | Power State | Networks | | |
+--------------------------------------+--------+--------+------------+-------------+--------------------+ | |
| c38d4358-83f3-4682-ad0c-cb1ea6a8b6c2 | andro6 | ACTIVE | - | Running | int-net=50.50.1.22 | | |
+--------------------------------------+--------+--------+------------+-------------+--------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
except 4.4,is there other Android os version likes5.1,7.0 use in openstack?