Coder Social home page Coder Social logo

vmware / photon Goto Github PK

View Code? Open in Web Editor NEW
3.0K 187.0 703.0 335.28 MB

Minimal Linux container host

Home Page: https://vmware.github.io/photon

License: Other

Shell 34.95% Python 43.77% Makefile 0.11% Erlang 0.21% CMake 0.28% C 15.33% Dockerfile 0.03% Perl 3.35% Hack 0.01% Vim Script 0.08% Roff 0.84% Assembly 0.10% BitBake 0.63% Ruby 0.26% NASL 0.06%

photon's Introduction

Photon

Photon OS: Linux Container Host

Contents

What is Photon OS?

Photon OS™ is an open source Linux container host optimized for cloud-native applications, cloud platforms, and VMware infrastructure. Photon OS provides a secure run-time environment for efficiently running containers. Some of the key highlights of Photon OS are:

  • Optimized for VMware hypervisor: The Linux kernel is tuned for performance when Photon OS runs on VMware ESXi.

  • Support for containers: Photon OS includes the Docker daemon and works with container orchestration frameworks, such as Mesos and Kubernetes.

  • Efficient lifecycle management: Photon OS is easy to manage, patch, and update, using the tdnf package manager and the Photon Management Daemon Next Gen (pmd-next-gen).

  • Security hardened: Photon OS provides secure and up-to-date kernel and other packages, and its policies are designed to govern the system securely.

For an overview of Photon OS, see https://vmware.github.io/photon/

Getting Photon OS

Photon OS binaries are available in a number of formats, including ISO, OVA and cloud images such as Amazon AMI, Google Cloud GCE image and Azure VHD.

For download instructions and links to Photon OS binaries, go to the Download Guide.

Photon OS 5.0 GA is here!

Photon OS 5.0 provides support for the Real Time flavor of kernel linux-rt, SELinux , installer improvements, PMD role management improvements and critical updates to OSS packages including linux kernel, systemd, and glibc.

For an overview of changes, see What's New in Photon OS 5.0.

Getting Started

Begin your Photon OS journey by browsing our extensive guides on getting started in the Photon OS Wiki.

Contributing

The Photon OS project team welcomes contributions from the community.

If you wish to contribute code and you have not signed our Contributor License Agreement (CLA), our CLA-bot will take you through the process and update the issue when you open a Pull Request. If you have questions about the CLA process, see our CLA FAQ or contact us through the GitHub issue tracker.

To help you get started making contributions to Photon OS, we have collected some helpful best practices in the Contributing guidelines.

Before you start to code, we recommend discussing your plans through a GitHub issue or discuss it first with the official project maintainers via the #photon Slack Channel, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

License

The Photon OS ISO and OVA images are distributed under the Photon OS EULA.

With the exception of the 'libtdnf' source code, Photon OS source code is distributed under GNU GPL v2. The 'libtdnf' source code is distributed under GNU LGPL v2.1. For more details, please refer to the Photon OS Open Source License file.

Photon OS Resources

  • Documentation: The Photon OS Documentation provides information about how to install, configure, and use VMware Photon OS™.
  • Security Updates: Visit Security-Advisories.
  • Vagrant box: An official Vagrant box is available on Hashicorp Atlas, to get started: vagrant init vmware/photon. A plugin to support Photon OS guests in Vagrant is available at https://github.com/vmware/vagrant-guests-photon. Some users have found that our Vagrant box requires VirtualBox 4.3 or later. If you have issues, please check your version.

photon's People

Contributors

akaher avatar bhllamoreaux avatar bordoloih avatar dheerajsshetty avatar dthaluru avatar dweepadvani avatar ganboing avatar gerrit-photon avatar gpiyush-dev avatar gsujayvmw avatar harishspqr avatar jaankit avatar kashwindayan avatar keerthanakalyan avatar ntsbtz avatar oliverkurth avatar prashant1221 avatar satya-rajesh avatar shivania2 avatar shreyasbe avatar sjohngeorge avatar srivatsabhat avatar ssahani avatar sshedi avatar ssrish17 avatar suezzelur avatar tapakund avatar toliaqat avatar xiaolin-vmware avatar yustasswamp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

photon's Issues

Package createrepo has missing dependency of deltarpm

Createrepo is throwing following error in Photon

root [ /workspace/photon ]# createrepo
Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 29, in <module>
    import createrepo
  File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 53, in <module>
    import deltarpms
  File "/usr/lib/python2.7/site-packages/createrepo/deltarpms.py", line 21, in <module>
    import deltarpm
ImportError: No module named deltarpm

What am I doing wrong? Or photon doesn't work on vagrant/virtual box?

:vagrant-guests-photon $ vagrant plugin install vagrant-guests-photon
Installing the 'vagrant-guests-photon' plugin. This can take a few minutes...
Installed the plugin 'vagrant-guests-photon (1.0.1)'!

:vagrantplugin $ cd ../photon/
:photon $ vagrant init vmware/photon
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

:photon $ ls
Vagrantfile
:photon$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'vmware/photon' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'vmware/photon'
    default: URL: https://atlas.hashicorp.com/vmware/photon
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Atlas, make sure the box is
released.

