Page 1 of 1

PAW installation alongside Hyper-V

Posted: Thu Dec 29, 2016 1:31 pm
by gtonkin
I am trying to get PAW running on my 2012 R2 server which is running Hyper-V and numerous VMs (cannot disable Hyper-V)
I have edited the WinStart.sh script to include the --virtualbox-no-vtx-check, added SET COMPOSE_CONVERT_WINDOWS_PATHS=1 to the Start.bat file.

Latest log file says:

Code: Select all

Running pre-create checks...
Creating machine...(paw) Copying C:\Users\George\.docker\machine\cache\boot2docker.iso to C:\Users\George\.docker\machine\machines\paw\boot2docker.iso...(paw)
Creating VirtualBox VM...(paw) Creating SSH key...(paw) 
Starting the VM...(paw) Check network to re-create if needed...(paw) 
Windows might ask for the permission to create a network adapter. 
Sometimes, such confirmation window is minimized in the taskbar.(paw)
Found a new host-only adapter: "VirtualBox Host-Only Ethernet Adapter #2"(paw) 
Windows might ask for the permission to configure a network adapter. 
Sometimes, such confirmation window is minimized in the taskbar.
Error creating machine: Error in driver during machine creation: 
Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm paw --type headless failed:
VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
Details: 00:00:02.239336 Power up failed (vrc=VERR_VMX_NO_VMX, rc=E_FAIL (0X80004005))
Virtual box and Hyper-V not playing nice.
I have also created a VM, installed Docker, extracted PAW but get similar messages.

Running Docker 1.12.5, did NOT install VirtualBox with NDIS5 driver (tried previously but uninstalled)
VirtualBox is Version 5.1.10 r112026 (Qt5.6.2)
Network connections shows only one VirtualBox related Host Only network (but another was added after running the Start script, per log file above)

My question is - how do I get PAW installed where I do not have a dedicated piece of hardware, without Hyper-V running?

Re: PAW installation alongside Hyper-V

Posted: Fri Dec 30, 2016 9:21 am
by gtonkin
Not sure that I have made any real progress but have altered the winstart.sh script to try and change from using VirtualBox to Hyper-V:

Code: Select all

  CREATING_VM=1
  STEP="Creating the virtual machine"
  echo -e "${BOLD}Creating the virtual machine '${VM}', this may take a few minutes...${NC}"
  "${DOCKER_MACHINE}" create \
    -d hyperv \
	${PROXY_ENV} \
	--hyperv-virtual-switch "Primary Virtual Switch" \
	--hyperv-memory "${VM_MEMORY}" \
	--hyperv-cpu-count "${VM_CPU_COUNT}" \
	--hyperv-disk-size "${VM_DISK_SIZE}" \
	"${VM}" >> "${LOG_FILE}" 2>&1
I had to created a Vitual Switch in Hyper-V - called it "Primary Virtual Switch"
I also hased out some items starting with "${VBOXMANAGE}" as these would not work now.
The consequence is that I am not adding the shared folder, adding symlinks or doing port forwarding.
The container starts and I can start the admin tool to get to the license page. There is no text so cannot accept anything - guessing I need the share folder.
Any ideas? Anyone been down this route and succeeded?

Re: PAW installation alongside Hyper-V

Posted: Fri Dec 30, 2016 3:41 pm
by dr.nybble
If you are not using the VirtualBox driver I wouldn't use the Start.bat/winstart.sh scripting. If you pursue this route you will need to set up Windows folder sharing (license files are read from the mounted Windows share).

Instead just install your favoured Linux distribution ISO under Hyper-V and follow the Linux installation instructions.

Re: PAW installation alongside Hyper-V

Posted: Fri Dec 30, 2016 4:28 pm
by gtonkin
Thanks dr.nybble-will try this route-can you make any recommendations on a "favoured Linux distribution", been out of touch-last time I worked with Unix/Linux was SCO Openserver-over a decade ago! Ubuntu? Alpine? Other?

Re: PAW installation alongside Hyper-V

Posted: Fri Dec 30, 2016 5:08 pm
by dr.nybble
I found it pretty easy to get going with Ubuntu or CentOS.

The Docker install instructions are easier for Centos but in either case it should take 10-15 minutes to have Docker + Docker Compose ready to go.

Re: PAW installation alongside Hyper-V

Posted: Fri Dec 30, 2016 5:12 pm
by gtonkin
Thanks again-will try CentOS - like the easier route at this time on a Friday.

Re: PAW installation alongside Hyper-V

Posted: Tue Jan 03, 2017 12:23 pm
by gtonkin
Thanks again for the assistance dr.nybble - managed to mangle something together!
For those who are going to try do the same, I have tried to keep my notes together (attached) so that they may be used as a guideline, E&OE, no guarantees etc. etc.