Skip to content

Commit 7cc8033

Browse files
committed
init with ubuntu 14.04.2
0 parents  commit 7cc8033

6 files changed

+59
-0
lines changed
9.89 MB
Binary file not shown.
Binary file not shown.
6.05 MB
Binary file not shown.
Binary file not shown.

ubuntu-xhyve-install

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
CHANNEL=${CHANNEL:-ubuntu}
4+
5+
LATEST=$(ls -r imgs/*.vmlinuz | head -n 1 | sed -e "s,.*${CHANNEL}.,," -e "s,-server-amd64.*,,")
6+
if [[ -z ${LATEST} ]]; then
7+
echo "Error: couldn't find anything to load locally."
8+
exit 1
9+
fi
10+
VERSION=${VERSION:-${LATEST}}
11+
12+
PAYLOAD=${CHANNEL}-${VERSION}-server-amd64
13+
14+
VMLINUZ=${PAYLOAD}.vmlinuz
15+
INITRD=${PAYLOAD}.initrd.gz
16+
ISO=${PAYLOAD}.iso
17+
SDA=${PAYLOAD}.sda.img
18+
19+
CMDLINE="earlyprintk=serial console=ttyS0"
20+
21+
MEMORY=${MEMORY:-1024}
22+
MEM="-m ${MEMORY}M"
23+
#SMP="-c 2"
24+
NET="-s 2:0,virtio-net"
25+
IMG_CD="-s 3,ahci-cd,imgs/${ISO}"
26+
IMG_HDD="-s 4,virtio-blk,imgs/${SDA}"
27+
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
28+
LPC_DEV="-l com1,stdio"
29+
30+
../xhyve/build/xhyve -A $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,imgs/$VMLINUZ,imgs/$INITRD,"$CMDLINE"

ubuntu-xhyve-run

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
CHANNEL=${CHANNEL:-ubuntu}
4+
5+
LATEST=$(ls -r imgs/*.vmlinuz | head -n 1 | sed -e "s,.*${CHANNEL}.,," -e "s,-server-amd64.*,,")
6+
if [[ -z ${LATEST} ]]; then
7+
echo "Error: couldn't find anything to load locally."
8+
exit 1
9+
fi
10+
VERSION=${VERSION:-${LATEST}}
11+
12+
PAYLOAD=${CHANNEL}-${VERSION}-server-amd64
13+
14+
VMLINUZ=${PAYLOAD}.vmlinuz-3.16.0-30-generic
15+
INITRD=${PAYLOAD}.initrd.img-3.16.0-30-generic
16+
ISO=${PAYLOAD}.iso
17+
SDA=${PAYLOAD}.sda.img
18+
19+
CMDLINE="earlyprintk=serial console=ttyS0 root=/dev/vda1 ro"
20+
21+
MEMORY=${MEMORY:-1024}
22+
MEM="-m ${MEMORY}M"
23+
#SMP="-c 2"
24+
NET="-s 2:0,virtio-net"
25+
IMG_HDD="-s 4,virtio-blk,imgs/${SDA}"
26+
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
27+
LPC_DEV="-l com1,stdio"
28+
29+
../xhyve/build/xhyve -A $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_HDD -f kexec,imgs/$VMLINUZ,imgs/$INITRD,"$CMDLINE"

0 commit comments

Comments
 (0)