From: Jan Kiszka <[email protected]>

Add the target-specific Jailhouse bash_history and some changes to make
Ethernet as well as ivshmem-net work. Wireless requires a network
specific config that the user has to create/install manually.

Signed-off-by: Jan Kiszka <[email protected]>
---
 recipes-core/customizations/files/.bash_history-nuc6cay | 13 +++++++++++++
 recipes-core/customizations/files/ethernet              |  4 ++++
 recipes-core/customizations/files/ivshmem-net           |  6 ++++++
 recipes-core/customizations/files/postinst-nuc6cay      |  1 +
 4 files changed, 24 insertions(+)
 create mode 100644 recipes-core/customizations/files/.bash_history-nuc6cay
 create mode 100644 recipes-core/customizations/files/postinst-nuc6cay

diff --git a/recipes-core/customizations/files/.bash_history-nuc6cay 
b/recipes-core/customizations/files/.bash_history-nuc6cay
new file mode 100644
index 0000000..a9b934c
--- /dev/null
+++ b/recipes-core/customizations/files/.bash_history-nuc6cay
@@ -0,0 +1,13 @@
+jailhouse enable /etc/jailhouse/nuc6cay.cell
+jailhouse console
+jailhouse cell create /etc/jailhouse/apic-demo.cell
+jailhouse cell load apic-demo /usr/libexec/jailhouse/demos/apic-demo.bin \
+                    -s "con-virtual" -a 0x1000
+jailhouse cell start apic-demo
+jailhouse cell stats apic-demo
+jailhouse cell destroy apic-demo
+jailhouse cell linux /etc/jailhouse/linux-nuc6cay-demo.cell /boot/vmlinuz* \
+                     -i /usr/libexec/jailhouse/demos/rootfs.cpio \
+                     -c "console=jailhouse console=tty0 8250.nr_uarts=0 
ip=192.168.19.2"
+ssh 192.168.19.2
+jailhouse disable
diff --git a/recipes-core/customizations/files/ethernet 
b/recipes-core/customizations/files/ethernet
index 237f8c5..9db3add 100644
--- a/recipes-core/customizations/files/ethernet
+++ b/recipes-core/customizations/files/ethernet
@@ -1,8 +1,12 @@
 allow-hotplug eth0
 allow-hotplug enp0s2
+allow-hotplug enp3s0
 
 # used on qemuarm64 and orangepi-zero
 iface eth0 inet dhcp
 
 # used on qemuamd64
 iface enp0s2 inet dhcp
+
+# used on nuc6cay
+iface enp3s0 inet dhcp
diff --git a/recipes-core/customizations/files/ivshmem-net 
b/recipes-core/customizations/files/ivshmem-net
index 25a63fa..a766368 100644
--- a/recipes-core/customizations/files/ivshmem-net
+++ b/recipes-core/customizations/files/ivshmem-net
@@ -1,4 +1,5 @@
 allow-hotplug enp0s14
+allow-hotplug enp0s16
 allow-hotplug enp0s0
 allow-hotplug enP1p0s0
 
@@ -7,6 +8,11 @@ iface enp0s14 inet static
        address 192.168.19.1
        netmask 255.255.255.0
 
+# used on NUC6CAY
+iface enp0s16 inet static
+       address 192.168.19.1
+       netmask 255.255.255.0
+
 # used on virtual PCI bus, domain 0000
 iface enp0s0 inet static
        address 192.168.19.1
diff --git a/recipes-core/customizations/files/postinst-nuc6cay 
b/recipes-core/customizations/files/postinst-nuc6cay
new file mode 100644
index 0000000..2dde661
--- /dev/null
+++ b/recipes-core/customizations/files/postinst-nuc6cay
@@ -0,0 +1 @@
+# Nothing to do
-- 
2.16.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to