Problems with missing ttyv devices in BHyve?

Aryeh Friedman aryeh.friedman at gmail.com
Fri Oct 4 06:12:44 UTC 2013


petitecloud uses the second approach to how to connect but one of the minor
tweaks we have planned between 0.1.9 and 0.2 (0.1.9 is the last 0.1.X
version and will be released later today) is to mount the drive via
mdconfig and do a sed of /etc/ttys to the recommended fix that way when you
reboot after install it will allow at least one console session via
petitecloud alone (we have some ideas on the general issue but that's down
the road)


On Fri, Oct 4, 2013 at 1:38 AM, Peter Grehan <grehan at freebsd.org> wrote:

> Hi Craig,
>
>
>  A few questions for you.
>>
>> (1)  I want to get the same FreeNAS image working inside Bhyve and on
>> real hardware.
>>        In the source code for /sbin/init, when it parses /etc/ttys,
>>        if the entry does not exist, it prints out an error message about
>> not being able to find
>>        the tty entry to open it.
>>        Do you know if there is a way to specify an entry for /dev/ttyu2,
>> only if it
>>        exists, and not print out an error message otherwise?
>>
>
>  Not without modifying init :( This seems a very old Unix limitation.
>
>
>  (2)  Is it possible to connect to the console of the BHyve VM via
>> /dev/ttyu2
>>        or some other mechanism?  I would like to be able to connect to
>> the BHyve VM
>>        and use something like Expect or py-expect to execute console
>> commands in the VM,
>>        for automated testing.
>>
>
>  Not currently - the only options you have are to run bhyve under expect,
> or set up a network port and log in and run expect on commands.
>
>  I have what I think is a plan to fix this: maybe for 10.1.
>
> later,
>
> Peter.
>
>
> ______________________________**_________________
> freebsd-virtualization@**freebsd.org <freebsd-virtualization at freebsd.org>mailing list
> http://lists.freebsd.org/**mailman/listinfo/freebsd-**virtualization<http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization>
> To unsubscribe, send any mail to "freebsd-virtualization-**
> unsubscribe at freebsd.org <freebsd-virtualization-unsubscribe at freebsd.org>"
>


More information about the freebsd-virtualization mailing list