mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
support /dev/vda as a disk as well as /dev/sda and mount one for xhyve run
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
0bb657c627
commit
5d199b9591
@ -10,8 +10,7 @@ start()
|
|||||||
{
|
{
|
||||||
ebegin "Configuring host block device"
|
ebegin "Configuring host block device"
|
||||||
|
|
||||||
# XXX this may change on other ports
|
DEV="$(ls /dev/[xv]da | head -1 | sed s@/dev/@@)"
|
||||||
DEV="sda"
|
|
||||||
DRIVE="/dev/${DEV}"
|
DRIVE="/dev/${DEV}"
|
||||||
SWAP="${DRIVE}1"
|
SWAP="${DRIVE}1"
|
||||||
DATA="${DRIVE}2"
|
DATA="${DRIVE}2"
|
||||||
|
1
xhyve/.gitignore
vendored
1
xhyve/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/build/
|
/build/
|
||||||
|
disk.img
|
||||||
|
@ -106,7 +106,10 @@ $(TARGET): $(TARGET).sym
|
|||||||
@echo strip $(notdir $@)
|
@echo strip $(notdir $@)
|
||||||
$(VERBOSE) $(ENV) $(STRIP) $(TARGET).sym -o $@
|
$(VERBOSE) $(ENV) $(STRIP) $(TARGET).sym -o $@
|
||||||
|
|
||||||
run: $(TARGET)
|
disk.img:
|
||||||
|
dd if=/dev/zero of=disk.img bs=4096 count=100k
|
||||||
|
|
||||||
|
run: $(TARGET) disk.img
|
||||||
./xhyverun.sh || true
|
./xhyverun.sh || true
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -14,7 +14,7 @@ else
|
|||||||
NET="-s 2:0,virtio-net"
|
NET="-s 2:0,virtio-net"
|
||||||
fi
|
fi
|
||||||
#IMG_CD="-s 3,ahci-cd,/somepath/somefile.iso"
|
#IMG_CD="-s 3,ahci-cd,/somepath/somefile.iso"
|
||||||
#IMG_HDD="-s 4,virtio-blk,/somepath/somefile.img"
|
IMG_HDD="-s 4,virtio-blk,disk.img"
|
||||||
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
|
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
|
||||||
RND="-s 5,virtio-rnd"
|
RND="-s 5,virtio-rnd"
|
||||||
LPC_DEV="-l com1,stdio"
|
LPC_DEV="-l com1,stdio"
|
||||||
|
Loading…
Reference in New Issue
Block a user