summaryrefslogtreecommitdiffstats
path: root/external/meta-virtualization/wic
diff options
context:
space:
mode:
Diffstat (limited to 'external/meta-virtualization/wic')
-rw-r--r--external/meta-virtualization/wic/directdisk-bootloader-xen.cfg17
-rw-r--r--external/meta-virtualization/wic/directdisk-bootloader-xen.wks12
-rw-r--r--external/meta-virtualization/wic/directdisk-xen.wks10
3 files changed, 39 insertions, 0 deletions
diff --git a/external/meta-virtualization/wic/directdisk-bootloader-xen.cfg b/external/meta-virtualization/wic/directdisk-bootloader-xen.cfg
new file mode 100644
index 00000000..3ad76d6c
--- /dev/null
+++ b/external/meta-virtualization/wic/directdisk-bootloader-xen.cfg
@@ -0,0 +1,17 @@
+ALLOWOPTIONS 1
+DEFAULT boot
+TIMEOUT 10
+PROMPT 1
+SERIAL 0 115200
+
+UI vesamenu.c32
+menu title Select boot options
+menu tabmsg Press [Tab] to edit, [Return] to select
+
+LABEL boot
+ KERNEL mboot.c32
+ APPEND /xen.gz console=com1,vga com1=115200,8n1 --- /vmlinuz quiet console=hvc0 root=LABEL=root rw rootwait panic=10
+
+LABEL verbose
+ KERNEL mboot.c32
+ APPEND /xen.gz console=com1,vga com1=115200,8n1 loglvl=all guest_loglvl=all --- /vmlinuz quiet console=hvc0 earlyprintk=xen root=LABEL=root rw rootwait panic=10
diff --git a/external/meta-virtualization/wic/directdisk-bootloader-xen.wks b/external/meta-virtualization/wic/directdisk-bootloader-xen.wks
new file mode 100644
index 00000000..c34120a5
--- /dev/null
+++ b/external/meta-virtualization/wic/directdisk-bootloader-xen.wks
@@ -0,0 +1,12 @@
+# short-description: Create a 'pcbios' direct disk image with Xen hypervisor and bootloader config
+# long-description: Creates a partitioned legacy BIOS disk image to boot Xen
+# with a bootloader config that the user can directly dd to boot media.
+# Boot files are located on the first vfat partition.
+
+part /boot --source bootimg-biosxen --ondisk sda --label boot --active --align 1024
+
+# For the main partition, it can be useful to add additional space for VMs;
+# eg. increase partition size by appending: --size 10G
+part / --source rootfs --ondisk sda --use-uuid --fstype=ext4 --label root --align 1024
+
+bootloader --configfile="directdisk-bootloader-xen.cfg"
diff --git a/external/meta-virtualization/wic/directdisk-xen.wks b/external/meta-virtualization/wic/directdisk-xen.wks
new file mode 100644
index 00000000..d6ca46a4
--- /dev/null
+++ b/external/meta-virtualization/wic/directdisk-xen.wks
@@ -0,0 +1,10 @@
+# short-description: Create a 'pcbios' direct disk image with Xen hypervisor
+# long-description: Creates a partitioned legacy BIOS disk image to boot Xen
+# that the user can directly dd to boot media. Boot files are located on the
+# first vfat partition.
+
+part /boot --source bootimg-biosxen --ondisk sda --label boot --active --align 1024
+
+# For the main partition, it can be useful to add additional space for VMs:
+# eg. increase partition size by appending: --size 10G
+part / --source rootfs --ondisk sda --use-uuid --fstype=ext4 --label root --align 1024