Name: vmware/photon
Address: https://atlas.hashicorp.com/vmware/photon
Requested provider: [:virtualbox]

Bad request on .iso build, cannot find python2

Seems that there's no python2-devel up on bintray and/or it expired.

❯ sudo make iso                  
json_pp -t null < installer/package_list.json >/dev/null 2>&1 || { echo "Invalid installer/package_list.json. Aborting" >&2; exit 1; }
Creating staging folder...
/bin/mkdir -p /home/wikus/Dropbox/git/photon/stage
Creating chroot path...
/bin/mkdir -p /mnt/photonroot
Building RPMS folders...
Building SOURCES folder...
Building LOGS folder...
Pulling publish rpms from bintray...
https://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/x86_64/python2-devel-2.7.9-1.x86_64.rpm?expiry=1434386265600&signature=TCml8UthovRi2Z5rIxofFxr4%2Bm4J3a%2BOj3ILxrQmxeywystBJJ0rW0TAhBZWgehEE6h%2Bw87QVIW5DzkKvZ3m%2FA%3D%3D:
2015-06-15 12:37:30 ERROR 400: Bad Request.

Photon build needs to supply OVA, ISO and docker image from same build

ESXcloud build process needs to be able to pick up particular builds from Photon:

  • ISO and OVA
  • docker container image

The container image can be in docker hub (with a tag ID) or exported as TAR in the build location. We need to use the same build number for the OVA/ISO AND the container image.

The container image needs to be minimal, no kernel necessary

plarena.h not found?

Tried building photon on a 32 bit ubuntu machine process failed

nss package building failed due to nspr package which in turn failed due to plarena.h directive?

please help.

tdnf upgrade doesn't work.

The tdnf upgrade command doesn't work, says it lacks arguments (not compliant with the docs).

Tried even with distro-sync, without success

root [ /etc/yum.repos.d ]# tdnf check-update
photon-release.noarch 1.1-1 photon
yum.noarch 3.4.3-2 photon
Linux-PAM.x86_64 1.1.8-2 photon
Linux-PAM-lang.x86_64 1.1.8-2 photon
autoconf.x86_64 2.69-3 photon
automake.x86_64 1.14.1-2 photon
bash.x86_64 4.3-2 photon
bash-lang.x86_64 4.3-2 photon
bison.x86_64 3.0.2-2 photon
bzip2.x86_64 1.0.6-3 photon
bzip2-devel.x86_64 1.0.6-3 photon
check.x86_64 0.9.14-2 photon
cloud-init.x86_64 0.7.6-3 photon
cloud-init.x86_64 0.7.6-4 photon
cmake.x86_64 3.2.1-2 photon
cracklib.x86_64 2.9.2-2 photon
cracklib-dicts.x86_64 2.9.2-2 photon
cracklib-python.x86_64 2.9.2-2 photon
cyrus-sasl.x86_64 2.1.26-2 photon
dbus.x86_64 1.8.8-2 photon
dbus.x86_64 1.8.8-3 photon
diffutils.x86_64 3.3-2 photon
docbook-xml.x86_64 4.5-2 photon
docbook-xml.x86_64 4.5-3 photon
docbook-xsl.x86_64 1.78.1-2 photon
docker.x86_64 1.7.0-1 photon
dparted.x86_64 0.1-2 photon
e2fsprogs.x86_64 1.42.9-2 photon
e2fsprogs-devel.x86_64 1.42.9-2 photon
elfutils.x86_64 0.158-2 photon
elfutils-devel.x86_64 0.158-2 photon
elfutils-devel-static.x86_64 0.158-2 photon
elfutils-libelf.x86_64 0.158-2 photon
elfutils-libelf-devel.x86_64 0.158-2 photon
elfutils-libelf-devel-static.x86_64 0.158-2 photon
filesystem.x86_64 7.5-4 photon
filesystem.x86_64 7.5-7 photon
flex.x86_64 2.5.38-2 photon
gawk.x86_64 4.1.0-2 photon
gcc.x86_64 4.8.2-4 photon
glib.x86_64 2.42.0-3 photon
glib-devel.x86_64 2.42.0-3 photon
glibc.x86_64 2.21-2 photon
glibc-devel.x86_64 2.21-2 photon
glibc-lang.x86_64 2.21-2 photon
glibmm.x86_64 2.42.0-3 photon
gobject-introspection.x86_64 1.43.3-2 photon
gobject-introspection-devel.x86_64 1.43.3-2 photon
gobject-introspection-python.x86_64 1.43.3-2 photon
gpgme.x86_64 1.5.3-2 photon
gpgme-devel.x86_64 1.5.3-2 photon
grub.x86_64 2.02-1 photon
grub-lang.x86_64 2.02-1 photon
gtk-doc.x86_64 1.21-2 photon
hawkey.x86_64 2014.1-3 photon
hawkey-devel.x86_64 2014.1-3 photon
iptables.x86_64 1.4.21-2 photon
itstool.x86_64 2.0.2-2 photon
json-glib.x86_64 1.0.2-3 photon
json-glib-devel.x86_64 1.0.2-3 photon
libassuan.x86_64 2.2.0-2 photon
libgcc.x86_64 4.8.2-4 photon
libgcc-devel.x86_64 4.8.2-4 photon
libgomp.x86_64 4.8.2-4 photon
libgomp-devel.x86_64 4.8.2-4 photon
libsolv.x86_64 0.6.6-2 photon
libstdc++.x86_64 4.8.2-4 photon
libstdc++-devel.x86_64 4.8.2-4 photon
libxml2.x86_64 2.9.1-2 photon
libxml2.x86_64 2.9.1-3 photon
libxml2-devel.x86_64 2.9.1-2 photon
libxml2-devel.x86_64 2.9.1-3 photon
linux.x86_64 3.19.2-2 photon
linux-dev.x86_64 3.19.2-2 photon
linux-docs.x86_64 3.19.2-2 photon
mercurial.x86_64 3.1.2-2 photon
ncurses.x86_64 5.9-2 photon
ncurses-devel.x86_64 5.9-2 photon
nspr.x86_64 4.10.8-1 photon
nss.x86_64 3.19-1 photon
nss-devel.x86_64 3.19-1 photon
open-vm-tools.x86_64 9.10.0-3 photon
open-vm-tools.x86_64 9.10.0-4 photon
openssh.x86_64 6.6p1-2 photon
openssh.x86_64 6.6p1-3 photon
ostree.x86_64 2015.7-1 photon
ostree.x86_64 2015.7-2 photon
perl.x86_64 5.18.2-2 photon
procps-ng.x86_64 3.3.9-2 photon
procps-ng-devel.x86_64 3.3.9-2 photon
pycurl.x86_64 7.19.5.1-2 photon
python-hawkey.x86_64 2014.1-3 photon
python2.x86_64 2.7.9-3 photon
python2-devel.x86_64 2.7.9-3 photon
python2-libs.x86_64 2.7.9-3 photon
python2-tools.x86_64 2.7.9-3 photon
readline.x86_64 6.3-3 photon
readline-devel.x86_64 6.3-3 photon
rpm.x86_64 4.11.2-4 photon
rpm-devel.x86_64 4.11.2-4 photon
rpm-ostree.x86_64 2015.7-1 photon
shadow.x86_64 4.1.5.1-3 photon
shadow.x86_64 4.1.5.1-4 photon
sudo.x86_64 1.8.11p1-4 photon
systemd.x86_64 216-4 photon
systemd.x86_64 216-8 photon
tdnf.x86_64 1.0.1-2 photon
tdnf-devel.x86_64 1.0.1-2 photon
texinfo.x86_64 5.2-2 photon
unzip.x86_64 6.0-2 photon
util-linux.x86_64 2.24.1-2 photon
util-linux-lang.x86_64 2.24.1-2 photon
vim.x86_64 7.4-4 photon
xz.x86_64 5.0.5-2 photon
xz-devel.x86_64 5.0.5-2 photon
zlib.x86_64 1.2.8-2 photon
zlib-devel.x86_64 1.2.8-2 photon
root [ /etc/yum.repos.d ]# tdnf distro-sync
No such command: distro-sync. Please use /usr/bin/tdnf --help
root [ /etc/yum.repos.d ]# tdnf upgrade
Error(1622) : Invalid argument

didn't found o docs any tip to a complete upgrade.

Unable to start docker daemon

As stated on the FAQ the docker daemon is not started by default. I have been looking around and haven't found a way to start it.

Unable to build toolchain when building iso

