I have installed CUPS on a Ubuntu Xenial VM instance of Google compute engine. I have changed settings as described here and here and restarted the CUPS server.
I'm trying to access the web interface through http(s)://my-external-ip:631/admin but that is not reachable. Pinging to the External IP works.
How can I troubleshoot or what extra configuration might be needed in the CUPS configuration or VM instance configuration?
Related
I am trying to setup an IPSec tunnel on my virtual machine on Google Compute Engine and it seems all my traffic is blocked. Even though I have open the necessary ports on both the Windows Server 2016 server and Google's Firewall. Question I have is it possible to setup the VPN tunnel on the server it self or should I make use of the Hybrid Connectivity VPN or something else? I have the same setup on a dedicated server but just can't get Main Mode and or Quick Mode functioning at all.
PS I have setup many iPSec tunnels on stand alone server just not on a virtual server using Google Compute Engine.
Thanks in advance for your help on this one.
I was able to set up IPSec VPN server with Debian 10 virtual machine, on Google Compute Engine.
Here's what I did:
While creating virtual machine instance (Debian 10 for example), in "Network interface" window set option "IP forwarding" to "ON";
On "VPC network" page create firewall rule with open ports: "udp: 500, 4500";
Use this script to setup VPN software:
wget https://git.io/vpnsetup -O vpnsetup.sh && sudo sh vpnsetup.sh
It will generate credentials needed for next step. They look like this: "Server IP: ****", "IPsec PSK: ****", "Username: ****", "Password: ****".
For client configuration use credentials generated from above step and IPsec/XAuth protocol while setting vpn connection.
Look here if you encounter problems: https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-xauth.md
Check this guide "IPsec VPN Server Auto Setup Scripts" for more information:
https://github.com/hwdsl2/setup-ipsec-vpn
Can you install MySQL for AWS Elastic Cloud Compute (EC2) directly on the instance? I can't afford to purchase a separate RDS instance at the moment.
My website is setup on AWS EC2 already and now I'm going to try out some features with a database. I need to set up the instance to run on the EC2 localhost and connect it to my website to store my user data.
So first you need to separate XAMPP from mysql in your thought process. XAMPP is a tool only for your local development. You can set up a database on the Elastic Cloud Compute (EC2) instance similarly to how you set up your XAMPP config locally.
Here are the official docs on how to install a full LAMP stack on an EC2 instance running the Amazon Linux AMI - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
Question: How do I get CDK to work on the corporate laptop using virtualbox without running into the 'could not find mathcing ip for mac' issue?
environment: Windows7, CDK 3.2.0, Virtualbox 5.0.x/5.1.x various versions tried. Key callout, corporate machine has VPN software (cisco anyconnect) while home pc does not, home pc works fine. Issue happens regardless if using VPN or not. Virtualbox (all versions) proven to work using vagrant.
Key finding:
minishift ssh -> functions, doing an ifconfig returns eth0 with a 10.0.*
network, instead of the expected 192.168.99.* network segments configured
for virtualbox network host adapters. Explicitly using minishift config set
host-only-cidr 192.168.99.1/24 with matching virtualbox host adapters
doesn't change outcome
Details:
c:\devrh\cdk\bin>minishift version
minishift v1.7.0+204ce19 CDK v3.2.0-1
c:\devrh\cdk\bin>minishift start --vm-driver=virtualbox -- Starting local
OpenShift cluster using 'virtualbox'
hypervisor ... -- Starting Minishift VM ............................ FAIL
E1108 10:27:05.991687 3128 start.go:356] Error starting the VM: Error
configuring authorization on host: Could not find matching IP for MAC
address 0800279fa156. Retrying. Error starting
the VM: Error configuring authorization on host: Could not find matching IP
for MAC address 0800279fa156
corporate workstation has the issue, home PC does not.
Minishift delete and restart, same issue (different MAC address, but same issue).
Virtualbox remove all host adapters, minishift delete, restart (which auto-creates new host adapters), same issue.
Minishift --profile approach, same issue.
Uninstalled virtualbox, installed the version from the RHDevSuite installer with the CDK from the installer, all steps tested with that combination as well, same issue.
Additional notes, Virtualbox is working fine with vagrant (static IP’s in vagrant files), virtualbox/vagrant combo works on both corporate and home machine without issues.
I have installed the Cloudera Quickstart VM on my windows 8 host machine. I would like to know if it is possible to use sqoop in the VM to import data from a mysql database running in the host machine. The VM runs centOS. If so, what would be the configuration changes that i'd have to make.
Thanks
It depends on how you have your VM setup. If your VM is just using an internal network for your network interface devices, then no.
If your network interface devices are setup to use NAT or bridged, then yes. Bridged network interfaces are the easiest to work with, as it involves no routing. If your network is set to bridged mode, then your VM will be getting a DCHP address from the same location as your Host. Connecting to the mysql database is just the usual <hostip>:3306.
If the network device is set to NAT, then you've got to figure out how to route between the two networks. It's probably just a lot easier to set your VM to bridged mode than cover how to route your NAT'd interface.
Just check if you are able to ping your local machine from VM. Try ping in vm. If it works then sqoop should be able to connect to your local mysql. I am using same configuration as you are using and it works fine for me.
I am running VirtualBox on MacOS, I have a windows xp vm. I also have mysql database running inside the vm. The vm is configured to use Bridged Network Adapter.
When I am connected to a wi-fi network (at home), I am able to connect to the data running on the vm from my mac (host), by using the IP address of the vm in the connection string.
How do I do this when I am not connected to the network (when I am travelling on a train for example)?
What setting do I need to change on the VM so that my host can connect to the mysql database running on the xp vm?
There is no need for the VM to access the outside network etc... It is enough for the host to be able to access the database on the vm.
This can be solved by using port forwarding in VirtualBox with NAT as the networking mode.