Uml

Install Fedora 21 alpha on UML

Download the Fedora 21 alpha ISO image E.g. the Server variant here: https://fedoraproject.org/get-prerelease#server Extract the initrd image from the ISO image Mount the ISO image as loop device losetup /dev/loop0 /path/to/Fedora-Server-netinst-x86_64-21_Alpha.iso and mount the loop device mount /dev/loop0 /mnt Copy the initial ramdisk image from the ISO image cp /mnt/isolinux/initrd.img /target/dir Patch the UML kernel This is needed because the initrd image finds the squashfs in the ISO image only, when no root parameter is passed as kernel command line option.

User Mode Linux (UML), systemd and Fedora cloud image

Create a system user „uml“ with home directory /home/uml/ Add systemd unit file for uml under /etc/systemd/system/uml@.service # Systemd unit file for an UML instance [Unit] Description=User Mode Linux [Service] Type=simple WorkingDirectory=/home/uml/ Environment=HOME=/home/uml TEMP=/dev/shm/ UMID=fedora23-%i IID=%i ExecPreStart=/home/uml/cloud.sh ExecStart=/home/uml/linux mem=1280M umid=${UMID} eth0=tuntap,,,192.168.10.${IID} ubd0=${UMID}/Fedora23-Root.cow,images/Fedora-Cloud-Base-23-20151030.x86_64.raw ubd1=${UMID}/cloud-config.iso root=/dev/ubda1 ds=nocloud LANG=de_DE.utf8 plymouth.enable=0 stderr=1 con=pts ExecStop=/usr/bin/uml_mconsole ${UMID} halt ExecRestart=/usr/bin/uml_mconsole ${UMID} reboot User=uml SyslogIdentifier=uml [Install] WantedBy=multi-user.target Add a cloud.sh file under /home/uml/cloud.

Fedora 22 cloud images and User Mode Linux

Download the Fedora 22 raw cloud image Unpack the image with unxz Prepare a script the the cloud-init „NoCloud“ datasource ` 1. Download the Fedora 22 raw cloud image Unpack the image with unxz Prepare a script the the cloud-init „NoCloud“ datasource ` Change the variable $IMAGE_DIR, $UML_DIR and $CLOUD_CONFIG_DIR to your setup Save above script as cloud.sh and make it executable Start the script. The script will start 10 parallel UML instance from the same Fedora cloud base image