[ 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
- To: "list@xxxxxxxxxxxxx" <list@xxxxxxxxxxxxx>
- Subject: Re: [LUG] Problem in use of VirtualBox to demonstrate a server based software locally on my machine
- From: mr meowski <mr.meowski@xxxxxxxx>
- Date: Mon, 14 May 2018 20:09:01 +0000
- Accept-language: en-GB, en-US
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=mr.meowski@xxxxxxxx;
- Content-id: <0AD90343AAB5DE4D8CF94545F2FC02DE@eurprd08.prod.outlook.com>
- Content-language: en-US
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dclug.org.uk; s=1523264761; h=Sender:Content-Transfer-Encoding:Content-Type :Reply-To:List-Subscribe:List-Help:List-Post:List-Unsubscribe:List-Id:Subject :MIME-Version:Content-ID:In-Reply-To:References:Message-ID:Date:To:From:Cc: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner:List-Archive; bh=xFjY8OuWiXbe4/b1AYC/Vwavr4iugFbFWZXt52wxL2E=; b=i0vuyv7YZ8OKGhtwSXTXq0nMOw FaUzX5m4ewF7YTc7/fyo6IPSnVJ2yBfjokeTZlFtle3V95APKqtvqWWmA8v2ENTP9te+RoI32S5nq 5EP1oxPp0rcWZC56JYHxjx2o16Gh0AVZiUg0LAn5RkQuPvEAuP2D6/eA0PzNrxm7mQ2A=;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1UcqQxyyTstdp7n4c0ODW6STsOT7SY/PCJ6oGVO7keo=; b=nIao5NZdQjrMK04szJkgPgoz8pcBRQymj4bLWt4ggajCGKRHS5MRFNPN+XH+jHq62Cs5F5gPaIn6jGtEN3KprBPugWKZsAKU0OFEHxJf17zujMzb/1R+XpXdHrbmOpDpOGewwXcH9xpZeetamg6KBzRTZt0p3u0Ovv9ndhZQb1rhvBaCKi6iIguk53sqobfdT0Bp7wktQvWY7f0bys4bT2O96+byVWKZtyZib+5QPRiW4H86wmktL0yVXiOls+AABBOjW83IikCn+vmKQOUE5JpiBut3uyzDUbzsUZb0Ui7m8wwm46SHTOIurg95Eku9k4Z5kflk+jXTwm4jnGbRiQ==
- Thread-index: AQHT629OZFCnosagOkSGJ2d2vwPrraQvp94A
- Thread-topic: [LUG] Problem in use of VirtualBox to demonstrate a server based software locally on my machine
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
--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq