Re: Bhyve help

2020-05-05 Thread Michael Gmelin
You might want to read https://blog.grem.de/ayvn

It also covers using vm-bhyve to manage vms and will explain some things about 
configuring the network.

> On 6. May 2020, at 01:55, Brandon helsley  wrote:
> 
> Well how do i add a tap to the bridge the VM is on as well as my physical nic
> 
> Sent from Outlook Mobile
> 
> 
> From: Aryeh Friedman 
> Sent: Tuesday, May 5, 2020 5:02:50 PM
> To: Brandon helsley 
> Cc: freebsd-virtualization@freebsd.org ; 
> Robert Crowston 
> Subject: Re: Bhyve help
> 
> When setting up a VM you also need to add the tap it is on to the bridge as 
> well your physical NIC
> 
> On Tue, May 5, 2020 at 6:28 PM Brandon helsley 
> mailto:brandon.hels...@hotmail.com>> wrote:
> Bhyve gets me to Network installation: "some installation files were not 
> found on the boot volume. The next few screens will allow you to configure 
> networking so that they can be downloaded from the internet." This happens 
> after system components.
> 
> Sent from Outlook Mobile
> 
> From: Aryeh Friedman 
> mailto:aryeh.fried...@gmail.com>>
> Sent: Tuesday, May 5, 2020 4:08:10 AM
> To: Brandon helsley 
> mailto:brandon.hels...@hotmail.com>>
> Cc: 
> freebsd-virtualization@freebsd.org 
> mailto:freebsd-virtualization@freebsd.org>>;
>  Robert Crowston mailto:crows...@protonmail.com>>
> Subject: Re: Bhyve help
> 
> 
> 
> On Tue, May 5, 2020 at 6:00 AM Brandon helsley 
> mailto:brandon.hels...@hotmail.com>> wrote:
> The handbook only says vmm doesn't it. I got bhyve to start without virtio 
> kernel module as well as the if_tap but with vmm modules.
> 
> The handbook section on virtualization (FreeBSD host) is at best awful and 
> misleading your best guide is the bhyve man page (especially the examples 
> there) here is the modules I load for the same set up I recommended you try 
> as a advanced beginners lesson in virtualization and networking.   And an 
> example script for using them:
> 
> /boot/loader.conf:
> 
> kern.geom.label.disk_ident.enable="0"
> kern.geom.label.gptid.enable="0"
> opensolaris_load="YES"
> zfs_load="YES"
> ipfw_load="YES"
> ipdivert_load="YES"
> linux_load="YES"
> 
> In the real /boot/loader.conf the following are commented out because 
> PetiteCloud takes care of them when it loads but unless you want to get into 
> more advanced stuff (like how to install non-standard ports) you should 
> uncomment them.
> 
> vmm_load="YES"
> if_tap_load="YES"
> nmdm_load="YES"
> 
> The script to load the file server VM:
> 
> #!/bin/sh
> #
> # Generated by PetiteCloud 0.2.6
> #
> 
> ifconfig tap12 destroy
> ifconfig tap12 create
> ifconfig tap12 up
> sleep 5
> ifconfig bridge0 addm tap12 up
> bhyvectl --destroy --vm=b829e56e9b4289a1
> /usr/sbin/bhyve -c cores=4 -m 4096 -AI -H -P -w -g 0 -s 0:0,hostbridge -s 
> 1,virtio-net,tap12 -s 2,ahci-hd,/vms/import/win10  -s 
> 29,fbuf,tcp=0.0.0.0:5912,w=1920,h=1080 -s 30,xhci,tablet 
>  -s 31,lpc -l com1,/dev/nmdm12B -l 
> bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd 
> b829e56e9b4289a1&>/dev/null
> echo $!>/var/run/petitecloud/b829e56e9b4289a1
> sleep 10
> 
> I'm at this screen:please choose the appropriate terminal type for your 
> system.common console types are: ansi, vt100, xterm, cons25w.
> 
> Console type [vt100]:
> 
> Sent from Outlook Mobile
> 
> From: Aryeh Friedman 
> mailto:aryeh.fried...@gmail.com>>
> Sent: Tuesday, May 5, 2020 3:52:26 AM
> To: Brandon helsley 
> mailto:brandon.hels...@hotmail.com>>
> Cc: 
> freebsd-virtualization@freebsd.org 
> mailto:freebsd-virtualization@freebsd.org>>;
>  Robert Crowston mailto:crows...@protonmail.com>>
> Subject: Re: Bhyve help
> 
> 
> 
> On Tue, May 5, 2020 at 5:21 AM Brandon helsley 
> mailto:brandon.hels...@hotmail.com>> wrote:
> I have re0 but the ip address is under wlan0 with my CenturyLink
> 
> In order to use vtnet and bridging (both required for bhyve networking) you 
> need to load the load the virtio kernel module as well as the if_tap and vmm 
> modules (the first one provides the host side of the virtual NIC and the 
> second loads the hypervisor components)
> 
> Sent from Outlook Mobile
> 
> 
> From: Robert Crowston 
> mailto:crows...@protonmail.com>>
> Sent: Tuesday, May 5, 2020 3:14:43 AM
> To: Brandon helsley 
> mailto:brandon.hels...@hotmail.com>>; 
> freebsd-virtualization@freebsd.org 
> mailto:freebsd-virtualization@freebsd.org>>
> Subject: Re: Bhyve help
> 
> What are your network interfaces called on your machine? You probably have to 
> change igb0 in the example to em0 (an Intel card) or re0 (a Realtek card). 
> Type “ifconfig” to list all the interfaces, and look for ones with an ip 
> address to figure it 

Re: Bhyve help

2020-05-05 Thread Paul Vixie
On Tuesday, 5 May 2020 23:55:01 UTC Brandon helsley wrote:
> Well how do i add a tap to the bridge the VM is on as well as my physical
> nic

my rc.conf has evolved as follows:

autobridge_interfaces="bridge0"
autobridge_bridge0="tap* igb1"
ifconfig_igb1="up media 1000baseTX fib 1"
cloned_interfaces="bridge0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7"
ifconfig_bridge0="inet 24.104.150.210/27 fib 1"
ifconfig_bridge0_ipv6="inet6 2001:559:8000:cd::2/64 fib 1 auto_linklocal up"
ifconfig_tap0="up fib 1"
ifconfig_tap1="up fib 1"
ifconfig_tap2="up fib 1"
ifconfig_tap3="up fib 1"
ifconfig_tap4="up fib 1"
ifconfig_tap5="up fib 1"
ifconfig_tap6="up fib 1"
ifconfig_tap7="up fib 1"

it's going to be very different if you need nat and dhcp. mine is all static.

-- 
Paul


___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Bhyve help

2020-05-05 Thread Brandon helsley
Well how do i add a tap to the bridge the VM is on as well as my physical nic

Sent from Outlook Mobile


From: Aryeh Friedman 
Sent: Tuesday, May 5, 2020 5:02:50 PM
To: Brandon helsley 
Cc: freebsd-virtualization@freebsd.org ; 
Robert Crowston 
Subject: Re: Bhyve help

When setting up a VM you also need to add the tap it is on to the bridge as 
well your physical NIC

On Tue, May 5, 2020 at 6:28 PM Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
Bhyve gets me to Network installation: "some installation files were not found 
on the boot volume. The next few screens will allow you to configure networking 
so that they can be downloaded from the internet." This happens after system 
components.

Sent from Outlook Mobile

From: Aryeh Friedman mailto:aryeh.fried...@gmail.com>>
Sent: Tuesday, May 5, 2020 4:08:10 AM
To: Brandon helsley 
mailto:brandon.hels...@hotmail.com>>
Cc: 
freebsd-virtualization@freebsd.org 
mailto:freebsd-virtualization@freebsd.org>>;
 Robert Crowston mailto:crows...@protonmail.com>>
Subject: Re: Bhyve help



On Tue, May 5, 2020 at 6:00 AM Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
The handbook only says vmm doesn't it. I got bhyve to start without virtio 
kernel module as well as the if_tap but with vmm modules.

The handbook section on virtualization (FreeBSD host) is at best awful and 
misleading your best guide is the bhyve man page (especially the examples 
there) here is the modules I load for the same set up I recommended you try as 
a advanced beginners lesson in virtualization and networking.   And an example 
script for using them:

/boot/loader.conf:

kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
ipfw_load="YES"
ipdivert_load="YES"
linux_load="YES"

In the real /boot/loader.conf the following are commented out because 
PetiteCloud takes care of them when it loads but unless you want to get into 
more advanced stuff (like how to install non-standard ports) you should 
uncomment them.

vmm_load="YES"
if_tap_load="YES"
nmdm_load="YES"

The script to load the file server VM:

#!/bin/sh
#
# Generated by PetiteCloud 0.2.6
#

ifconfig tap12 destroy
ifconfig tap12 create
ifconfig tap12 up
sleep 5
ifconfig bridge0 addm tap12 up
bhyvectl --destroy --vm=b829e56e9b4289a1
/usr/sbin/bhyve -c cores=4 -m 4096 -AI -H -P -w -g 0 -s 0:0,hostbridge -s 
1,virtio-net,tap12 -s 2,ahci-hd,/vms/import/win10  -s 
29,fbuf,tcp=0.0.0.0:5912,w=1920,h=1080 -s 30,xhci,tablet  
-s 31,lpc -l com1,/dev/nmdm12B -l 
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd b829e56e9b4289a1&>/dev/null
echo $!>/var/run/petitecloud/b829e56e9b4289a1
sleep 10

I'm at this screen:please choose the appropriate terminal type for your 
system.common console types are: ansi, vt100, xterm, cons25w.

Console type [vt100]:

Sent from Outlook Mobile

From: Aryeh Friedman mailto:aryeh.fried...@gmail.com>>
Sent: Tuesday, May 5, 2020 3:52:26 AM
To: Brandon helsley 
mailto:brandon.hels...@hotmail.com>>
Cc: 
freebsd-virtualization@freebsd.org 
mailto:freebsd-virtualization@freebsd.org>>;
 Robert Crowston mailto:crows...@protonmail.com>>
Subject: Re: Bhyve help



On Tue, May 5, 2020 at 5:21 AM Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
I have re0 but the ip address is under wlan0 with my CenturyLink

In order to use vtnet and bridging (both required for bhyve networking) you 
need to load the load the virtio kernel module as well as the if_tap and vmm 
modules (the first one provides the host side of the virtual NIC and the second 
loads the hypervisor components)

Sent from Outlook Mobile


From: Robert Crowston mailto:crows...@protonmail.com>>
Sent: Tuesday, May 5, 2020 3:14:43 AM
To: Brandon helsley 
mailto:brandon.hels...@hotmail.com>>; 
freebsd-virtualization@freebsd.org 
mailto:freebsd-virtualization@freebsd.org>>
Subject: Re: Bhyve help

What are your network interfaces called on your machine? You probably have to 
change igb0 in the example to em0 (an Intel card) or re0 (a Realtek card). Type 
“ifconfig” to list all the interfaces, and look for ones with an ip address to 
figure it out.

On Tue, May 5, 2020 at 10:10, Brandon helsley 
mailto:brandon.hels...@hotmail.com>>>
 wrote:
I'm trying to set up bhyve like the example to learn and when doing the 
physical interface interface get the result no such file or directory the 
command is:

ifconfig bridge0 addm igb0 addm tap0

"In this example, the physical interface is igb0"


Sent from Outlook Mobile

Re: Bhyve help

2020-05-05 Thread Aryeh Friedman
When setting up a VM you also need to add the tap it is on to the bridge as
well your physical NIC

On Tue, May 5, 2020 at 6:28 PM Brandon helsley 
wrote:

> Bhyve gets me to Network installation: "some installation files were not
> found on the boot volume. The next few screens will allow you to configure
> networking so that they can be downloaded from the internet." This happens
> after system components.
>
> Sent from Outlook Mobile 
> --
> *From:* Aryeh Friedman 
> *Sent:* Tuesday, May 5, 2020 4:08:10 AM
> *To:* Brandon helsley 
> *Cc:* freebsd-virtualization@freebsd.org <
> freebsd-virtualization@freebsd.org>; Robert Crowston <
> crows...@protonmail.com>
> *Subject:* Re: Bhyve help
>
>
>
> On Tue, May 5, 2020 at 6:00 AM Brandon helsley <
> brandon.hels...@hotmail.com> wrote:
>
> The handbook only says vmm doesn't it. I got bhyve to start without virtio
> kernel module as well as the if_tap but with vmm modules.
>
>
> The handbook section on virtualization (FreeBSD host) is at best awful and
> misleading your best guide is the bhyve man page (especially the examples
> there) here is the modules I load for the same set up I recommended you try
> as a advanced beginners lesson in virtualization and networking.   And an
> example script for using them:
>
> /boot/loader.conf:
>
> kern.geom.label.disk_ident.enable="0"
> kern.geom.label.gptid.enable="0"
> opensolaris_load="YES"
> zfs_load="YES"
> ipfw_load="YES"
>
> ipdivert_load="YES"
> linux_load="YES"
>
> In the real /boot/loader.conf the following are commented out because
> PetiteCloud takes care of them when it loads but unless you want to get
> into more advanced stuff (like how to install non-standard ports) you
> should uncomment them.
>
> vmm_load="YES"
> if_tap_load="YES"
> nmdm_load="YES"
>
> The script to load the file server VM:
>
> #!/bin/sh
> #
> # Generated by PetiteCloud 0.2.6
> #
>
> ifconfig tap12 destroy
> ifconfig tap12 create
> ifconfig tap12 up
> sleep 5
> ifconfig bridge0 addm tap12 up
> bhyvectl --destroy --vm=b829e56e9b4289a1
> /usr/sbin/bhyve -c cores=4 -m 4096 -AI -H -P -w -g 0 -s 0:0,hostbridge -s
> 1,virtio-net,tap12 -s 2,ahci-hd,/vms/import/win10  -s 29,fbuf,tcp=
> 0.0.0.0:5912,w=1920,h=1080 -s 30,xhci,tablet  -s 31,lpc -l
> com1,/dev/nmdm12B -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd
> b829e56e9b4289a1&>/dev/null
> echo $!>/var/run/petitecloud/b829e56e9b4289a1
> sleep 10
>
>
> I'm at this screen:please choose the appropriate terminal type for your
> system.common console types are: ansi, vt100, xterm, cons25w.
>
> Console type [vt100]:
>
> Sent from Outlook Mobile 
> --
> *From:* Aryeh Friedman 
> *Sent:* Tuesday, May 5, 2020 3:52:26 AM
> *To:* Brandon helsley 
> *Cc:* freebsd-virtualization@freebsd.org <
> freebsd-virtualization@freebsd.org>; Robert Crowston <
> crows...@protonmail.com>
> *Subject:* Re: Bhyve help
>
>
>
> On Tue, May 5, 2020 at 5:21 AM Brandon helsley <
> brandon.hels...@hotmail.com> wrote:
>
> I have re0 but the ip address is under wlan0 with my CenturyLink
>
>
> In order to use vtnet and bridging (both required for bhyve networking)
> you need to load the load the virtio kernel module as well as the if_tap
> and vmm modules (the first one provides the host side of the virtual NIC
> and the second loads the hypervisor components)
>
>
> Sent from Outlook Mobile
>
> 
> From: Robert Crowston 
> Sent: Tuesday, May 5, 2020 3:14:43 AM
> To: Brandon helsley ;
> freebsd-virtualization@freebsd.org 
> Subject: Re: Bhyve help
>
> What are your network interfaces called on your machine? You probably have
> to change igb0 in the example to em0 (an Intel card) or re0 (a Realtek
> card). Type “ifconfig” to list all the interfaces, and look for ones with
> an ip address to figure it out.
>
> On Tue, May 5, 2020 at 10:10, Brandon helsley  > wrote:
> I'm trying to set up bhyve like the example to learn and when doing the
> physical interface interface get the result no such file or directory the
> command is:
>
> ifconfig bridge0 addm igb0 addm tap0
>
> "In this example, the physical interface is igb0"
>
>
> Sent from Outlook Mobile
> ___
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "
> freebsd-virtualization-unsubscr...@freebsd.org"
>
>
> ___
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "
> freebsd-virtualization-unsubscr...@freebsd.org"
>
>
>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>
>
>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>


-- 
Aryeh 

Re: Bhyve help

2020-05-05 Thread Brandon helsley
Also error while fetching
ftp://ftp4.us.freebsd.org/pub/FreeBSD/releases/and64/and64/12.1-RELEASE/base.txz:
 no address record

Sent from Outlook Mobile


From: owner-freebsd-virtualizat...@freebsd.org 
 on behalf of Brandon helsley 

Sent: Tuesday, May 5, 2020 4:28:25 PM
To: Aryeh Friedman 
Cc: freebsd-virtualization@freebsd.org 
Subject: Re: Bhyve help

Bhyve gets me to Network installation: "some installation files were not found 
on the boot volume. The next few screens will allow you to configure networking 
so that they can be downloaded from the internet." This happens after system 
components.

Sent from Outlook Mobile

From: Aryeh Friedman 
Sent: Tuesday, May 5, 2020 4:08:10 AM
To: Brandon helsley 
Cc: freebsd-virtualization@freebsd.org ; 
Robert Crowston 
Subject: Re: Bhyve help



On Tue, May 5, 2020 at 6:00 AM Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
The handbook only says vmm doesn't it. I got bhyve to start without virtio 
kernel module as well as the if_tap but with vmm modules.

The handbook section on virtualization (FreeBSD host) is at best awful and 
misleading your best guide is the bhyve man page (especially the examples 
there) here is the modules I load for the same set up I recommended you try as 
a advanced beginners lesson in virtualization and networking.   And an example 
script for using them:

/boot/loader.conf:

kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
ipfw_load="YES"
ipdivert_load="YES"
linux_load="YES"

In the real /boot/loader.conf the following are commented out because 
PetiteCloud takes care of them when it loads but unless you want to get into 
more advanced stuff (like how to install non-standard ports) you should 
uncomment them.

vmm_load="YES"
if_tap_load="YES"
nmdm_load="YES"

The script to load the file server VM:

#!/bin/sh
#
# Generated by PetiteCloud 0.2.6
#

ifconfig tap12 destroy
ifconfig tap12 create
ifconfig tap12 up
sleep 5
ifconfig bridge0 addm tap12 up
bhyvectl --destroy --vm=b829e56e9b4289a1
/usr/sbin/bhyve -c cores=4 -m 4096 -AI -H -P -w -g 0 -s 0:0,hostbridge -s 
1,virtio-net,tap12 -s 2,ahci-hd,/vms/import/win10  -s 
29,fbuf,tcp=0.0.0.0:5912,w=1920,h=1080 -s 30,xhci,tablet  
-s 31,lpc -l com1,/dev/nmdm12B -l 
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd b829e56e9b4289a1&>/dev/null
echo $!>/var/run/petitecloud/b829e56e9b4289a1
sleep 10

I'm at this screen:please choose the appropriate terminal type for your 
system.common console types are: ansi, vt100, xterm, cons25w.

Console type [vt100]:

Sent from Outlook Mobile

From: Aryeh Friedman mailto:aryeh.fried...@gmail.com>>
Sent: Tuesday, May 5, 2020 3:52:26 AM
To: Brandon helsley 
mailto:brandon.hels...@hotmail.com>>
Cc: 
freebsd-virtualization@freebsd.org 
mailto:freebsd-virtualization@freebsd.org>>;
 Robert Crowston mailto:crows...@protonmail.com>>
Subject: Re: Bhyve help



On Tue, May 5, 2020 at 5:21 AM Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
I have re0 but the ip address is under wlan0 with my CenturyLink

In order to use vtnet and bridging (both required for bhyve networking) you 
need to load the load the virtio kernel module as well as the if_tap and vmm 
modules (the first one provides the host side of the virtual NIC and the second 
loads the hypervisor components)

Sent from Outlook Mobile


From: Robert Crowston mailto:crows...@protonmail.com>>
Sent: Tuesday, May 5, 2020 3:14:43 AM
To: Brandon helsley 
mailto:brandon.hels...@hotmail.com>>; 
freebsd-virtualization@freebsd.org 
mailto:freebsd-virtualization@freebsd.org>>
Subject: Re: Bhyve help

What are your network interfaces called on your machine? You probably have to 
change igb0 in the example to em0 (an Intel card) or re0 (a Realtek card). Type 
“ifconfig” to list all the interfaces, and look for ones with an ip address to 
figure it out.

On Tue, May 5, 2020 at 10:10, Brandon helsley 
mailto:brandon.hels...@hotmail.com>>>
 wrote:
I'm trying to set up bhyve like the example to learn and when doing the 
physical interface interface get the result no such file or directory the 
command is:

ifconfig bridge0 addm igb0 addm tap0

"In this example, the physical interface is igb0"


Sent from Outlook Mobile
___
freebsd-virtualization@freebsd.org 
mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 

Re: Bhyve help

2020-05-05 Thread Brandon helsley
Bhyve gets me to Network installation: "some installation files were not found 
on the boot volume. The next few screens will allow you to configure networking 
so that they can be downloaded from the internet." This happens after system 
components.

Sent from Outlook Mobile

From: Aryeh Friedman 
Sent: Tuesday, May 5, 2020 4:08:10 AM
To: Brandon helsley 
Cc: freebsd-virtualization@freebsd.org ; 
Robert Crowston 
Subject: Re: Bhyve help



On Tue, May 5, 2020 at 6:00 AM Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
The handbook only says vmm doesn't it. I got bhyve to start without virtio 
kernel module as well as the if_tap but with vmm modules.

The handbook section on virtualization (FreeBSD host) is at best awful and 
misleading your best guide is the bhyve man page (especially the examples 
there) here is the modules I load for the same set up I recommended you try as 
a advanced beginners lesson in virtualization and networking.   And an example 
script for using them:

/boot/loader.conf:

kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
ipfw_load="YES"
ipdivert_load="YES"
linux_load="YES"

In the real /boot/loader.conf the following are commented out because 
PetiteCloud takes care of them when it loads but unless you want to get into 
more advanced stuff (like how to install non-standard ports) you should 
uncomment them.

vmm_load="YES"
if_tap_load="YES"
nmdm_load="YES"

The script to load the file server VM:

#!/bin/sh
#
# Generated by PetiteCloud 0.2.6
#

ifconfig tap12 destroy
ifconfig tap12 create
ifconfig tap12 up
sleep 5
ifconfig bridge0 addm tap12 up
bhyvectl --destroy --vm=b829e56e9b4289a1
/usr/sbin/bhyve -c cores=4 -m 4096 -AI -H -P -w -g 0 -s 0:0,hostbridge -s 
1,virtio-net,tap12 -s 2,ahci-hd,/vms/import/win10  -s 
29,fbuf,tcp=0.0.0.0:5912,w=1920,h=1080 -s 30,xhci,tablet  
-s 31,lpc -l com1,/dev/nmdm12B -l 
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd b829e56e9b4289a1&>/dev/null
echo $!>/var/run/petitecloud/b829e56e9b4289a1
sleep 10

I'm at this screen:please choose the appropriate terminal type for your 
system.common console types are: ansi, vt100, xterm, cons25w.

Console type [vt100]:

Sent from Outlook Mobile

From: Aryeh Friedman mailto:aryeh.fried...@gmail.com>>
Sent: Tuesday, May 5, 2020 3:52:26 AM
To: Brandon helsley 
mailto:brandon.hels...@hotmail.com>>
Cc: 
freebsd-virtualization@freebsd.org 
mailto:freebsd-virtualization@freebsd.org>>;
 Robert Crowston mailto:crows...@protonmail.com>>
Subject: Re: Bhyve help



On Tue, May 5, 2020 at 5:21 AM Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
I have re0 but the ip address is under wlan0 with my CenturyLink

In order to use vtnet and bridging (both required for bhyve networking) you 
need to load the load the virtio kernel module as well as the if_tap and vmm 
modules (the first one provides the host side of the virtual NIC and the second 
loads the hypervisor components)

Sent from Outlook Mobile


From: Robert Crowston mailto:crows...@protonmail.com>>
Sent: Tuesday, May 5, 2020 3:14:43 AM
To: Brandon helsley 
mailto:brandon.hels...@hotmail.com>>; 
freebsd-virtualization@freebsd.org 
mailto:freebsd-virtualization@freebsd.org>>
Subject: Re: Bhyve help

What are your network interfaces called on your machine? You probably have to 
change igb0 in the example to em0 (an Intel card) or re0 (a Realtek card). Type 
“ifconfig” to list all the interfaces, and look for ones with an ip address to 
figure it out.

On Tue, May 5, 2020 at 10:10, Brandon helsley 
mailto:brandon.hels...@hotmail.com>>>
 wrote:
I'm trying to set up bhyve like the example to learn and when doing the 
physical interface interface get the result no such file or directory the 
command is:

ifconfig bridge0 addm igb0 addm tap0

"In this example, the physical interface is igb0"


Sent from Outlook Mobile
___
freebsd-virtualization@freebsd.org 
mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


___
freebsd-virtualization@freebsd.org 
mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


--
Aryeh M. Friedman, Lead 

[Bug 246121] [bhyve][PATCH] Append Keyboard Layout specified option for using VNC.

2020-05-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246121

--- Comment #2 from Koine Yuusuke  ---
Thank you for you interest in the patch.

Unfortunately, I understand that the your suggestions are difficult for the
following reasons.

The virtual PS2 keyboard driver of the bhyve has a table for converting ASCII
code for keys that can be expressed in ASCII characters and Xorg keysym code
for keys that cannot be expressed in ASCII characters (example Enter or Escape
key,etc) to ScanCode Set2 of the PS2 keyboard.
This patch updates this conversion table based on the layout setting file.

The /usr/share/vt/keymaps/* file contain the correspondence of ASCII characters
or key names (key names is unique to vt/syscons, not Xorg keysym) corresponding
to the scancode (for vt/syscons) converted from ScanCode Set2 of the PS2
keyboard device.
In addition, I confirmed that the conversion algorithm from ScanCode Set2 of
the PS2 keyboard to scancode (for vt/syscons) is implemented in
/usr/src/sys/dev/atkbdc/atkbd.c, so I think that it is not impossible to use
the /usr/share/vt/keymaps/* file as the basis for the keys that can be
represented by ASCII characters.
(Since it has not been examined in detail, I don't understand whether ScanCode
Set2 of the PS2 keyboard can actually be converted from scancode (for
vt/syscons) to the reverse.)

On the other hand, a key that cannot be represented by ASCII characters cannot
be supported because the value of Xorg keysym value doesn't exist in
/usr/share/vt/keymaps/* file.
 (For reference, the value of Xorg keysym value is in the
/usr/local/include/X11/keysymdef.h)

Therefore, even if the key layout conversion information that can be expressed
in ASCII characters is acquired from /usr/share/vt/keymaps/* file, the key that
cannot be expressed in ASCII characters cannot be acquired from
/usr/share/vt/keymaps/* file, and thus I think that a layout configuration file
for each language is required.

If you have a good idea to use /usr/share/vt/keymaps/* file, please let me
know.
 (I also don't want to have a layout configuration file for bhyve apart from
/usr/share/vt/keymaps/* file.
  But I did this because I couldn't think of any other simple way...)

 - Koine Yuusuke (koinec)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Bhyve help

2020-05-05 Thread Aryeh Friedman
On Tue, May 5, 2020 at 6:00 AM Brandon helsley 
wrote:

> The handbook only says vmm doesn't it. I got bhyve to start without virtio
> kernel module as well as the if_tap but with vmm modules.
>

The handbook section on virtualization (FreeBSD host) is at best awful and
misleading your best guide is the bhyve man page (especially the examples
there) here is the modules I load for the same set up I recommended you try
as a advanced beginners lesson in virtualization and networking.   And an
example script for using them:

/boot/loader.conf:

kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
ipfw_load="YES"

ipdivert_load="YES"
linux_load="YES"

In the real /boot/loader.conf the following are commented out because
PetiteCloud takes care of them when it loads but unless you want to get
into more advanced stuff (like how to install non-standard ports) you
should uncomment them.

vmm_load="YES"
if_tap_load="YES"
nmdm_load="YES"

The script to load the file server VM:

#!/bin/sh
#
# Generated by PetiteCloud 0.2.6
#

ifconfig tap12 destroy
ifconfig tap12 create
ifconfig tap12 up
sleep 5
ifconfig bridge0 addm tap12 up
bhyvectl --destroy --vm=b829e56e9b4289a1
/usr/sbin/bhyve -c cores=4 -m 4096 -AI -H -P -w -g 0 -s 0:0,hostbridge -s
1,virtio-net,tap12 -s 2,ahci-hd,/vms/import/win10  -s 29,fbuf,tcp=
0.0.0.0:5912,w=1920,h=1080 -s 30,xhci,tablet  -s 31,lpc -l
com1,/dev/nmdm12B -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd
b829e56e9b4289a1&>/dev/null
echo $!>/var/run/petitecloud/b829e56e9b4289a1
sleep 10

>
> I'm at this screen:please choose the appropriate terminal type for your
> system.common console types are: ansi, vt100, xterm, cons25w.
>
> Console type [vt100]:
>
> Sent from Outlook Mobile 
> --
> *From:* Aryeh Friedman 
> *Sent:* Tuesday, May 5, 2020 3:52:26 AM
> *To:* Brandon helsley 
> *Cc:* freebsd-virtualization@freebsd.org <
> freebsd-virtualization@freebsd.org>; Robert Crowston <
> crows...@protonmail.com>
> *Subject:* Re: Bhyve help
>
>
>
> On Tue, May 5, 2020 at 5:21 AM Brandon helsley <
> brandon.hels...@hotmail.com> wrote:
>
> I have re0 but the ip address is under wlan0 with my CenturyLink
>
>
> In order to use vtnet and bridging (both required for bhyve networking)
> you need to load the load the virtio kernel module as well as the if_tap
> and vmm modules (the first one provides the host side of the virtual NIC
> and the second loads the hypervisor components)
>
>
> Sent from Outlook Mobile
>
> 
> From: Robert Crowston 
> Sent: Tuesday, May 5, 2020 3:14:43 AM
> To: Brandon helsley ;
> freebsd-virtualization@freebsd.org 
> Subject: Re: Bhyve help
>
> What are your network interfaces called on your machine? You probably have
> to change igb0 in the example to em0 (an Intel card) or re0 (a Realtek
> card). Type “ifconfig” to list all the interfaces, and look for ones with
> an ip address to figure it out.
>
> On Tue, May 5, 2020 at 10:10, Brandon helsley  > wrote:
> I'm trying to set up bhyve like the example to learn and when doing the
> physical interface interface get the result no such file or directory the
> command is:
>
> ifconfig bridge0 addm igb0 addm tap0
>
> "In this example, the physical interface is igb0"
>
>
> Sent from Outlook Mobile
> ___
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "
> freebsd-virtualization-unsubscr...@freebsd.org"
>
>
> ___
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "
> freebsd-virtualization-unsubscr...@freebsd.org"
>
>
>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>


-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Bhyve help

2020-05-05 Thread Brandon helsley
The handbook only says vmm doesn't it. I got bhyve to start without virtio 
kernel module as well as the if_tap but with vmm modules.

I'm at this screen:please choose the appropriate terminal type for your 
system.common console types are: ansi, vt100, xterm, cons25w.

Console type [vt100]:

Sent from Outlook Mobile

From: Aryeh Friedman 
Sent: Tuesday, May 5, 2020 3:52:26 AM
To: Brandon helsley 
Cc: freebsd-virtualization@freebsd.org ; 
Robert Crowston 
Subject: Re: Bhyve help



On Tue, May 5, 2020 at 5:21 AM Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
I have re0 but the ip address is under wlan0 with my CenturyLink

In order to use vtnet and bridging (both required for bhyve networking) you 
need to load the load the virtio kernel module as well as the if_tap and vmm 
modules (the first one provides the host side of the virtual NIC and the second 
loads the hypervisor components)

Sent from Outlook Mobile


From: Robert Crowston mailto:crows...@protonmail.com>>
Sent: Tuesday, May 5, 2020 3:14:43 AM
To: Brandon helsley 
mailto:brandon.hels...@hotmail.com>>; 
freebsd-virtualization@freebsd.org 
mailto:freebsd-virtualization@freebsd.org>>
Subject: Re: Bhyve help

What are your network interfaces called on your machine? You probably have to 
change igb0 in the example to em0 (an Intel card) or re0 (a Realtek card). Type 
“ifconfig” to list all the interfaces, and look for ones with an ip address to 
figure it out.

On Tue, May 5, 2020 at 10:10, Brandon helsley 
mailto:brandon.hels...@hotmail.com>>>
 wrote:
I'm trying to set up bhyve like the example to learn and when doing the 
physical interface interface get the result no such file or directory the 
command is:

ifconfig bridge0 addm igb0 addm tap0

"In this example, the physical interface is igb0"


Sent from Outlook Mobile
___
freebsd-virtualization@freebsd.org 
mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


___
freebsd-virtualization@freebsd.org 
mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Bhyve help

2020-05-05 Thread Aryeh Friedman
On Tue, May 5, 2020 at 5:21 AM Brandon helsley 
wrote:

> I have re0 but the ip address is under wlan0 with my CenturyLink
>

In order to use vtnet and bridging (both required for bhyve networking) you
need to load the load the virtio kernel module as well as the if_tap and
vmm modules (the first one provides the host side of the virtual NIC and
the second loads the hypervisor components)

>
> Sent from Outlook Mobile
>
> 
> From: Robert Crowston 
> Sent: Tuesday, May 5, 2020 3:14:43 AM
> To: Brandon helsley ;
> freebsd-virtualization@freebsd.org 
> Subject: Re: Bhyve help
>
> What are your network interfaces called on your machine? You probably have
> to change igb0 in the example to em0 (an Intel card) or re0 (a Realtek
> card). Type “ifconfig” to list all the interfaces, and look for ones with
> an ip address to figure it out.
>
> On Tue, May 5, 2020 at 10:10, Brandon helsley  > wrote:
> I'm trying to set up bhyve like the example to learn and when doing the
> physical interface interface get the result no such file or directory the
> command is:
>
> ifconfig bridge0 addm igb0 addm tap0
>
> "In this example, the physical interface is igb0"
>
>
> Sent from Outlook Mobile
> ___
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "
> freebsd-virtualization-unsubscr...@freebsd.org"
>
>
> ___
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "
> freebsd-virtualization-unsubscr...@freebsd.org"
>


-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Bhyve help

2020-05-05 Thread Brandon helsley
I have re0 but the ip address is under wlan0 with my CenturyLink

Sent from Outlook Mobile


From: Robert Crowston 
Sent: Tuesday, May 5, 2020 3:14:43 AM
To: Brandon helsley ; 
freebsd-virtualization@freebsd.org 
Subject: Re: Bhyve help

What are your network interfaces called on your machine? You probably have to 
change igb0 in the example to em0 (an Intel card) or re0 (a Realtek card). Type 
“ifconfig” to list all the interfaces, and look for ones with an ip address to 
figure it out.

On Tue, May 5, 2020 at 10:10, Brandon helsley 
mailto:brandon.hels...@hotmail.com>> wrote:
I'm trying to set up bhyve like the example to learn and when doing the 
physical interface interface get the result no such file or directory the 
command is:

ifconfig bridge0 addm igb0 addm tap0

"In this example, the physical interface is igb0"


Sent from Outlook Mobile
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Bhyve help

2020-05-05 Thread Robert Crowston via freebsd-virtualization
What are your network interfaces called on your machine? You probably have to 
change igb0 in the example to em0 (an Intel card) or re0 (a Realtek card). Type 
“ifconfig” to list all the interfaces, and look for ones with an ip address to 
figure it out.

On Tue, May 5, 2020 at 10:10, Brandon helsley  
wrote:

> I'm trying to set up bhyve like the example to learn and when doing the 
> physical interface interface get the result no such file or directory the 
> command is:
>
> ifconfig bridge0 addm igb0 addm tap0
>
> "In this example, the physical interface is igb0"
>
> Sent from Outlook Mobile
> ___
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to 
> "freebsd-virtualization-unsubscr...@freebsd.org"
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Bhyve help

2020-05-05 Thread Brandon helsley
I'm trying to set up bhyve like the example to learn and when doing the 
physical interface  interface get the result no such file or directory the 
command is:

ifconfig bridge0 addm igb0 addm tap0

"In this example, the physical interface is igb0"


Sent from Outlook Mobile
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"