D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Problem in use of VirtualBox to demonstrate a server based software locally on my machine

 



On 14/05/18 21:09, mr meowski wrote:
Done programmatically rather than messing with nasty GUIs:

Find out what the VM's name is and which network adapter you are using
on the host PC to talk to the internet. In my case I'll use "zfsbot" as
my VM and my host workstation's main network adapter is "enp6s0". Make
sure the VM is not running when you run these commands! Set up your
variables:

export vmname=zfsbot

export hostphy=enp6s0

echo $vmname $hostphy


Set yours appropriately obviously. To apply:

# check current settings:

VBoxManage showvminfo $vmname | grep "NIC 1"

# change the VM's adapter settings:

VBoxManage modifyvm $vmname --nic1 bridged

VBoxManage modifyvm $vmname --bridgeadapter1 $hostphy

# boot the VM

VBoxManage startvm $vmname


If you want to set the network type back at any point then:

VBoxManage modifyvm $vmname --nic1 nat


It's always easier and more consistent to deal with complex tools via
reproducible shell commands than clicking around in unfamiliar GUIs.

Cheers



Dear folk, 20180515
Thanks, THANKS!

1 After reading all the advices from you good folk, and numerous searches and bye-ways, without getting the VB to open at the demo in my browsers, I tried reading through and setting up an Ubuntu Server, in VB on another Linux box. (Ubuntu 16.04 LTS but only 4Gb Ram). While doing so one 'line' oddly named popped up and a light came on in my head. I abandoned the Ubuntu Server ploy and returned to my main box.

2. I determined that my way of 'on this box' lay in the "Host-Only" settings in network settings.
The clue lay in a sub set of the network set up. "Promiscuous Mode"
When I set this to the non-default "allow all", it worked.
When I set this to the non-default "allow VMs", the program worked.

3 It opened from any of my browsers with https://yourdomain.com/demo/ at demo dataset of this SAP like record system with all legal subsets for evidence and trial, and user in many places.

Success!
Many and more thanks.

4. If you want a picture of demo dataset, I can send by private email. It shows mainly cases of persons versus: Russia, USA, etc. However I think it will work for an "Advocate (England)/ Writer (Scotland)/ solicitor (England)" for recording Persons versus UK government in a charity I support. I think cases[*] are mainly PTSD, injury (untreated), pension, benefit claims, and resettlement claims which drag on for years. [* I have no record of actual cases, only vague details, as these are confidential.]

Success!
Many many thanks to all.

--
regards
Eion MacDonald

--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq