virtual-machine

3 Kubernetes clusters 1 base on local machine

这一生的挚爱 提交于 2021-02-19 07:43:32
问题 I would like to learn Kubernetes and would like to setup it on my laptop. The architecture would be as follows: Create 4 Ubuntu 18.04 server VM's instances on my laptop 3 of 4 VM's will be Kubernetes Clusters and 1 VM wilk be the base Access via SSH the base VM For virtualization, I am using Virtual Box. The question is, how to achieve it? 回答1: To set up Kubernetes Cluster on Ubuntu Servers with Virtualbox and Kubeadm follow this steps: Prerequisites: Virtual machines with specification of

Cannot connect FTP to Azure virtual machine

笑着哭i 提交于 2021-02-19 05:48:11
问题 I provisioned a Windows Server 2012 vm in Azure. When I try to connect to it via FileZilla FTP client I get a Could not connect to server error . Here's what I have tried so far: Added inbound rule for FTP (TCP/21) in the Azure portal In IIS, configured FTP Firewall Support. Set Data Channel Port Range to 7000-7002 , External IP Address of Firewall to my vm's public IP , added 7000, 7001 and 7002 to inbound rules , did a net start/stop ftpsvc 回答1: The step I'm missing in your description, is

toArray with pre sized array

微笑、不失礼 提交于 2021-02-18 10:49:47
问题 when using ar.toArray(new String[ar.size()]) Android studio 3.2.1 warns about pre-sized array and recommends empty array : There are two styles to convert a collection to an array: either using a pre-sized array (like c.toArray(new String[c.size()])) or using an empty array (like c.toArray(new String[0]). In older Java versions using pre-sized array was recommended, as the reflection call which is necessary to create an array of proper size was quite slow. However since late updates of

toArray with pre sized array

≡放荡痞女 提交于 2021-02-18 10:49:08
问题 when using ar.toArray(new String[ar.size()]) Android studio 3.2.1 warns about pre-sized array and recommends empty array : There are two styles to convert a collection to an array: either using a pre-sized array (like c.toArray(new String[c.size()])) or using an empty array (like c.toArray(new String[0]). In older Java versions using pre-sized array was recommended, as the reflection call which is necessary to create an array of proper size was quite slow. However since late updates of

Create a complete Linux virtual machine infrastructure in Azure with Terraform

放肆的年华 提交于 2021-02-11 16:54:14
问题 So I'm very new creating virtual machines and Microsoft Azure. I'm trying to create one in terraform and link to my Azure account. I have been following this documentation: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/terraform-create-complete-vm. For some background; my goal is to create the VM, log in via ssh on a vpn and log the logins Using the sample code they provide however, I get this error: azurerm_virtual_machine.myterraformvm: compute.VirtualMachinesClient

Create a complete Linux virtual machine infrastructure in Azure with Terraform

青春壹個敷衍的年華 提交于 2021-02-11 16:52:20
问题 So I'm very new creating virtual machines and Microsoft Azure. I'm trying to create one in terraform and link to my Azure account. I have been following this documentation: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/terraform-create-complete-vm. For some background; my goal is to create the VM, log in via ssh on a vpn and log the logins Using the sample code they provide however, I get this error: azurerm_virtual_machine.myterraformvm: compute.VirtualMachinesClient

I cannot make UDP Ports work on a Windows Azure Virtual Machine

心不动则不痛 提交于 2021-02-10 15:53:22
问题 I cannot receive a UDP packet on a Windows Azure Virtual Machine. I have done the following: On the Virtual Machine, via Windows Firewall, I opened up Port 1234* both Inbound and Outbound for both UDP and TCP protocols. I did not add any IP exclusions. The rule should apply to Domain, Private and Public profiles. I am allowing Block Edge Traversal. In the Azure Management Portal, I added Endpoints for my Virtual Machine instance. I added both UDP and TCP protocol endpoints. Public and Private

Schedule Azure VM to turn on, run a script and turn off

白昼怎懂夜的黑 提交于 2021-02-08 07:23:49
问题 I have a multi-container app that I need to run twice a day at specific times for about 30 mins each time. To save costs, I would like to: Turn on a Linux VM on Microsoft Azure Run a script that runs docker-compose up -d , waits 30 mins, then calls docker-compose stop Turn off the VM I'd love for this to happen automatically on a cron schedule. So far, I've failed to find any Azure solution that can do all of this. Azure automation allows you to turn on/off VMs but it doesn't allow you to run

unknown filesystem type 'vboxsf' after vagrant up

倖福魔咒の 提交于 2021-02-07 19:16:19
问题 i want to setup environment using vagrant but display error after vagrant up. here is my spec im using : - OS X Yosemite Version 10.10.5 - VirtualBox vesion 5.2.6 - Vagrant 2.0.1 and this is my Vagrant file Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.vm.network "private_network", ip: "192.168.33.99" config.vm.synced_folder "./", "/vagrant", type:"virtualbox", :owner => 'apache', :group => 'apache', mount_option: ['dmode=777', 'fmode=755'] end but went i run 'vagrant

unknown filesystem type 'vboxsf' after vagrant up

不羁岁月 提交于 2021-02-07 19:08:12
问题 i want to setup environment using vagrant but display error after vagrant up. here is my spec im using : - OS X Yosemite Version 10.10.5 - VirtualBox vesion 5.2.6 - Vagrant 2.0.1 and this is my Vagrant file Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.vm.network "private_network", ip: "192.168.33.99" config.vm.synced_folder "./", "/vagrant", type:"virtualbox", :owner => 'apache', :group => 'apache', mount_option: ['dmode=777', 'fmode=755'] end but went i run 'vagrant