Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error : /usr/libexec/nomadbsd-setup commit returned with error code 1: "gpart autofill: no space left on device ; gpart add -t freebsd vtbd0 failed" #129

Open
Marietto2008 opened this issue Nov 16, 2022 · 7 comments

Comments

@Marietto2008
Copy link

Marietto2008 commented Nov 16, 2022

Hello.

I've created the NomadBSD image cloning your repo and following the instructions that I've found on top of my FreeBSD system (FreeBSD marietto 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64),issuing the following commands :

git clone --recursive https://github.com/nomadbsd/NomadBSD.git
./build all
pkg install textproc/markdown
./build -f zfs image

and then I've virtualized it with bhyve,using the following parameters :

bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H -A \
-s 0,hostbridge \
-s 1,virtio-blk,/home/marietto/bhyve/Files/nomadbsd-131R-80dec9b9.amd64.ufs.img,bootindex=1 \
-s 10,virtio-net,tap1 \
-s 11,virtio-9p,sharename=/ \
-s 29,fbuf,tcp=0.0.0.0:5901,w=1600,h=950,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \
vm0:1 < /dev/null & sleep 2 && vncviewer 0:1

Unfortunately I seen two problems :

  1. my mouse does not work : it means that I can't use it within NomadBSD virtualized inside the bhyve / vnc window because it does not respond

  2. its happened the error that you see below :

Screenshot_2022-11-17_00-27-10

I have also tried the zfs image version. This time I didn't see the "no space left device" error,but a different error,that you can see below :

Screenshot_2022-11-17_00-55-17

I've clicked on the error message with the keyboard and the error is gone,but I can't test the OS because my mouse does not work inside of it.

@mrclksr
Copy link
Member

mrclksr commented Nov 17, 2022

Hi @Marietto2008,

the image needs some extra space to expand. When you write it to a storage device, the setup will use the remaining space. When using VirtualBox, you would run VBoxManage modifyhd nomadbsd-x.y.z.vdi --resize 8000 after creating a VDI. In your case you can use truncate:

# truncate -s +8g nomadbsd-131R-80dec9b9.amd64.ufs.img

This will add 8G extra space to the image.

You can do the same with the ZFS image, albeit it has already completed the setup. Truncate the ZFS image, then boot the ZFS image and execute zpool online -e nomadbsd_zroot

Regarding the mouse problem:
Try to disable xhci

EDIT: Add -s flag to truncate

@Marietto2008
Copy link
Author

Marietto2008 commented Nov 17, 2022

I've truncated the ufs image with this command :

truncate -s +10g nomadbsd-131R-80dec9b9.amd64.ufs.img

and the error 2 is gone

I have removed this parameter from bhyve : -s 30,xhci,tablet \

and the mouse works great. There still be one error,that affects the ufs and the zfs version,the one you see below :

Screenshot_2022-11-17_11-59-05

@mrclksr
Copy link
Member

mrclksr commented Nov 17, 2022

Excellent!

The error is due to a missing sound card.

@Marietto2008
Copy link
Author

Marietto2008 commented Nov 17, 2022

I have a lot of sound cards on my system. On the picture below you can see all the channels I have. The one that's working on my host system is "USB audio" :

Screenshot_2022-11-17_12-24-48

between the bhyve parameters I have added a new parameter that emulates the sound card and that it always worked :

-s 13,hda,play=/dev/dsp,rec=/dev/dsp \

but this time it does not work within NomadBSD :

Screenshot_2022-11-17_12-23-26

I've opened a youtube video and I didn't hear any sound. In addition,the streaming is very very slow.

@Marietto2008
Copy link
Author

Marietto2008 commented Nov 19, 2022

I've almost fixed the sound bug,by adding this parameter :

hw.snd.default_unit=8

to the file /etc/sysctl.conf

now,when I open a youtube video within NomadOS,I can hear sounds. BUT the streaming speed is slow and the sound seems to be broken. So,there is still something to fix.

@bsdlme
Copy link
Member

bsdlme commented Nov 20, 2022

I'm not sure if bhyve is good enough to watch Youtube or maybe you need some additional parameters to bhyve?

@Marietto2008
Copy link
Author

yeah,maybe you are right. using the framebuffer could not be enough to have a decent video speed. Maybe I can passthru my nvidia 2080 ti graphic card from the host to the nomadOS vm and this will improve the speed. I will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants