Skip to content

Commit

Permalink
refactor(buildroot): add root password and change sev params
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyosodo committed Oct 1, 2024
1 parent 38d1636 commit 7d62122
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 10 additions & 0 deletions buildroot/linux/configs/cube_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,13 @@ BR2_PACKAGE_PROVIDES_HOST_OPENSSL="host-libopenssl"

BR2_PACKAGE_QUOTA=y
BR2_PACKAGE_QUOTATOOL=y

BR2_TARGET_GENERIC_PASSWD_SHA512=y
BR2_TARGET_GENERIC_PASSWD_METHOD="sha-512"

BR2_TARGET_ENABLE_ROOT_LOGIN=y
BR2_TARGET_GENERIC_ROOT_PASSWD="m2N2Lfno"

BR2_PACKAGE_HOST_MKPASSWD=y

BR2_PACKAGE_HTOP=y
6 changes: 2 additions & 4 deletions buildroot/qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function start_qemu(){
-cpu $CPU_TYPE \
-machine q35 \
-enable-kvm \
-boot d \
-netdev user,id=vmnic,hostfwd=tcp::6191-:80,hostfwd=tcp::6192-:443,hostfwd=tcp::6193-:3001,dns=8.8.8.8 \
-device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic,romfile= \
-nographic \
Expand Down Expand Up @@ -73,7 +72,6 @@ function start_cvm(){
-cpu $CPU_TYPE \
-machine q35 \
-enable-kvm \
-boot d \
-netdev user,id=vmnic,hostfwd=tcp::6191-:80,hostfwd=tcp::6192-:443,hostfwd=tcp::6193-:3001,dns=8.8.8.8 \
-device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic,romfile= \
-nographic \
Expand All @@ -84,9 +82,9 @@ function start_cvm(){
-drive if=pflash,format=raw,unit=0,file=$QEMU_OVMF_CODE,readonly=on \
-device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=198 \
-object memory-backend-memfd-private,id=ram1,size=$RAM,share=true \
-machine memory-encryption=sev0-cb42cb55-17d4-4da3-9321-d04b4961b0e4 \
-machine memory-encryption=sev0 \
-machine memory-backend=ram1,kvm-type=protected \
-object sev-snp-guest,id=sev0-cb42cb55-17d4-4da3-9321-d04b4961b0e4,cbitpos=51,reduced-phys-bits=1,discard=none,kernel-hashes=on \
-object sev-snp-guest,id=sev0,cbitpos=51,reduced-phys-bits=1,discard=none,kernel-hashes=on \
-append "$QEMU_APPEND_ARG"
}

Expand Down

0 comments on commit 7d62122

Please sign in to comment.