diff --git a/scripts/build-moby b/scripts/build-moby index 5c8fe589..6c197cd6 100755 --- a/scripts/build-moby +++ b/scripts/build-moby @@ -8,6 +8,6 @@ docker build -t zombie/os - < scripts/moby/Dockerfile cd dist mkdir -p moby cd moby -moby build ../../scripts/moby/rancheros +moby build -output kernel+initrd -output iso-bios ../../scripts/moby/rancheros.yml diff --git a/scripts/moby/rancheros.yml b/scripts/moby/rancheros.yml index e984a345..55ef6906 100644 --- a/scripts/moby/rancheros.yml +++ b/scripts/moby/rancheros.yml @@ -7,8 +7,8 @@ init: - zombie/os # - rancher/os-installer # - rancher/os-initrd -outputs: - - format: kernel+initrd - - format: iso-bios +#outputs: +# - format: kernel+initrd +# - format: iso-bios # - format: iso-efi # - format: gcp-img diff --git a/scripts/run-moby b/scripts/run-moby index 73752eee..d4ea5ed0 100755 --- a/scripts/run-moby +++ b/scripts/run-moby @@ -2,7 +2,7 @@ cd $(dirname $0)/../dist/moby -if [ "1" == "1" ]; then +if [ "1" == "2" ]; then linuxkit run -mem 2048 rancheros else qemu-system-x86_64 \ @@ -10,6 +10,10 @@ else -kernel ./rancheros-kernel \ -initrd ./rancheros-initrd.img \ -m 2048 \ + -device virtio-rng-pci \ + -smp 1 \ + -enable-kvm \ + -machine q35,accel=kvm:tcg \ -net nic,vlan=0,model=virtio \ -net user,vlan=0,hostfwd=tcp::3333-:22,hostname=rancher-moby \ -append 'printk.devkmsg=on rancher.debug=true rancher.password=rancher console=ttyS0 rancher.autologin=ttyS0 console=tty0 rancher.autologin=tty0 console=tty1 rancher.autologin=tty1 rancher.state.dev=LABEL=RANCHER_STATE rancher.state.autoformat=[/dev/sda,/dev/vda] rancher.rm_usr'