virtual-machine

Shutdown script not executing on a Google Cloud VM

馋奶兔 提交于 2021-01-29 13:35:38
问题 I am trying to get a shutdown script to execute using a Google Cloud compute VM. I see this output when running gcloud compute connect-to-serial-port startup-test-v Apr 8 22:01:25 startup-test-v shutdown-script: INFO Starting shutdown scripts. Apr 8 22:01:25 startup-test-v shutdown-script: INFO Found shutdown-script in metadata. Apr 8 22:01:26 startup-test-v shutdown-script: INFO shutdown-script: No change requested; skipping update for [startup-test-v]. Apr 8 22:01:27 startup-test-v shutdown

How pub/sub with pyZMQ between two VMs

别说谁变了你拦得住时间么 提交于 2021-01-28 05:16:06
问题 I have two VMs (VirtualBOx, Ubuntu 18.04 and python-zmq) running within the same physical machine (Win10). Both machines are configured as Bridge and they can be ping successfully 192.168.1.56-192.168.1.65. I've followed this tutorial https://learning-0mq-with-pyzmq.readthedocs.io/en/latest/pyzmq/patterns/pubsub.html, however, it doesn't work. On one machine "server", the data is printed, however, at the subscriber "client", it doesn't receive anything. Have you tried this or do you know

Error > Could not connect to Cloud Shell on port 8080 > While connecting the Visual Code using code-server

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-28 04:52:13
问题 Trying to install Visual Code IDE in VM Instance. After running the code-server, while checking view on browser, it is giving an error. Error: Could not connect to Cloud Shell on port 8080. Ensure your server is listening on port 8080 and try again. enter image description here reference link to install VS Code in GCC: https://medium.com/google-cloud/how-to-run-visual-studio-code-in-google-cloud-shell-354d125d5748 回答1: Try openning on your browser: http://[your-external-ip]:8080/ Its

Running Docker in Windows Virtual Machine

江枫思渺然 提交于 2021-01-27 12:16:54
问题 Using: Docker Desktop for Windows 10 MobaXterm to RDP into a Windows 10 VM Selenium 3.141.59 I'm currently trying to run a selenium Grid within a docker container and I'm encountering some issues. I have both Hyper-V and Containers enabled on both my PC and the VM. The problem is that unlike my previous coworkers, I'm using a Windows VM instead of a Linux one. When I try to run docker within the virtual machine it says that I need to enable nested virtualization. Is this correct or should I

Docker best practices: single process for a container

a 夏天 提交于 2021-01-27 04:37:53
问题 The Docker best practices guide states that: "...you should only run a single process in a single container..." Should Nginx and PHP-FPM run in separate containers? Or does that mean that micro service architectures only run one service or "app" in a container? Having these services in a single container seems easier to deploy and maintain. 回答1: Depending on the use case, you can run multiple processes inside a single container, although I won't recommend that. In some sense it is even

Debug C app using visual studio code and Vagrant runnig ubuntu

旧巷老猫 提交于 2021-01-25 01:44:09
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from

Debug C app using visual studio code and Vagrant runnig ubuntu

泄露秘密 提交于 2021-01-25 01:43:47
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from

Debug C app using visual studio code and Vagrant runnig ubuntu

巧了我就是萌 提交于 2021-01-25 01:42:51
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from

Is there a way to get VMs Operating System name from Hyper-V using powershell?

房东的猫 提交于 2021-01-24 21:48:26
问题 I'm writing a script on HYPER-V host for getting VMs guest informations. Is there a way to get VMs Operating System name from Hyper-V using powershell? There are several examples using (Get-WmiObject Win32_OperatingSystem -ComputerName $vmName).name but i should get this information directly from Hyper-V because of domain restrictions. Also i'm using hyper-v module of powershell but i couldn't see any cmdlets related to OS. 回答1: This could be retrieved from guest intrinsic exchange items. #

Minimal Vagrant script to generate fully usable Debian VMs for personal computing

假装没事ソ 提交于 2020-12-15 06:52:50
问题 During the past years, I configured several Debian VMs for personal usage, using either VirtualBox or Vmware. However, I am not a sysadmin, nor do I operate any servers. Instead, my main usage of VMs is to install "throwaway programs" or "untrusted programs" that I do not want to pollute my host system, and I definitely need a full graphical environment within these VMs. Unfortunately, this setup has always been a painful manual process, and I always have to lookup several sites to find out