2015-06-15 14:16:24,846 - PackageManager - INFO - --------------------------------------------------------------------------
2015-06-15 14:16:24,846 - PackageManager - INFO - Staring Log
2015-06-15 14:16:24,846 - PackageManager - INFO - --------------------------------------------------------------------------
2015-06-15 14:16:24,847 - Toolchain Utils - INFO - --------------------------------------------------------------------------
2015-06-15 14:16:24,847 - Toolchain Utils - INFO - Staring Log
2015-06-15 14:16:24,847 - Toolchain Utils - INFO - --------------------------------------------------------------------------
2015-06-15 14:16:24,847 - Toolchain Utils - INFO - Building core tool chain packages.....
2015-06-15 14:16:24,862 - Toolchain Utils - INFO - Preparing build environment
2015-06-15 14:16:24,975 - Toolchain Utils - ERROR - Prepare build root script failed.Unable to prepare chroot.
2015-06-15 14:16:24,976 - Toolchain Utils - ERROR - Unable to build tool chain.
2015-06-15 14:16:24,989 - Toolchain Utils - INFO - Successfully destroyed chroot:/home/wikus/Dropbox/git/photon/stage/build-core-toolchain
2015-06-15 14:16:24,989 - PackageManager - ERROR - Unable to build tool chain
2015-06-15 14:16:24,989 - PackageManager - ERROR - Prepare build root script failed
/bin/sh: 1: [: -a: unexpected operator
Building toolchain...
Clean directory: /mnt/photonroot: SUCCESS
Removing existing symlink: /tools: SUCCESS
Creating directory: /mnt/photonroot/tools: SUCCESS
Symlink: /mnt/photonroot/tools to /tools: SUCCESS

Include acpi daemon

Currently power functions do not work on Xen or KVM platforms.

I suggest we include the acpi daemon on default installations.

Was trying to compile 64 bit photon on 32 bit ubuntu ? Encountered the following error?

build-nspr: Building
Clean build directory: ^[[1;32mSUCCESS^[[0;39m
Change directory: BUILD: ^[[1;32mSUCCESS^[[0;39m
Unpacking: nspr-4.10.3: ^[[1;32mSUCCESS^[[0;39m
Change directory: nspr-4.10.3: ^[[1;32mSUCCESS^[[0;39m
Configure: ^[[1;32mSUCCESS^[[0;39m
Make: ^[[1;32mSUCCESS^[[0;39m
Install: ^[[1;32mSUCCESS^[[0;39m
Restore directory: ^[[1;32mSUCCESS^[[0;39m
Restore directory: ^[[1;32mSUCCESS^[[0;39m
build-nss: Building
Clean build directory: ^[[1;32mSUCCESS^[[0;39m
Change directory: BUILD: ^[[1;32mSUCCESS^[[0;39m
Unpacking: nss-3.15.4: ^[[1;32mSUCCESS^[[0;39m
Change directory: nss-3.15.4: ^[[1;32mSUCCESS^[[0;39m
Patch: ^[[1;32mSUCCESS^[[0;39m
Make: ^[[1;31mFAILURE^[[0;39m
or please provide a guide to convert it to 32 bit using the python scripted make file?

Yum repos to add to enable us to install bridge-utils

Hello,

I installed full photon version. Which yum repositories can I safely add to /etc/yum.repos.d/ ?

I'm trying to install bridge-utils with

yum install bridge-utils

But I get "photon | 1.2 kB 00:00:00
photon-updates | 1.2 kB 00:00:00
Setting up Install Process
No package bridge-utils available.
Error: Nothing to do"

When following the Docker documentation for setting up a bridge: https://docs.docker.com/articles/networking/#bridge-building

brctl command is nnot found....

Thanks for claryfying how to make brctl work. Shouldn't this be included in the iso if using brctl is what Docker recommends to set up a bridge?

Tx and grtz

Willem

Display hostname in shell prompt

Currently the bash prompt is configured to display the current username and path, colored red if root, green if not.

It would be very convenient to have the hostname also included in the prompt. Please consider updating the PS1 variable to include something along the lines of \u@\h in /etc/profile.

No swap prartition.

I want to know how to set a swap prartition,
why don't add it to installing.

Bootable ISO

There is no minimal bootable iso created to be reused with boot2docker and/or docker-machine.
Is there any plan to create a bootable ISO as part of make process?
Is there any plan to publish it with the installation ISO?

If it is a worth suggestion, please let me know if any help is required.

Sincerely,
Victor da Costa

Config file based installation options

I have spent some time customizing the photon template for use with our packer image building process. One thing that sticks out is that the installer is using keyboard input only to setup the install options. This is problematic as it relies on time based actions.

Adding a kickstart style config file that can be downloaded from a http source is ideal in my mind. It doesn't necessarily have to be kickstart but would need to support the following options.

  • Accept EULA
  • Disk selection --firstdisk
  • OS flavor
    Micro
    Minimal
    Full
  • Hostname
  • IP Config
    Static or DHCP with DNS settings and such
  • User Config
    setting root password
    enable ssh login for root

Unable to build bzip2 + perl toolchain

Same errors for both bzip2 + perl

2015-06-17 12:09:38,555 - build-perl - INFO - --------------------------------------------------------------------------
2015-06-17 12:09:38,557 - build-perl - INFO - Staring Log
2015-06-17 12:09:38,558 - build-perl - INFO - --------------------------------------------------------------------------
2015-06-17 12:09:38,573 - build-perl - DEBUG - Created new chroot: /root/photon/stage/build-perl
2015-06-17 12:09:38,574 - build-perl - INFO - Installing toolchain.....
2015-06-17 12:09:38,576 - build-perl - INFO - Preparing build environment
2015-06-17 12:09:40,161 - build-perl - ERROR - Prepare build root script failed.Unable to prepare chroot.
2015-06-17 12:09:40,162 - build-perl - DEBUG - Deleting chroot: /root/photon/stage/build-perl
2015-06-17 12:09:40,259 - build-perl - INFO - Successfully destroyed chroot:/root/photon/stage/build-perl
2015-06-17 12:09:40,259 - build-perl - ERROR - Failed while building package:perl
2015-06-17 12:09:40,260 - build-perl - ERROR - cannot concatenate 'str' and 'NoneType' objects
2015-06-17 12:10:35,560 - build-perl - INFO - --------------------------------------------------------------------------
2015-06-17 12:10:35,562 - build-perl - INFO - Staring Log
2015-06-17 12:10:35,563 - build-perl - INFO - --------------------------------------------------------------------------
^[[5~2015-06-17 12:03:57,025 - build-gettext - INFO - Successfully built the package:gettext
2015-06-17 12:03:57,672 - build-gettext - INFO - Successfully destroyed chroot:/root/photon/stage/build-gettext
2015-06-17 12:03:57,673 - PackageManager - INFO - Waiting to acquire scheduler lock
2015-06-17 12:03:57,673 - PackageManager - INFO - Released scheduler lock
2015-06-17 12:03:57,673 - PackageManager - INFO - Thread WorkerThread7 is going to rest

g2015-06-17 12:05:15,659 - build-openssl - INFO - Successfully built the package:openssl
2015-06-17 12:05:16,201 - build-openssl - INFO - Successfully destroyed chroot:/root/photon/stage/build-openssl
2015-06-17 12:05:16,202 - PackageManager - INFO - Waiting to acquire scheduler lock
2015-06-17 12:05:16,202 - PackageManager - INFO - Released scheduler lock
2015-06-17 12:05:16,203 - PackageManager - INFO - Thread WorkerThread6 is going to rest
2015-06-17 12:05:16,203 - PackageManager - ERROR - Some of the packages failed:
2015-06-17 12:05:16,204 - PackageManager - ERROR - ['bzip2']
Building toolchain...
Clean directory: /mnt/photonroot: SUCCESS
Removing existing symlink: /tools: SUCCESS
Creating directory: /mnt/photonroot/tools: SUCCESS
Symlink: /mnt/photonroot/tools to /tools: SUCCESS
Install build system:
        Installing directories: SUCCESS
        Copying files: SUCCESS
        Copying files: SUCCESS
root@localhost:~/photon/stage/LOGS# cat build-bzip2.log 
2015-06-17 11:56:12,665 - build-bzip2 - INFO - --------------------------------------------------------------------------
2015-06-17 11:56:12,670 - build-bzip2 - INFO - Staring Log
2015-06-17 11:56:12,671 - build-bzip2 - INFO - --------------------------------------------------------------------------
2015-06-17 11:56:12,698 - build-bzip2 - DEBUG - Created new chroot: /root/photon/stage/build-bzip2
2015-06-17 11:56:12,708 - build-bzip2 - INFO - Installing toolchain.....
2015-06-17 11:56:12,709 - build-bzip2 - INFO - Preparing build environment
2015-06-17 11:56:14,210 - build-bzip2 - ERROR - Prepare build root script failed.Unable to prepare chroot.
2015-06-17 11:56:14,211 - build-bzip2 - DEBUG - Deleting chroot: /root/photon/stage/build-bzip2
2015-06-17 11:56:14,280 - build-bzip2 - ERROR - Unable to destroy chroot:/root/photon/stage/build-bzip2.Unknown error.
2015-06-17 11:56:14,280 - build-bzip2 - ERROR - Failed while building package:bzip2
2015-06-17 11:56:14,280 - build-bzip2 - ERROR - cannot concatenate 'str' and 'NoneType' objects

In the older source code version while building rpms i am getting the following errors

Building package...... zlib
Spec file for package: zlib is /home/photon/nss-nspr-rpm/photon/SPECS/zlib/zlib.spec
Source path :zlib-1.2.8.tar.xz Source filename: /home/photon/nss-nspr-rpm/photon/stage/SOURCES/zlib-1.2.8.tar.xz
Building RPM... /usr/src/photon/SPECS/zlib.spec
Building rpm is failed
Building rpm is failed /usr/src/photon/SPECS/zlib.spec

Detailed logs show:-

gcc -O3 -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -o example64 example64.o -L. libz.a
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:170: recipe for target 'example' failed
make: *** [example] Error 1
make: *** Waiting for unfinished jobs....
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:182: recipe for target 'example64' failed
make: *** [example64] Error 1
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
/tools/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:173: recipe for target 'minigzip' failed
make: *** [minigzip] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.1pLlZp (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.1pLlZp (%build)

Which script or the make file is responsible for the following actions?

photon@jobin-vm:~/photon-master$ sudo make iso
json_pp -t null < installer/package_list.json >/dev/null 2>&1 || { echo "Invalid installer/package_list.json. Aborting" >&2; exit 1; }
Creating staging folder...
/bin/mkdir -p /home/photon/photon-master/stage
Creating chroot path...
/bin/mkdir -p /mnt/photonroot
Building RPMS folders...
Building SOURCES folder...
Building LOGS folder...
Pulling publish rpms from bintray...
2015-06-22 14:59:36 URL:https://akamai.bintray.com/e2/e202df3be9bc8c70dfb17ec40ccdd0bf4e8b6afa?__gda__=exp=1434966093~hmac=396d6c35930d835b24a1936e15387f0f7d5e73142fa7e2be922de1f4a15fa856&response-content-disposition=attachment%3Bfilename%3D%22python2-devel-2.7.9-1.x86_64.rpm%22 [1081672/1081672] -> "/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/python2-devel-2.7.9-1.x86_64.rpm" [1]
2015-06-22 14:59:40 URL:https://akamai.bintray.com/db/db42e5aa5384f4ca6a8f26f7a1d454c373467fbc?__gda__=exp=1434966098~hmac=754146fd05097920e1211b6af37c759ce8b9d25f2fb848cb006abe86814bf6e5&response-content-disposition=attachment%3Bfilename%3D%22nss-devel-3.15.4-1.x86_64.rpm%22 [464165/464165] -> "/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/nss-devel-3.15.4-1.x86_64.rpm" [1]
2015-06-22 14:59:46 URL:https://akamai.bintray.com/4b/4b63ff337d96b595d8edcb6e81e0d4c2bc7eb039?__gda__=exp=1434966103~hmac=c122db4ad6646fdd017dec54029a3c12df16de948493c463cbf0775bf23c700c&response-content-disposition=attachment%3Bfilename%3D%22tar-1.27.1-1.x86_64.rpm%22 [1130147/1130147] -> "/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/tar-1.27.1-1.x86_64.rpm" [1]
2015-06-22 14:59:48 URL:https://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/x86_64/libpipeline-1.2.6-1.x86_64.rpm?expiry=1434965402526&signature=Kz14%2BstrEhqXug63XYU02pwrJRXg8ljigNVw%2BRlPKO0CjfKKLHgjDQrCFoLNWdpPLXFaakYf2vyN4VhCV9A2BA%3D%3D [47863/47863] -> "/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/libpipeline-1.2.6-1.x86_64.rpm" [1]
2015-06-22 14:59:54 URL:https://akamai.bintray.com/ec/ec3bdab2925bbc401ba1f248a2bc949130a82598?__gda__=exp=1434966111~hmac=db533a9984bc3cd84537f66adf27079c866b8fd66bf988b387b20d953853ba85&response-content-disposition=attachment%3Bfilename%3D%22linux-api-headers-3.19.2-1.noarch.rpm%22 [1042696/1042696] -> "/home/photon/photon-master/stage/PUBLISHRPMS/noarch/linux-api-headers-3.19.2-1.noarch.rpm" [1]
2015-06-22 14:59:56 URL:https://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/x86_64/expat-2.1.0-1.x86_64.rpm?expiry=1434965410418&signature=L75%2FFEQ9fbzmfnzzvyrO3bhywnObD90v27oFC1Lju1WWmGQq15xYW%2BQKT5gYb8VTDF%2BpfCfzrWaODJHZeiq%2FRg%3D%3D [90044/90044] ->
"/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/expat-2.1.0-1.x86_64.rpm" [1]
2015-06-22 15:00:01 URL:https://akamai.bintray.com/f6/f69baf59515bf1ef42c4272b24c8a18bbae0626f?__gda__=exp=1434966119~hmac=ad7c05203bebc9590d9e90d0e47b8a2c87c41f7a8480c15de169069b2d02b258&response-content-disposition=attachment%3Bfilename%3D%22make-4.0-1.x86_64.rpm%22 [349483/349483] -> "/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/make-4.0-1.x86_64.rpm" [1]
2015-06-22 15:00:06 URL:https://akamai.bintray.com/70/70743d1e7df42ba040761538b061d0a1ec1d6a8a?__gda__=exp=1434966124~hmac=422252a08e6905db129d46239858bf2e0e7c168966cb8036ea60fc0eb0209044&response-content-disposition=attachment%3Bfilename%3D%22libstdc%2B%2B-4.8.2-1.x86_64.rpm%22 [307564/307564] -> "/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/libstdc++-4.8.2-1.x86_64.rpm" [1]
2015-06-22 15:00:08 URL:https://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/x86_64/sed-4.2.2-1.x86_64.rpm?expiry=1434965422520&signature=fdjtXQUjypg5hmFEviRqKMQ3JHo8sdwYDqMaVwV%2FNC1oC5BC4W0uBC20TXKW%2B1LNJgk8bSkUrDKVoYi1i1%2BLxA%3D%3D [38743/38743] -> "/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/sed-4.2.2-1.x86_64.rpm" [1]
2015-06-22 15:00:11 URL:https://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/x86_64/libgcc-4.8.2-1.x86_64.rpm?expiry=1434965425278&signature=YZMwGxKLpBjp2S2Faz7ZNYAZUH1duUpDc9W8MxaDLhHZtkq0Ec60IO3YTINZiusVhXWU%2FNl9BYVrYZ2AG%2ByEBA%3D%3D [46434/46434] -> "/home/photon/photon-master/stage/PUBLISHRPMS/x86_64/libgcc-4.8.2-1.x86_64.rpm" [1]

I mean please tell me the script that leads to downloads of these x86_64 packages , i have found out the script which builds mktools.sh but unable to find script that downloads x86_64

Live migration by Photon

I'd like to know if we can use Photon to do container migration? And can Photon work with openstack?

Or if there's any issue/PR related to that?

Hardcoded hostname in /etc/sysconfig/network

Regardless of the hostname selected during install, the /etc/sysconfig/network file contains HOSTNAME=photon.eng.vmware.com which does not seem correct.

Is /etc/sysconfig/network even used in Photon? There is also /etc/hostname, which is manipulated by hostnamectl

vmhgfs

I feel like I'm missing something here... I can't seem to mount a directory from Windows through VMware Player into Photon. open-vm-tools.spec certainly seems to imply that it should be doable.

Here's what I did:

  • create a vm with a share called "test"
  • minimal photon install
  • systemctl enable vmtoolsd
  • systemctl start vmtoolsd
  • mkdir /mnt/test
  • vmware-hgfsclient
    • show the share I have configured in VMware Player
  • /usr/sbin/mount.vmhgfs .host:/ /mnt/test
    • Error: cannot mount filesystem: No such device
  • /usr/sbin/mount.vmhgfs .host:/ /mnt/test-directory-does-not-exist
    • Error: cannot canonicalize mount point: No such file or directory
  • /usr/sbin/mount.vmhgfs -v .host:/ /mnt/test
    • Original command line: "/usr/sbin/mount.vmhgfs -v .host:/ /mnt/test"
    • Host component of share name is ".host"
    • Directory component of share name is "/"
    • Error: cannot mount filesystem: No such device

It seems like all the components are there, but it's just missing some magic glue...

Issues with compling photon through make file in ubuntu os.

I wanted to compile photon on my 64 bit ubuntu os , when i executed the make command , there were some missing packages which were to be imported after that when i again executed make then compiling was unsuccessful showing this:-

anirudh@ubuntu:~/Downloads/photon-master$ make
Pulling sources from bintary...
Downloading sha1-all...
Traceback (most recent call last):
File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 101, in
p.pull(args[0])
File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 78, in pull
package_file_path = self.downloadFile(sources_dir, 'sha1-all')
File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 61, in downloadFile
with open(file_path, 'wb') as handle:
IOError: [Errno 2] No such file or directory: '/home/anirudh/Downloads/photon-master/stage/SOURCES/sha1-all'
make: *** [sources] Error 1

please provide a solution as soon as possible , so that i can compile successfully.

24 character limit for hostname?

I noticed we limit the "hostname" configuration to 24 characters, why is that?

For hostname, I normally specify FQDN and I was trying to use the following:
photon.primp-industries.com

screen shot 2015-04-20 at 3 15 45 pm

Unable to build gcc in tool chain (build iso)

Thanks to @dthaluru for the previous fix, however, it seems that the tool-chain fails at GCC copying.

2015-06-17 10:53:09,883 - Toolchain Utils - INFO - Successfully installed all Tool Chain RPMS in Chroot:/root/photon/stage/build-core-toolchain
2015-06-17 10:53:09,884 - Toolchain Utils - INFO - Building rpm's for package:libgcc
2015-06-17 10:53:09,889 - Toolchain Utils - INFO - Copying... Source path :gcc-4.8.2.tar.bz2 Source filename: /root/photon/stage/SOURCES/gcc-4.8.2.tar.bz2
2015-06-17 10:55:13,342 - Toolchain Utils - ERROR - Building rpm is failed /usr/src/photon/SPECS//gcc.spec
2015-06-17 10:55:13,345 - Toolchain Utils - ERROR - Failed while building rpm:libgcc
2015-06-17 10:55:13,369 - Toolchain Utils - ERROR - Unable to build tool chain.
2015-06-17 10:55:17,325 - Toolchain Utils - INFO - Successfully destroyed chroot:/root/photon/stage/build-core-toolchain
2015-06-17 10:55:17,326 - PackageManager - ERROR - Unable to build tool chain
2015-06-17 10:55:17,326 - PackageManager - ERROR - RPM Build failed
Building toolchain...
Clean directory: /mnt/photonroot: SUCCESS
Removing existing symlink: /tools: SUCCESS
Creating directory: /mnt/photonroot/tools: SUCCESS
Symlink: /mnt/photonroot/tools to /tools: SUCCESS
Install build system: 
        Installing directories: SUCCESS
        Copying files: SUCCESS
        Copying files: SUCCESS
        Copying files: SUCCESS
Building Tool chain
build-binutils1: Building
        Clean build directory: SUCCESS
        Change directory: BUILD: SUCCESS
        Unpacking: binutils-2.25: SUCCESS
        Change directory: binutils-2.25: SUCCESS
        Create work directory: SUCCESS
        Change directory: ../build: SUCCESS
        Configure: SUCCESS
        Make: SUCCESS
                Create symlink for amd64: SUCCESS
        Install: SUCCESS
        Restore directory: SUCCESS
        Restore directory: SUCCESS
        Restore directory: SUCCESS
build-gcc1: Building
        Clean build directory: SUCCESS
        Change directory: BUILD: SUCCESS
        Create work directory: SUCCESS
        Unpacking: gcc-4.8.2: SUCCESS
        Unpacking: mpfr-3.1.2: SUCCESS
        Unpacking: gmp-5.1.3: SUCCESS
        Unpacking: mpc-1.0.2: SUCCESS
        Change directory: gcc-4.8.2: SUCCESS
        Symlinking gmp: SUCCESS
        Symlinking mpc: SUCCESS
        Symlinking mpfr: SUCCESS
        Fixing headers: SUCCESS
        sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure: SUCCESS
        Change directory: ../build: SUCCESS
        Configure: SUCCESS
        Make: 
FAILURE
Makefile:115: recipe for target '/root/photon/stage/tools-build.tar' failed
make: *** [/root/photon/stage/tools-build.tar] Error 2
root@localhost:~/photon# 
root@localhost:~/photon/stage/SOURCES# ls | grep gcc
gcc-4.8.2.tar.bz2

Hardcoded LOG_PATH failing build

Hardcoded LOG_PATH in support/package-builder/prepare-build-root.sh causing build scripts to exit early if passing in a non-standard LOG_PATH value to build_package.py or prepare-build-root.sh

Running docker as non-sudo, add photon user to docker group

Although this isn't a huge change, it's still something worth adding -

  • Create the 'docker' group
  • Add the 'docker' group to the 'photon' user

This will allow the docker daemon on bind to allow read/write to the Unix socket by the group 'docker' - Essentially allowing your 'photon' user to run docker ps instead of having to sudo it all.

Bootstrap Guide inside VMWare vSphere

Hello, It would be great to have a SIMPLE bootstrap guide for VMWare vSphere where I can bootstrap a small cluster.
Also It would be great if this would work on VMWare vSphere Essentials, where I don't specify compute clusters on top of VMWare.

/tmp sizing

Hi folks, I was installing lattice on photon, which writes a lot of stuff to /tmp . However, in my default install of photon, /tmp is sized at 174M, and the lattice installer runs out of space in /tmp, despite my main partition having plenty of free space.

Changing the size of the /tmp directory did not seem to be as simple as changing /etc/fstab . Grepping around it seemed like maybe I could change /etc/mtabs , but the file was read-only, so I wasn't sure if it was auto-generated.

So two questions:

  • why is the default for /tmp so small?
  • what is the recommended route to change this?

thanks

Use Python 3 instead of Python 2

Python 2 is nearing EOL (formal cut off is 2020, last formal release is in June). Python 3 has been out since 2008 and is actively developed. The Python community encourages moving to the actively maintained and supported release of Python (Python 3) as soon as possible.

Photon's Python packages are mostly Python 3 ready, as shown below in this non-exhaustive list:

Package Py3 ready?
PyYAML Yes
cloud-init Yes
cracklib Yes
createrepo No (migrated to C)
deltarpm Yes
dparted ??? (can't find sources)
git Yes
glib Yes
gobject-introspection Yes
google-daemon ???
google-startup-scripts ???
gtk-doc Yes
hawkey Yes
itstool Yes
libgsystem Yes
libhif Yes
libselinux Yes
librepo Yes
libxml2 Yes
krb5 Yes
mercurial Yes
pycurl Yes
pygobject Yes
python-configobj Yes
python-iniparse Yes
python-jsonpatch Yes
python-jsonpointer Yes
python-prettytable Yes
python-requests Yes
python-setuptools Yes
python-six Yes
rpm Yes
urlgrabber Yes

The Fedora Project, for instance, has put a lot of effort into migrating its Python packages (and subpackages) to support Python 3, and I imagine you can leverage that to move forward relatively quickly.

Please don't keep it stuck in Python 2 when Python 3 is more than mature, and has nearly all of the popular libraries and toolkits ported over already.

The biggest change would be the move from yum to dnf, which is already deemed the successor to yum anyway (and works on Python 2 environments as well).

Admittedly, I've only glanced at the installer code, but it looks like it shouldn't be tough to bring over to Python 3, either.

tdnf could not install rkt inside photon container

After building micro and full version of the docker image, running photon:full I can get docker to run, but not rkt.

sudo docker run --privileged -it photon:full
root [ / ]# docker ps
FATA[0000] Get http:///var/run/docker.sock/v1.17/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
root [ / ]# docker -d &
[1] 11
root [ / ]# INFO[0000] +job serveapi(unix:///var/run/docker.sock)
INFO[0000] +job init_networkdriver()
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
INFO[0000] -job init_networkdriver() = OK (0)
INFO[0000] WARNING: mountpoint for memory not found
INFO[0000] Loading containers: start.
INFO[0000] Loading containers: done.
INFO[0000] docker daemon: 1.5.0 a8a31ef; execdriver: native-0.2; graphdriver: aufs
INFO[0000] +job acceptconnections()
INFO[0000] -job acceptconnections() = OK (0)

root [ / ]# docker ps
INFO[0008] GET /v1.17/containers/json
INFO[0008] +job containers()
INFO[0008] -job containers() = OK (0)
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
root [ / ]#

Rocket

root [ / ]# tdnf install rocket
Error: Failed to synchronize cache for repo 'VMWare Photon Linux 1.0(x86_64)' from 'file:///media/cdrom/usr/src/photon/RPMS'
Disabling Repo: 'VMWare Photon Linux 1.0(x86_64)'
Installing:
 rocket x86_64  v0.5.1-1
Is this ok [y/N]:y
Error during download: 19: Cannot download x86_64/rocket-v0.5.1-1.x86_64.rpm: All mirrors were tried
Error(1622) : Invalid argument
root [ / ]#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.