Commit c523473f authored by Vincenzo Do's avatar Vincenzo Do
Browse files

Pushing new guest images

parent 2f492f5a
This repository contains some virtual machines for a KVM on ARM Hypervisor
......@@ -47,7 +47,7 @@ function kernel_fetch() {
}
function kernel_configure() {
if [[ -e ".config" ]]
then
echo
......@@ -60,21 +60,21 @@ function kernel_configure() {
fi
fi
echo "Configuring kernel..."
# default config target set ?
if [[ ! -z "$KERNEL_DEFCONFIG" ]]
if [[ -e ".config" ]]
then
echo "Applying ${KERNEL_DEFCONFIG}..."
make ${KERNEL_DEFCONFIG}
echo
echo "A .config file already exists in linux source directory."
read -p "Do you want to restore the default kernel configuration (your modifications will be lost) ? [y/n]: " -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
return
fi
fi
# default config file set ?
if [[ ! -z "$KERNEL_CONFIG_FILE" ]]
then
echo "Copying ${KERNEL_CONFIG_FILE} configuration file.."
cp ../${KERNEL_CONFIG_FILE} .config
fi
}
......
#!/bin/bash
#######
# Change according to your system configuration...
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
BUILD_NB_THREADS=8
#######
# No need to modify these variables
KERNEL_BUILD_DIR=linux-3-10-src
KERNEL_GIT_SRC=git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
KERNEL_GIT_BRANCH=origin/linux-3.10.y
KERNEL_DEFCONFIG=vexpress_defconfig
KERNEL_CONFIG_FILE=linux-config-vexpress-a15
INST_PATH=linux-bins-initrd
MODULES_INST_PATH=${INST_PATH}/modules
DTB_FILE=${KERNEL_BUILD_DIR}/arch/arm/boot/dts/vexpress-v2p-ca15-tc1.dtb
# include commeon kernel guest build file
source ../../build_guest_common_functions.sh
# execute main function
main
#!/bin/bash
echo "Deleting folders..."
echo "rm -rf linux-3-10-src"
rm -rf linux-3-10-src
echo "rm -rf linux-bins-sd"
rm -rf linux-bins-sd
<domain type='kvm'>
<name>linux310</name>
<memory unit='KiB'>131072</memory>
<currentMemory unit='KiB'>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='armv7l' machine='vexpress-a15'>hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-10/zImage</kernel>
<initrd>/var/lib/libvirt/images/linux-3-10/rootfs-buildroot.cpio.gz</initrd>
<cmdline>console=ttyAMA0 mem=128M</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-10/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<interface type='network'>
<source network='default'/>
<model type='lan9118'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
<domain type='kvm'>
<name>linux310-nfs</name>
<memory unit='KiB'>131072</memory>
<currentMemory unit='KiB'>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='armv7l' machine='vexpress-a15'>hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-10/zImage</kernel>
<cmdline>console=ttyAMA0 mem=128M root=/dev/nfs nfsroot=192.168.1.15:/workspace/nfs-rootfs/linux310 rw ip=192.168.1.31</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-10/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<interface type='bridge'>
<source bridge='br0'/>
<model type='lan9118'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
<domain type="kvm">
<name>linux310-sd</name>
<memory>131072</memory>
<currentMemory>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="armv7l" machine="vexpress-a15">hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-10/zImage-sd</kernel>
<cmdline>console=ttyAMA0 mem=128M root=/dev/mmcblk0p1 rw rootfstype=ext3</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-10/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/linux-3-10/rootfs.qcow2' />
<target bus='sd' dev='sda'/>
</disk>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<interface type='bridge'>
<source bridge='br0'/>
<model type='lan9118'/>
</interface>
</devices>
</domain>
<domain type="kvm">
<name>linux310-sd</name>
<memory>131072</memory>
<currentMemory>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="armv7l" machine="vexpress-a15">hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-10/zImage-sd</kernel>
<cmdline>console=ttyAMA0 mem=128M root=/dev/mmcblk0p1 rw rootfstype=ext3</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-10/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/linux-3-10/rootfs.qcow2' />
<target bus='sd' dev='sda'/>
</disk>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<interface type='network'>
<source network='default'/>
</interface>
</devices>
</domain>
This diff is collapsed.
<domain type='kvm'>
<name>linux310</name>
<memory unit='KiB'>131072</memory>
<currentMemory unit='KiB'>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='armv7l' machine='vexpress-a15'>hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-12/zImage</kernel>
<initrd>/var/lib/libvirt/images/linux-3-12/rootfs-buildroot.cpio.gz</initrd>
<cmdline>console=ttyAMA0 mem=128M</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-12/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<interface type='network'>
<source network='default'/>
<model type='lan9118'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
<domain type='kvm'>
<name>linux310-nfs</name>
<memory unit='KiB'>131072</memory>
<currentMemory unit='KiB'>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='armv7l' machine='vexpress-a15'>hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-12/zImage</kernel>
<cmdline>console=ttyAMA0 mem=128M root=/dev/nfs nfsroot=192.168.1.15:/workspace/nfs-rootfs/linux310 rw ip=192.168.1.31</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-12/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<interface type='bridge'>
<source bridge='br0'/>
<model type='lan9118'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
<domain type="kvm">
<name>linux312-sd</name>
<memory>131072</memory>
<currentMemory>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="armv7l" machine="vexpress-a15">hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-12/zImage-sd</kernel>
<cmdline>console=ttyAMA0 mem=128M root=/dev/mmcblk0p1 rw rootfstype=ext3</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-12/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/linux-3-12/rootfs.qcow2' />
<target bus='sd' dev='sda'/>
</disk>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<interface type='bridge'>
<source bridge='br0'/>
<model type='lan9118'/>
</interface>
</devices>
</domain>
<domain type="kvm">
<name>linux312-sd</name>
<memory>131072</memory>
<currentMemory>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="armv7l" machine="vexpress-a15">hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-12/zImage-sd</kernel>
<cmdline>console=ttyAMA0 mem=128M root=/dev/mmcblk0p1 rw rootfstype=ext3</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-12/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/linux-3-12/rootfs.qcow2' />
<target bus='sd' dev='sda'/>
</disk>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<interface type='network'>
<source network='default'/>
</interface>
</devices>
</domain>
......@@ -3,15 +3,15 @@
#######
# Change according to your system configuration...
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export CROSS_COMPILE=/home/vince/Documents/Master/S2/PA/env/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
BUILD_NB_THREADS=8
#######
# No need to modify these variables
KERNEL_BUILD_DIR=linux-3-10-src
KERNEL_BUILD_DIR=linux-3-19-src
KERNEL_GIT_SRC=git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
KERNEL_GIT_BRANCH=origin/linux-3.10.y
KERNEL_GIT_BRANCH=origin/linux-3.19.y
KERNEL_DEFCONFIG=vexpress_defconfig
KERNEL_CONFIG_FILE=linux-config-vexpress-a15-sdcard
INST_PATH=linux-bins-sd
......
......@@ -9,9 +9,9 @@ BUILD_NB_THREADS=8
# No need to modify these variables
KERNEL_BUILD_DIR=linux-3-12-src
KERNEL_BUILD_DIR=linux-3-19-src
KERNEL_GIT_SRC=git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
KERNEL_GIT_BRANCH=origin/linux-3.12.y
KERNEL_GIT_BRANCH=origin/linux-3.19.y
KERNEL_DEFCONFIG=vexpress_defconfig
KERNEL_CONFIG_FILE=linux-config-vexpress-a15-sdcard
INST_PATH=linux-bins-sd
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment