nello
Patron
- Joined
- Dec 30, 2012
- Messages
- 351
Thanks to help from @m0nkey_ and this tutorial, I created a Virtual Machine (VM) using bhyve and installed Ubuntu 16:
http://gavowen.ninja/2016/07/installing-ubuntu-server-16-04-in-freenas-9-10-beehyve/
But I don't understand how to access my new Ubuntu server. Is it strictly a command-line interface is there a way to interact with it via a GUI of some sort. With VirtualBox, VMs can be accessed with a VNC client; is VNC a possibility with bhyve? Yeah, a really basic question; sorry to be such a noob.
I want to install and configure Crashplan within this VM. How do I do it?
Thank you.
- nello
2016.08.07 Update
Apparently, the VM must be started from one SSH window and another SSH window is used as the console for CLI.
2016.08.07 Update
Following the instructions on this page, I installed vnc4server:
http://www.havetheknowhow.com/Configure-the-server/Install-VNC.html
What IP address do I specify on my client to connect to this VNC server?
2016.08.07 Update
In case it helps anyone else, here's an outline of the steps I went through to create a VM on bhyve (using iohyve) and install Ubuntu 16:
1. Create tunables (variable/value/type/comment)
iohyve_enable/YES/rc.conf/Enables iohyve at boot
iohyve_flags/kmod=1 net=em0/rc.conf/Sets iohyve parameters
2. Create pool for iohyve (specify parent pool)
3. Check that paths were set up correctly
4. Make sure vmm.ko and nmdm.ko kernel modules are loaded
5. Download Ubuntu 16.04 and check that it downloaded sucessfully
6. Create VM and set its parameters
7. Start installation
8. From a separate SSH window, connect to console to respond to installation promptsWhen installation is complete, system will reboot. To return the command prompt in the console window type these two characters in rapid succession:
2016.08.13 Update
I found additional information about exiting the console window at https://github.com/pr1ntf/iohyve/blob/master/iohyve.8.txt
console
Consoles into a guest operating system. Utilizes nmdm(4) and cu(1) to open a console on a guest operating system. Since bhyve(8) does not emulate video, so we need to administer the guests via a serial communication device. Since iohyve uses cu(1), you will need to press the tilde (~) twice then period (.) to exit the console. (Think typing ~~. real fast to exit console) If that fails to work, try pressing tilde (~) then press Control + D (^D). Note that on some machines, you cannot escape the console. See conreset below to escape all consoles. Usage: 'iohyve console <name>' where <name> is the name of the guest operating system.
conreset
Ends all console sessions for when things get weird.
http://gavowen.ninja/2016/07/installing-ubuntu-server-16-04-in-freenas-9-10-beehyve/
But I don't understand how to access my new Ubuntu server. Is it strictly a command-line interface is there a way to interact with it via a GUI of some sort. With VirtualBox, VMs can be accessed with a VNC client; is VNC a possibility with bhyve? Yeah, a really basic question; sorry to be such a noob.
I want to install and configure Crashplan within this VM. How do I do it?
Thank you.
- nello
2016.08.07 Update
Apparently, the VM must be started from one SSH window and another SSH window is used as the console for CLI.
- Start the VMCode:
[root@OctoberGroupNAS] ~# iohyve start ubusrv16 Starting ubusrv16... (Takes 15 seconds for FreeBSD guests) [root@OctoberGroupNAS] ~# Unhandled ps2 mouse command 0xe1 Unhandled ps2 mouse command 0x0a Unhandled ps2 mouse command 0x01 Unhandled ps2 mouse command 0x41 Unhandled ps2 mouse command 0x88 [root@OctoberGroupNAS] ~#
- Console LoginCode:
[root@OctoberGroupNAS] ~# iohyve console ubusrv16 Starting console on ubusrv16... ~~. to escape console [uses cu(1) for console] Connected Ubuntu 16.04.1 LTS ubuntu16 ttyS0 ubuntu16 login: nello Password: Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-31-generic x86_64) ... 5 packages can be updated. 0 updates are security updates. nello@ubuntu16:~$
2016.08.07 Update
Following the instructions on this page, I installed vnc4server:
http://www.havetheknowhow.com/Configure-the-server/Install-VNC.html
What IP address do I specify on my client to connect to this VNC server?
2016.08.07 Update
In case it helps anyone else, here's an outline of the steps I went through to create a VM on bhyve (using iohyve) and install Ubuntu 16:
1. Create tunables (variable/value/type/comment)
iohyve_enable/YES/rc.conf/Enables iohyve at boot
iohyve_flags/kmod=1 net=em0/rc.conf/Sets iohyve parameters
2. Create pool for iohyve (specify parent pool)
Code:
[root@OctoberGroupNAS ~]# iohyve setup pool=red Setting up iohyve pool... On FreeNAS installation. Checking for symbolic link to /iohyve from /mnt/iohyve... Symbolic link to /iohyve from /mnt/iohyve successfully created. [root@OctoberGroupNAS ~]#
3. Check that paths were set up correctly
Code:
[root@OctoberGroupNAS ~]# zfs list | grep iohyve red/iohyve 575K 5.08T 192K /mnt/iohyve red/iohyve/Firmware 192K 5.08T 192K /mnt/iohyve/Firmware red/iohyve/ISO 192K 5.08T 192K /mnt/iohyve/ISO [root@OctoberGroupNAS ~]#
4. Make sure vmm.ko and nmdm.ko kernel modules are loaded
Code:
[root@OctoberGroupNAS ~]# kldstat ... 32 1 0xffffffff821e7000 1b140b vmm.ko 33 1 0xffffffff82399000 2ebf nmdm.ko [root@OctoberGroupNAS ~]#
5. Download Ubuntu 16.04 and check that it downloaded sucessfully
Code:
[root@OctoberGroupNAS ~]# iohyve fetch ftp://ftp.iinet.net.au/pub/ubuntu-releases/16.04.1/ubuntu-16.04.1-server-amd64.iso [root@OctoberGroupNAS ~]# iohyve isolist Listing ISO's... ubuntu-16.04.1-server-amd64.iso
6. Create VM and set its parameters
Code:
[root@OctoberGroupNAS ~]# iohyve create ubusrv16 20G Creating ubusrv16... [root@OctoberGroupNAS ~]# iohyve set ubusrv16 loader=grub-bhyve os=d8lvm ram=2G cpu=1 con=nmdm1 boot=1 Setting ubusrv16 loader=grub-bhyve... Setting ubusrv16 os=d8lvm... Setting ubusrv16 ram=2G... Setting ubusrv16 cpu=1... Setting ubusrv16 con=nmdm1... Setting ubusrv16 boot=1... [root@OctoberGroupNAS ~]# iohyve list Guest VMM? Running rcboot? Description ubusrv16 NO NO YES Sun Aug 7 12:01:41 CDT 2016 [root@OctoberGroupNAS ~]#
7. Start installation
Code:
iohyve install ubusrv16 ubuntu-16.04.1-server-amd64.iso Installing ubusrv16...
8. From a separate SSH window, connect to console to respond to installation prompts
Code:
iohyve console ubusrv16
- <shift>~
- <control>d
2016.08.13 Update
I found additional information about exiting the console window at https://github.com/pr1ntf/iohyve/blob/master/iohyve.8.txt
console
Consoles into a guest operating system. Utilizes nmdm(4) and cu(1) to open a console on a guest operating system. Since bhyve(8) does not emulate video, so we need to administer the guests via a serial communication device. Since iohyve uses cu(1), you will need to press the tilde (~) twice then period (.) to exit the console. (Think typing ~~. real fast to exit console) If that fails to work, try pressing tilde (~) then press Control + D (^D). Note that on some machines, you cannot escape the console. See conreset below to escape all consoles. Usage: 'iohyve console <name>' where <name> is the name of the guest operating system.
conreset
Ends all console sessions for when things get weird.
Last edited: